managios
05-22-2008, 05:32 PM
Bon j'ai un probléme classique mais je n'arrive aps a le résoudre. un plugin ne ligne de commande qui marche tres bien mais uen fois dans centreon il marche pas ca me mets un beau(No output !)
Voila le ./check_systime.pl - h
This plugin returns a critical state if the target has drifted
more than 10 times your allowed number of drift seconds, and it returns
a warning state for anything in between (for example, if you allow 60
seconds of deviation, a warning will be returned if the target differs
by 61 - 600 seconds and critical if more than 600).
OPTIONS
-C,--community <arg>
Set the SNMP v1|v2c community string
-d,--debug
Show debugging output
-h,--help
Show this help information
-H,--host <host[:port]>
Set the target host (& port optionally)
-n,--num <secs>
The amount of drift allowed in seconds (defaults to 120)
-N,--context <arg>
Set the SNMP context name
-t,--timeout <arg>
Set the timeout value in seconds
-v,--snmpversion 1|2c|3
Set the SNMP version (defaults to 1)
-V,--version
Show version information
en ligne de commande je tape
./check_systime.pl -H <@IP> -C <communaute> -n 2000
et j'ai le résultat
WARNING - System time is off by 2976 sec (05-22-2008, 15:34:24).
Donc c'est ok
Voila mes config rentrées dans Centreon :
$USER1$/./check_systime.pl -H $HOSTADDRESS$ -C $ARG1$ -n $ARG2$
et en arguments j'ai mis !<communaute>!2000
Et sur la page de service de Centreon ca me mets (No Output!)
Quelqu'un a t'il une idée du pb ?
Voila le ./check_systime.pl - h
This plugin returns a critical state if the target has drifted
more than 10 times your allowed number of drift seconds, and it returns
a warning state for anything in between (for example, if you allow 60
seconds of deviation, a warning will be returned if the target differs
by 61 - 600 seconds and critical if more than 600).
OPTIONS
-C,--community <arg>
Set the SNMP v1|v2c community string
-d,--debug
Show debugging output
-h,--help
Show this help information
-H,--host <host[:port]>
Set the target host (& port optionally)
-n,--num <secs>
The amount of drift allowed in seconds (defaults to 120)
-N,--context <arg>
Set the SNMP context name
-t,--timeout <arg>
Set the timeout value in seconds
-v,--snmpversion 1|2c|3
Set the SNMP version (defaults to 1)
-V,--version
Show version information
en ligne de commande je tape
./check_systime.pl -H <@IP> -C <communaute> -n 2000
et j'ai le résultat
WARNING - System time is off by 2976 sec (05-22-2008, 15:34:24).
Donc c'est ok
Voila mes config rentrées dans Centreon :
$USER1$/./check_systime.pl -H $HOSTADDRESS$ -C $ARG1$ -n $ARG2$
et en arguments j'ai mis !<communaute>!2000
Et sur la page de service de Centreon ca me mets (No Output!)
Quelqu'un a t'il une idée du pb ?