[solved] how to monitor application ports

Hi everyone
I’ve just started using LibreNMS and added a few hosts, so far all looks good. I’m a bit confused about the ports though, as far as I can tell it should be monitoring ports automatically according to the operating system it’s using, but in my Ports page there seems to be nothing there at all and seemingly no visible way to add ports for monitoring. Can anyone give me a step by step guide for adding ports, or fixing if this is an error? thank you

librenms@LibreNMS:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 22.7.0-68-ga40e1d551
DB Schema | 2022_07_19_081224_plugins_unique_index (244)
PHP       | 8.1.9
Python    | 3.9.2
Database  | MariaDB 10.5.15-MariaDB-0+deb11u1
RRDTool   | 1.7.2
SNMP      | 5.9
====================================

[OK]    Composer Version: 2.3.10
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]
[OK]    Database schema correct
[OK]    MySQl and PHP time match
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrd_dir is writable
[OK]    rrdtool version ok

Ports missing:

Check the librenms.log file while accessing this page, and post the error from the log

Hi @RR1 and thanks for the reply.
The librenms.log file seems not to have any errors at all, just a lot of poller/discovery logs like this (trimmed for the sake of not filling up the page, but seems like there are a few thousand of these…)

/opt/librenms/poller.php 1 2022-08-17 12:40:06 - 1 devices polled in 1.128 secs
/opt/librenms/poller.php 18 2022-08-17 12:40:06 - 1 devices polled in 1.134 secs
/opt/librenms/poller.php 7 2022-08-17 12:40:06 - 1 devices polled in 1.386 secs
/opt/librenms/poller.php 16 2022-08-17 12:40:06 - 1 devices polled in 1.351 secs
/opt/librenms/poller.php 12 2022-08-17 12:40:07 - 1 devices polled in 1.359 secs
/opt/librenms/poller.php 26 2022-08-17 12:40:07 - 1 devices polled in 1.367 secs
/opt/librenms/poller.php 5 2022-08-17 12:40:07 - 1 devices polled in 1.338 secs
/opt/librenms/discovery.php new 2022-08-17 12:45:02 - 25 devices discovered in 0.004 secs
/opt/librenms/poller.php 12 2022-08-17 12:45:04 - 1 devices polled in 1.256 secs
/opt/librenms/poller.php 5 2022-08-17 12:45:04 - 1 devices polled in 1.312 secs
/opt/librenms/poller.php 8 2022-08-17 12:45:04 - 1 devices polled in 1.328 secs
/opt/librenms/poller.php 6 2022-08-17 12:45:04 - 1 devices polled in 1.248 secs
/opt/librenms/poller.php 26 2022-08-17 12:45:04 - 1 devices polled in 1.280 secs
/opt/librenms/poller.php 14 2022-08-17 12:45:04 - 1 devices polled in 1.193 secs
/opt/librenms/poller.php 11 2022-08-17 12:45:04 - 1 devices polled in 1.340 secs
/opt/librenms/poller.php 10 2022-08-17 12:45:04 - 1 devices polled in 1.424 secs
/opt/librenms/poller.php 17 2022-08-17 12:45:04 - 1 devices polled in 1.345 secs
/opt/librenms/poller.php 24 2022-08-17 12:45:05 - 1 devices polled in 1.394 secs
/opt/librenms/poller.php 3 2022-08-17 12:45:05 - 1 devices polled in 1.293 secs
/opt/librenms/poller.php 25 2022-08-17 12:45:05 - 1 devices polled in 1.354 secs
/opt/librenms/poller.php 13 2022-08-17 12:45:05 - 1 devices polled in 1.379 secs
/opt/librenms/poller.php 9 2022-08-17 12:45:05 - 1 devices polled in 1.308 secs
/opt/librenms/poller.php 22 2022-08-17 12:45:05 - 1 devices polled in 1.260 secs
/opt/librenms/poller.php 15 2022-08-17 12:45:05 - 1 devices polled in 1.252 secs
/opt/librenms/poller.php 16 2022-08-17 12:45:06 - 1 devices polled in 1.162 secs
/opt/librenms/poller.php 4 2022-08-17 12:45:06 - 1 devices polled in 1.146 secs
/opt/librenms/poller.php 7 2022-08-17 12:45:06 - 1 devices polled in 1.159 secs
/opt/librenms/poller.php 2 2022-08-17 12:45:06 - 1 devices polled in 1.176 secs
/opt/librenms/poller.php 20 2022-08-17 12:45:06 - 1 devices polled in 1.113 secs
/opt/librenms/poller.php 19 2022-08-17 12:45:06 - 1 devices polled in 1.107 secs
/opt/librenms/poller.php 18 2022-08-17 12:45:06 - 1 devices polled in 1.126 secs
/opt/librenms/poller.php 23 2022-08-17 12:45:06 - 1 devices polled in 1.140 secs
/opt/librenms/poller.php 1 2022-08-17 12:45:06 - 1 devices polled in 1.274 secs

grep the out put with port.php

cat librenms.log | grep port.php
cat librenms.log | grep port

port.php - This query returns zero results
“port” matches in “support” for this: (a few hundred of these in logs)

#22 /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->updateOrCreate()
#11 /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->updateOrCreate()

Instead of selecting all ports, if select individual device are you able to see ports information ?
im suspecting your installation is hitting below mentioned bug/issue

That’s the thing though, I’m not able to select any ports as there are no ports.
Here’s a screenclip of my dashboard showing 26 devices I’ve added but zero ports available for monitoring.

Do I understand this correctly that ports should be for example 80 for webserver, 22 for SSH, etc… or am I misunderstanding the product?


Here is my list of devices, but I can’t find port related settings if I go into any devices

Ahhh, we are out of sync here.
Ports means network ports, Physical ports like ethernet / fiber ports

services you are trying to monitor comes under application monitoring

1 Like

aha! now it all makes sense, sorry for wasting your time by asking the wrong things :slight_smile:
Having come from Nagios Core I should have figured that it would be something else… lol

Appreciate your help! cheers :+1:

No worries,

i dont monitor servers, most my devices are network devices
you can take a look at below as well.

1 Like

Thank you kindly, I’ve got some reading to do… :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.