On 2 Apr 2010, at 10:00, Raoul Sapio wrote:
I have a windows service that I want to monitor, but the name of the
service
has a space in it
ex: “TSM Scheduler”
I have added a service check but i have errors, i tried double quotes,
single quotes... ??
-H $HOSTADDRESS$ -c nsc_checkservicestate -a 'ShowAll TSM
Scheduler=started'
What is the syntax (brakets) to be able to add this service ?
Try this:
-H $HOSTADDRESS$ -c nsc_checkservicestate -a 'ShowAll "TSM
Scheduler"=started'
The reason is that the single quotes stops the shell from expanding
the inner text and then the double quotes stop the space from being
interpreted by the shell. This could be some strange behaviour in
nsclient++.
Ton
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users