Solved

Alert uptime

  • 25 January 2023
  • 3 replies
  • 393 views

Userlevel 1
Badge +6

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.

icon

Best answer by Manu.L 31 January 2023, 09:22

View original

3 replies

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

Userlevel 1
Badge +6

Thanks for your answer, I have just changed this parameter and I’ll come back to you after trying it.

Userlevel 1
Badge +6

It seems to work, I’ll see later if it disappears after 1 hour. Thanks !

 

 

Reply