ConSol-Monitoring / snclient

SNClient+ - Cross platform monitoring agent
MIT License
48 stars 8 forks source link

Windows service status is printed with it's numerical value instead of text #6

Closed lausser closed 1 year ago

lausser commented 1 year ago

check_nsc_web -u https://127.0.0.1:18444 -p 1234 -k -t 30 check_service 'service=Dnscache' "crit=state != 'started'" warn=none 'ok-syntax=${status}: ${ok_list}' 'top-syntax=${status}: ${crit_list}, delayed (${warn_list}), started (${ok_list})' 2: Dnscache=4, delayed (), started () Exitcode is CRITICAL

Same check with NSClient++ check_service 'service=Dnscache' "crit=state != 'started'" warn=none 'ok-syntax=${status}: ${ok_list}' 'top-syntax=${status}: ${crit_list}, delayed (${warn_list}), started (${ok_list})' OK: Dnscache=running (auto) |'Dnscache'=4;0;0;; Exitcode is OK