Negate command with multiple results
Posted: Tue Nov 06, 2012 5:02 am
Hi Nagios Community,
I've realised the negate command can be used for monitoring fan speed (when it's below a certain value you want a critical error).
I'm using the munin plugin along with negate.
However, I seem to have ran into a little snag.
The munin plugin returns results for fans 1 through 6, but the negate command only displays fan 6's value.
I guess my question is, does negate only display a single result? Or does it only check a single result.
If it is checking all the values for fans 1 to 6 but only displays 6, that's ok. But if it only checks 6, that is of course a problem.
It may be worth nothing that fan 6 has the lowest of the values.
The obvious solution here is to create one service per a fan, but to be honest I'm not entirely sure on implementing that, considering I wish to implement a similar idea to temperature (which has 7 temperatures being displayed)
Thank you again.
Kind Regards,
Gary Shergill
EDIT: Adding fan10 back to the command (which has constant value 0) does not create a critical error, and it continues to display fan6 as OK. In addition, removing fan6 displays fan5.
EDIT: Current setup is warning value 747 and critical value 4000.
If value is between 0 and 747 - CRITICAL.
If value is between 747 and 4000 - OK
If value is above 4000 - CRITICAL
Fan values are;
Setting warning up from 747 to 4000 causes CRITICAL with all fans displayed, as expected.
Setting warning up from 747 to 2500 causes OK and displays fan4 + the value, not as expected.
It appears unless all 6 are above/below the critical/warning values, it will stay as OK.
Is this a limitation? Or not intended?
I've realised the negate command can be used for monitoring fan speed (when it's below a certain value you want a critical error).
I'm using the munin plugin along with negate.
However, I seem to have ran into a little snag.
The munin plugin returns results for fans 1 through 6, but the negate command only displays fan 6's value.
I guess my question is, does negate only display a single result? Or does it only check a single result.
If it is checking all the values for fans 1 to 6 but only displays 6, that's ok. But if it only checks 6, that is of course a problem.
It may be worth nothing that fan 6 has the lowest of the values.
The obvious solution here is to create one service per a fan, but to be honest I'm not entirely sure on implementing that, considering I wish to implement a similar idea to temperature (which has 7 temperatures being displayed)
Thank you again.
Kind Regards,
Gary Shergill
EDIT: Adding fan10 back to the command (which has constant value 0) does not create a critical error, and it continues to display fan6 as OK. In addition, removing fan6 displays fan5.
EDIT: Current setup is warning value 747 and critical value 4000.
If value is between 0 and 747 - CRITICAL.
If value is between 747 and 4000 - OK
If value is above 4000 - CRITICAL
Fan values are;
Code: Select all
fan1: 3524.2 fan2: 3514.8 fan3: 3497.2 fan4: 3590.2 fan5: 2045.1 fan6: 1432.6 Setting warning up from 747 to 2500 causes OK and displays fan4 + the value, not as expected.
It appears unless all 6 are above/below the critical/warning values, it will stay as OK.
Is this a limitation? Or not intended?