$CENTREONPLUGINS$/centreon_generic_snmp.pl --plugin=apps::protocols::snmp::plugin --mode=string-value --hostname=$HOSTADDRESS$ --snmp-community='$_HOSTSNMPCOMMUNITY$' --snmp-version=$_HOSTSNMPVERSION$ $_HOSTSNMPEXTRAOPTIONS$ --oid='$_SERVICEOID$' --map-values='$_HOSTATTENDU$=>$_HOSTATTENDU$' --map-value-other='Critical' --critical-regexp='Critical' --format-ok='%{details_ok}' --format-critical='%{details_ok} non ok : $_HOSTATTENDU$ attendu' --snmp-autoreduce
if it’s ok --format-ok='%{details_ok}' returne the good value to oid check
but if it’s critical -format-critical='%{details_ok} non ok’ %{details_ok} is empty
they are other way to do this ?
thk
Best answer by vcoum
View original