Under check_freeipmi, there is a check for 'if status in' followed by a
bracketed list of acceptable values of the last column in each record.
Due to my equipment, I needed to add 'Limit_Not_Exceeded' and
'Predictive_Failure_deasserted' as acceptable values.
I also ran into another system that used the same 'name' value (second column)
for multiple records, or which only one has valid values, and the rest return
'[NA]' in the last column. These entries are ignored in 'inventory_freeipmi',
but not in 'check_freeipmi'.
I simply added the same test to check_freeipmi, so the record will be ignored
here also.
***************
*** 85,90 ****
--- 85,92 ----
def check_freeipmi(item, _no_params, info):
for line in info:
if line[1] == item:
+ if line[-1] in ['[Unknown]', '[NA]' ]:
+ continue
status = line[-1][1:-1]
perfdata = []
infotext = "Sensor status is " + status
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users