I'm working on adding my critical windows services into Nagios so I know their state. For Services that are all one word it's fine, but I'm not sure how to have it check on the services where there are spaces in it's name.
The services description is as follows:
service_description Apache Tomcat ADAM
check_command check_nt!SERVICESTATE!-d SHOWALL -l 'Apache Tomcat ADAM'
I've tried putting double quotes, single quotes, and nothing around the service name but nothing works. I know at the windows CLI I would just do a net stop "Apache Tomcat Adam" to shut the service down. So what would I have to put here so it could check the state of that service?
Thanks in advance!