Nagios XI Alert for low or no bandwidth

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Alert for low or no bandwidth

Post by tgriep »

There is a typo in the example from before, try this and see if it works for you.

Code: Select all

$USER1$/negate -s $USER1$/check_rrdtraf_bits -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagios XI Alert for low or no bandwidth

Post by rbuckle »

OUTPUT: OK - Current BW in: 6.90Mbps Out: 74.20Mbps|in=6.902938Mb/s;20.00;30.00 out=74.203720Mb/s;20.00;30.00

Still doesn't seem to work right
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Alert for low or no bandwidth

Post by tgriep »

Can you run the check in a command prompt on the server, with and without the negate command and post how you ran the check and it's output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagios XI Alert for low or no bandwidth

Post by rbuckle »

[root@NagiosXI ~]# /usr/local/nagios/libexec/negate -s /usr/local/nagios/libexec /check_rrdtraf_bits -f /var/lib/mrtg/10.0.0.27_5.rrd -w 2 -c 1 -l M
OK - Current BW in: 7.28Mbps Out: 72.20Mbps|in=7.289263Mb/s;2;1 out=72.203562Mb/ s;2;1

[root@NagiosXI ~]# /usr/local/nagios/libexec/check_rrdtraf_bits -f /var/lib/mrtg/10.0.0.27_5.rrd -w 2 -c 1 -l M
CRITICAL - Current BW in: 7.28Mbps Out: 72.20Mbps|in=7.289263Mb/s;2;1 out=72.203562Mb/s;2;1

[root@NagiosXI ~]# /usr/local/nagios/libexec/negate -s /usr/local/nagios/libexec/check_rrdtraf_bits -f /var/lib/mrtg/10.0.0.27_5.rrd -w 200 -c 100 -l M
CRITICAL - Current BW in: 7.28Mbps Out: 72.20Mbps|in=7.289263Mb/s;200;100 out=72.203562Mb/s;200;100

[root@NagiosXI ~]#


Does this now look correct to you?
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Alert for low or no bandwidth

Post by tgriep »

Lets go back to the unmodified check, run those and post the output.

Code: Select all

/usr/local/nagios/libexec/negate -s /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.0.0.27_5.rrd -w 2 -c 1 -l M
/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.0.0.27_5.rrd -w 2 -c 1 -l M

/usr/local/nagios/libexec/negate -s /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.0.0.27_5.rrd -w 200 -c 100 -l M
/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.0.0.27_5.rrd -w 200 -c 100 -l M
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagios XI Alert for low or no bandwidth

Post by rbuckle »

Code: Select all

[root@NagiosXI ~]# /usr/local/nagios/libexec/negate -s /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.0.0.27_5.rrd -w 2 -c 1 -l M
OK - Current BW in: 7.22Mbps Out: 66.83Mbps|in=7.224189Mb/s;2;1 out=66.834018Mb/s;2;1

[root@NagiosXI ~]# /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.0.0.27_5.rrd -w 2 -c 1 -l M
CRITICAL - Current BW in: 7.22Mbps Out: 66.83Mbps|in=7.224189Mb/s;2;1 out=66.834018Mb/s;2;1

[root@NagiosXI ~]# /usr/local/nagios/libexec/negate -s /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.0.0.27_5.rrd -w 200 -c 100 -l M
CRITICAL - Current BW in: 7.22Mbps Out: 66.83Mbps|in=7.224189Mb/s;200;100 out=66.834018Mb/s;200;100

[root@NagiosXI ~]# /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.0.0.27_5.rrd -w 200 -c 100 -l M
OK - Current BW in: 7.22Mbps Out: 66.83Mbps|in=7.224189Mb/s;200;100 out=66.834018Mb/s;200;100

[root@NagiosXI ~]#
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Alert for low or no bandwidth

Post by tgriep »

Well, it looks like negate is working correctly but the modified plugin is not working.
We are going to have to get the developers to look at is and modify it for your needs.

In the meantime, you could check our exchange site so see if there is another plugin that may work for you.
https://exchange.nagios.org
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagios XI Alert for low or no bandwidth

Post by rbuckle »

This problem has been resolved. you may close the thread.

Thank you
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Locked