Port monitoring
-
- Posts: 295
- Joined: Thu Sep 12, 2019 1:19 am
Port monitoring
I used to monitor a port on my core switch, which has many activities since two weeks is showing 0 value instead of the actual value that I usually see when I debug the port directly cmd line on my switch. Can you please tell me where I should look first?
You do not have the required permissions to view the files attached to this post.
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Port monitoring
Hi,
Hope you are having a good day.
Did you make any changes to your system lately?
Can you please check the below two logs files?
The key is to look at the Performance data output in the advanced tab in service detail.
It will allow us to see whether service checks not returning any perfdata or if the graphing itself is not working. Here's an KB article on performance graph problems:
https://support.nagios.com/kb/article.php?id=9
You can also try deleting those rrd & XML files under
Restart services:
Please allow some times (30+ minutes) for graphs to come in after delete those rrd files.
If all failed, please upload your "profile.zip" file.
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Config" > "System Profile" Menu
Click the "Download Profile" button
Best Regards,
Vinh
Hope you are having a good day.
Did you make any changes to your system lately?
Can you please check the below two logs files?
Code: Select all
tail -25 /usr/local/nagios/var/perfdata.log
tail -25 /usr/local/nagios/var/npcd.log
It will allow us to see whether service checks not returning any perfdata or if the graphing itself is not working. Here's an KB article on performance graph problems:
https://support.nagios.com/kb/article.php?id=9
You can also try deleting those rrd & XML files under
Code: Select all
/usr/local/nagios/share/perfdata/<host-with-graph-issue>/
Code: Select all
systemctl restart ncpd
systemctl restart nagios
If all failed, please upload your "profile.zip" file.
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Config" > "System Profile" Menu
Click the "Download Profile" button
Best Regards,
Vinh
You do not have the required permissions to view the files attached to this post.
-
- Posts: 295
- Joined: Thu Sep 12, 2019 1:19 am
Re: Port monitoring
I will check and update the ticket.
-
- Posts: 295
- Joined: Thu Sep 12, 2019 1:19 am
Re: Port monitoring
Did you make any changes to your system lately?
No changes have been made to the system for a long time.
I recalled the sensor from scratch by deleting the port and reconfigure it again, but it didn't help same value 0
Other port sensors are showing the correct values
Please see the logs
No changes have been made to the system for a long time.
I recalled the sensor from scratch by deleting the port and reconfigure it again, but it didn't help same value 0
Other port sensors are showing the correct values
Please see the logs
You do not have the required permissions to view the files attached to this post.
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Port monitoring
Hi,
I do not see any issue based on the "profile.zip".
However, the "nagios.log" was empty.
Can you please let me know which host / service you are having issue?
Can you please delete those ".rrd" and ".xml" files under the below folder:
Please give it about 30+ minutes for data to come in
Can you please run the below command?
NOTE: This is a ONE line command
Also, please run this:
Best Regards,
Vinh
I do not see any issue based on the "profile.zip".
However, the "nagios.log" was empty.
Can you please let me know which host / service you are having issue?
Can you please delete those ".rrd" and ".xml" files under the below folder:
Please give it about 30+ minutes for data to come in
Code: Select all
/usr/local/nagios/share/perfdata/<host-with-graph-issue>/
NOTE: This is a ONE line command
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios
Code: Select all
ls -la /var/lib/mrtg/
Vinh
-
- Posts: 295
- Joined: Thu Sep 12, 2019 1:19 am
Re: Port monitoring
>> Can you please delete those ".rrd" and ".xml" files under the below folder:
I need to delete only the one with that sensor 2:6 only !! since under the core switch I monitor more than 50x ports
I monitor port 2:6
I need to delete only the one with that sensor 2:6 only !! since under the core switch I monitor more than 50x ports
I monitor port 2:6
You do not have the required permissions to view the files attached to this post.
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Port monitoring
Hi,
Yes, only delete the port which having issue.
Based on the picture from the last reply, I don't think you will see anything from the graph since the "in" and "out" have "0 mb/s" value coming into Nagios.
This is NOT Nagios issue, please check with your Network Admin about the port instead.
What is the command used to check this port?
Nagios XI GUI > Configure > Core Config Manager > Services
Now, select the service that is having issue > select "Common Settings" > Run check Command
Can you please post the command and also manually ran the command on the Nagios XI command prompt?
Regards,
Vinh
Yes, only delete the port which having issue.
Based on the picture from the last reply, I don't think you will see anything from the graph since the "in" and "out" have "0 mb/s" value coming into Nagios.
This is NOT Nagios issue, please check with your Network Admin about the port instead.
What is the command used to check this port?
Nagios XI GUI > Configure > Core Config Manager > Services
Now, select the service that is having issue > select "Common Settings" > Run check Command
Can you please post the command and also manually ran the command on the Nagios XI command prompt?
Regards,
Vinh
-
- Posts: 295
- Joined: Thu Sep 12, 2019 1:19 am
Re: Port monitoring
I will check it tomorrow and update you.
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Port monitoring
Sure, please talk to your Network Admin regarding that port.
Also, why is your last picture has a date of yesterday "04/26/2021 22:xx:xx"?
Best Regards,
Vinh
Also, why is your last picture has a date of yesterday "04/26/2021 22:xx:xx"?
Best Regards,
Vinh
-
- Posts: 295
- Joined: Thu Sep 12, 2019 1:19 am
Re: Port monitoring
Also, why is your last picture has a date of yesterday "04/26/2021 22:xx:xx"?
I captured it yesterday ... I went out of my office..
I captured it yesterday ... I went out of my office..

Last edited by fsodah on Tue Apr 27, 2021 12:50 pm, edited 1 time in total.