1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-22 10:23:46 +01:00
This commit is contained in:
Páll Guðjón Sigurðsson 2010-10-25 17:03:57 +00:00
parent 9f4b8432dc
commit cf6c7c40ad

View File

@ -492,7 +492,8 @@ def check_generic(command="ls disk full",namefield="objectname", perfdata_fields
nagios_state = max(nagios_state, check_multiple_objects(i, 'fibrechannelports')) nagios_state = max(nagios_state, check_multiple_objects(i, 'fibrechannelports'))
nagios_state = max(nagios_state, check_multiple_objects(i, 'modules')) nagios_state = max(nagios_state, check_multiple_objects(i, 'modules'))
for x in longserviceoutputfields: for x in longserviceoutputfields:
long( "- %s = %s\n" % (x, i[x])) if i.has_key( x ):
long( "- %s = %s\n" % (x, i[x]))
end(summary,perfdata,longserviceoutput,nagios_state) end(summary,perfdata,longserviceoutput,nagios_state)