Bandwidth checks returning no output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Bandwidth checks returning no output

Post by bosecorp »

We are not able to gather any information from below check, this is happening only to this interface on the device. The interface is up and running and does show the bandwidth utilization.

# /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.xx.xx.xx_2.rrd -w 500.00,500.00 -c 800.00,800.00 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;500.00;800.00 out=0Mb/s;500.00;800.00

I have tried restarting npcd services, but no luck. One thing i have observed is that the /usr/local/nagios/var/perfdata.log is not updating since 14th Aug
2017-08-14 07:54:22 [14480] [0] *** process_perfdata.pl terminated on signal TERM
2017-08-14 07:54:22 [14484] [0] *** process_perfdata.pl terminated on signal TERM

Need assistance here.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Bandwidth checks returning no output

Post by dwhitfield »

Did you recently install a ramdisk? It may not have been set up properly (https://assets.nagios.com/downloads/nag ... giosXI.pdf). Were there changes made to the ramdisk if it's not completely new? There's also a npcd.log that may give some useful information.

Can you attach the full perfdata.log? It may give some insight into what is going on.

Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Bandwidth checks returning no output

Post by bosecorp »

No, we already had the ramdisk installed. i have pm you the logs and profile.

Kindly take a look and update us.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Bandwidth checks returning no output

Post by dwhitfield »

Were you not able to attach the profile due to size? If so, you could take out the mrtg directory, zip it back up and post. Alternatively, you could mail it in to [email protected]. If you do that, please reference this ticket.

UPDATE: The profile you sent was generated on the 14th (or your PHP time and System time are days off). Please generate a new profile and send it.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Bandwidth checks returning no output

Post by bosecorp »

I have PMed you the profile now, please take a look. Also based on the logs can you please help us understand your analysis.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Bandwidth checks returning no output

Post by dwhitfield »

The second profile also appears to have been generated on the 14th. Let's try this instead: tar -zcvf /tmp/supporttar.tar.gz /usr/local/nagios/etc/

Are you generating the profile from the command line or via the UI? perhaps the file is actually profile (2).zip, and you just keep sending the old one?

UPDATE: configs shared with techs.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: Bandwidth checks returning no output

Post by bosecorp »

i have PMed you the requested file
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Bandwidth checks returning no output

Post by tgriep »

The 2 links below are 2 troubleshooting guides for fixing the bandwidth always reporting 0, try them and see if one of them fixes the issue.
https://support.nagios.com/kb/article/n ... x-cfg.html
https://support.nagios.com/kb/article/n ... *-cfg.html

If not, can you run the following command as root and post or PM the /tmp/mrtg.txt file?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base &> /tmp/mrtg.txt
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked