Page 1 of 3
Port monitoring
Posted: Sun Apr 25, 2021 11:53 am
by fsodah
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?
Re: Port monitoring
Posted: Mon Apr 26, 2021 1:32 pm
by vtrac
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?
Code: Select all
tail -25 /usr/local/nagios/var/perfdata.log
tail -25 /usr/local/nagios/var/npcd.log
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.
M1.png
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>/
Restart services:
Code: Select all
systemctl restart ncpd
systemctl restart nagios
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
Re: Port monitoring
Posted: Mon Apr 26, 2021 2:23 pm
by fsodah
I will check and update the ticket.
Re: Port monitoring
Posted: Tue Apr 27, 2021 12:57 am
by fsodah
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
Re: Port monitoring
Posted: Tue Apr 27, 2021 10:59 am
by vtrac
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
Code: Select all
/usr/local/nagios/share/perfdata/<host-with-graph-issue>/
Can you please run the below command?
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
Also, please run this:
Best Regards,
Vinh
Re: Port monitoring
Posted: Tue Apr 27, 2021 11:02 am
by fsodah
>> 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
Re: Port monitoring
Posted: Tue Apr 27, 2021 11:44 am
by vtrac
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
Re: Port monitoring
Posted: Tue Apr 27, 2021 11:52 am
by fsodah
I will check it tomorrow and update you.
Re: Port monitoring
Posted: Tue Apr 27, 2021 12:14 pm
by vtrac
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
Re: Port monitoring
Posted: Tue Apr 27, 2021 12:42 pm
by fsodah
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..
