Skip to main content
Solved

Alert uptime

  • January 25, 2023
  • 3 replies
  • 681 views

Forum|alt.badge.img+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.

Best answer by Manu.L

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

3 replies

Manu.L
  • Steward *
  • Answer
  • January 31, 2023

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


Forum|alt.badge.img+6
  • Author
  • Steward **
  • February 13, 2023

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


Forum|alt.badge.img+6
  • Author
  • Steward **
  • February 14, 2023

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