Page 2 of 2

Re: Nagios XI Alert for low or no bandwidth

Posted: Mon May 16, 2016 3:45 pm
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$

Re: Nagios XI Alert for low or no bandwidth

Posted: Mon May 16, 2016 3:50 pm
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

Re: Nagios XI Alert for low or no bandwidth

Posted: Mon May 16, 2016 4:16 pm
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?

Re: Nagios XI Alert for low or no bandwidth

Posted: Mon May 16, 2016 4:29 pm
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?

Re: Nagios XI Alert for low or no bandwidth

Posted: Mon May 16, 2016 4:41 pm
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

Re: Nagios XI Alert for low or no bandwidth

Posted: Mon May 16, 2016 4:48 pm
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 ~]#

Re: Nagios XI Alert for low or no bandwidth

Posted: Tue May 17, 2016 11:12 am
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

Re: Nagios XI Alert for low or no bandwidth

Posted: Wed Feb 22, 2017 2:02 pm
by rbuckle
This problem has been resolved. you may close the thread.

Thank you