Solved

NRPE 0.5 uptime

  • 16 January 2023
  • 2 replies
  • 168 views

Badge +1

Hello,

 

When i use plugin pack Windows Nsclient 0.5 and check uptime the threshold does not work because i never have a warning or critical even with very low thresholds.

For example :

/usr/lib64/nagios/plugins/check_centreon_nrpe -H s419800bch001.INFRA.ASP -p 5666 -t 60 -u -m 8192 -c check_uptime -a "warning=100s" "critical=200s"
OK: uptime: 08:28h, boot: 2023-01-16 02:16:11 (UTC)

Thanks for your help

icon

Best answer by ponchoh 17 January 2023, 20:01

View original

2 replies

Userlevel 4
Badge +13

👋

 

@sreynier have you seen this link?

 

https://nsclient.org/docs/reference/windows/CheckSystem/#sample-commands_7

 

check_uptime "warn=uptime < -2d" "crit=uptime < -1d"

🍀

Badge +1

Sorry I didn't see that 😁

 

Thank you it’s works 👍

Reply