This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
tgriep
Madmin
Posts: 9190 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Mon May 16, 2016 3:45 pm
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:
Post
by rbuckle » Mon May 16, 2016 3:50 pm
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
tgriep
Madmin
Posts: 9190 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Mon May 16, 2016 4:16 pm
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:
Post
by rbuckle » Mon May 16, 2016 4:29 pm
[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
tgriep
Madmin
Posts: 9190 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Mon May 16, 2016 4:41 pm
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:
Post
by rbuckle » Mon May 16, 2016 4:48 pm
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
tgriep
Madmin
Posts: 9190 Joined: Thu Oct 30, 2014 9:02 am
Post
by tgriep » Tue May 17, 2016 11:12 am
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:
Post
by rbuckle » Wed Feb 22, 2017 2:02 pm
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