Question

Alert uptime

  • 25 January 2023
  • 1 reply
  • 17 views

Badge +2

Hello,

 

I’ve tried to make a warning-alert when a device has been rebooted less than one hour ago but when I want to configure it, it alerts me when it’s up than MORE than an hour.

 

I’ve something like that and I’ve try few other solutions :

$CENTREONPLUGINS$/centreon_windows_snmp.pl --plugin os::windows::snmp::plugin --mode=uptime --hostname=$HOSTADDRESS$ --snmp-community=$_HOSTSNMPCOMMUNITY$ --snmp-version=$_HOSTSNMPVERSION$ --snmp-timeout=5 --snmp-retries=0 --snmp-force-getnext --unit=s --warning-uptime=3600 --verbose

 

Do you have any idea ?

 

Thanks and have a nice day.


1 reply

Hello,
I think you have to change your --warning-uptime option by “3600:” which means <3600 (outside the range of 3600..infinity)

Reply