check_iferrors_percent

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_iferrors_percent

Post by hsmith »

Oops, forgot to change the -w field as well to reflect this. End of the day on a Friday, you know how that goes! :geek: Try adding another zero after the decimal on the -w field.
Former Nagios Employee.
me.
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: check_iferrors_percent

Post by PolleroM »

Hello.
Then I've try this command:
[root@localhost libexec]# ./check_iferrors_percent -H 10.236.4.170 -C public -w 0.00075 -c 0.001 -i 19
IFERRORS CRITICAL - Interface error rates for host 10.236.4.170 | 19_out_discards=0%;0.00075;0.001 19_in_discards=0%;0.00075;0.001 19_out_errors=0%;0.00075;0.001 19_in_errors=0%;0.00075;0.001


But result is always the same...
It seems that meausured value is not considered.
For example:
19_out_discards=0%
0% is less than warning level (0.00075). Result should be OK instead of CRITICAL...
Thanks
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_iferrors_percent

Post by hsmith »

It looks like the thresholds may be hardcoded into the script. Can you try to run the command without the -w and -c parameters and see what happens?
Former Nagios Employee.
me.
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: check_iferrors_percent

Post by PolleroM »

Hello
[root@localhost libexec]# ./check_iferrors_percent -H 10.236.4.170 -C public - i 19 IFERRORS CRITICAL - Interface error rates for host 10.236.4.170 | 19_out_discards=0%;0.0075;0.01 19_in_discards=0%;0.0075;0.01 19_out_errors=0%;0.0075;0.01 19_in_errors=0%;0.0075;0.01
Thanks
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_iferrors_percent

Post by hsmith »

Can you try to edit the hardcoded values in the plugin to meet your needs and potentially trigger a warning/critical?
Former Nagios Employee.
me.
PolleroM
Posts: 24
Joined: Wed Aug 12, 2015 1:33 am

Re: check_iferrors_percent

Post by PolleroM »

OK.
I'll do this last test and in case of bad result I'll change strategy.
I'm not sure to follow the right method for my need...
You can close the ticket.
Thanks a lot for all Your assistance.
Locked