Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
yeonki
byyeonki, December 10, 2012
It works well.
I set wrong parameter value with this script and I found an error that its message was "Return code of -1 is out of bounds" from Nagios Web UI.
It was not intended thing. It was because wrong exit_code in the code:
%exit_codes = ('UNKNOWN' ,-1,
'OK' , 0,
'WARNING' , 1,
'CRITICAL', 2,
);
If you change of 'UNKNOWN' to 3, you would not be given that message, instead, you get proper error massage like this:
"*** WARN level must not be less than CRITICAL when checking FREE memory!"
I set wrong parameter value with this script and I found an error that its message was "Return code of -1 is out of bounds" from Nagios Web UI.
It was not intended thing. It was because wrong exit_code in the code:
%exit_codes = ('UNKNOWN' ,-1,
'OK' , 0,
'WARNING' , 1,
'CRITICAL', 2,
);
If you change of 'UNKNOWN' to 3, you would not be given that message, instead, you get proper error massage like this:
"*** WARN level must not be less than CRITICAL when checking FREE memory!"