Page 1 of 1

Bandwidth checks returning no output

Posted: Wed Aug 16, 2017 3:23 pm
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.

Re: Bandwidth checks returning no output

Posted: Thu Aug 17, 2017 10:01 am
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.

Re: Bandwidth checks returning no output

Posted: Thu Aug 17, 2017 10:24 am
by bosecorp
No, we already had the ramdisk installed. i have pm you the logs and profile.

Kindly take a look and update us.

Re: Bandwidth checks returning no output

Posted: Thu Aug 17, 2017 11:04 am
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.

Re: Bandwidth checks returning no output

Posted: Thu Aug 17, 2017 3:17 pm
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.

Re: Bandwidth checks returning no output

Posted: Thu Aug 17, 2017 3:31 pm
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.

Re: Bandwidth checks returning no output

Posted: Fri Aug 18, 2017 9:12 am
by bosecorp
i have PMed you the requested file

Re: Bandwidth checks returning no output

Posted: Fri Aug 18, 2017 12:57 pm
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