Solved

Monitor if a windows service is disabled or not

  • 7 April 2023
  • 1 reply
  • 154 views

Badge +6

Hi guys,

 

I would know if it is possible o monitor if a windows service is disabled or not.

 

/usr/lib64/nagios/plugins/check_centreon_nrpe -H 10.214.0.16 -p 5666 -t 30 -u -m 8192 -c  check_service

 

I don’t find if it’s possible with this command. I just find if a service is up or not (with delay or not).

 

could you help me? Or give me a link to documentation?

 

Laurent

icon

Best answer by bannavong 11 April 2023, 17:32

View original

1 reply

Badge +2

Hi you can use:
/usr/lib/centreon/plugins//centreon_nsclient_restapi.pl --plugin=apps::nsclient::restapi::plugin --mode=query --hostname='***' --port='8443' --proto='https' --legacy-password='***' --http-backend=curl --curl-opt="CURLOPT_SSL_VERIFYPEER => 0"  --command=check_service --arg="filter=start_type='disabled'" --arg="service=*"

 

Reply