I have Zabbix 3.2 installed and am monitoring all Windows services that are set for Automatic or Automatic (delayed) startup, except for a few that I am filtering out in the discovery rule. We sometimes have several hundred services that are are stopped that need to be started. I can create a remote command to start these services if I specify them individually by name, but I was hoping that there would be a variable I could use instead. I noticed that the discovery rule uses {#SERVICE.NAME} but this does not seem to work.
I have tried the following remote commands:
sc start “{SERVICE.NAME}"
sc start “{servicename}"
sc start “{SERVICENAME}"
sc start “services.info[{SERVICE.NAME}]"
sc start “{DISCOVERY.SERVICE.NAME}"
None of these work. If I specify the name of the service, it works like a champ. Now, I know that I can create about 100 of these commands and catch all the services in our environment, but there has got to be a better way to do this. I've searched and searched, and can find nothing. Any help is greatly appreciated.
I have tried the following remote commands:
sc start “{SERVICE.NAME}"
sc start “{servicename}"
sc start “{SERVICENAME}"
sc start “services.info[{SERVICE.NAME}]"
sc start “{DISCOVERY.SERVICE.NAME}"
None of these work. If I specify the name of the service, it works like a champ. Now, I know that I can create about 100 of these commands and catch all the services in our environment, but there has got to be a better way to do this. I've searched and searched, and can find nothing. Any help is greatly appreciated.
Comment