Page 1 of 1

Monitoring applications in Program Files?

Posted: Wed May 16, 2012 10:35 am
by mike.wezesa
I can't seem to get the syntax right when using either the configuration wizard or by creating a new service from core config manager. Can someone help me out real quick?

Re: Monitoring applications in Program Files?

Posted: Wed May 16, 2012 11:00 am
by scottwilkerson
Can you explain a little more detailed what you want to accomplish and what you have tried so far.

Thanks

Re: Monitoring applications in Program Files?

Posted: Wed May 16, 2012 11:07 am
by mike.wezesa
For example we use a source control software called Perforce and I want to monitor it's service to ensure it is running. This service is located in: C:\Program Files (x86)\Perforce\p4s.exe, how would I enter that into the argument in the service configuration/when I am running the configuration wizard? I've tried specifying the full path but it does not work.

Re: Monitoring applications in Program Files?

Posted: Wed May 16, 2012 1:17 pm
by scottwilkerson
You should be able to just enter p4s.exe

Re: Monitoring applications in Program Files?

Posted: Wed May 16, 2012 1:18 pm
by lmiltchev
What is the wizard that you are using?

I ran the Windows WMI Monitoring Wizard. In the "Processes" section I entered:

Windows Process = p4v.exe
Display Name = Perfor Visual Client
I selected the check-box... :D
p4v.PNG
The end result:
p4v2.PNG
Are you doing something else?

Re: Monitoring applications in Program Files?

Posted: Thu May 17, 2012 6:57 am
by mike.wezesa
I was using the "Windows Server" selection under the configuration wizards and attempting to put p4s in either the "services" or "processes" boxes within that wizard, it was unable to find any details on the service using that method.

I've now tried using the Windows WMI wizard and am getting the following status for all services "A valid MODE and/or SUBMODE must be specified ", here is what the syntax of the monitoring command looks like: check_xi_service_wmiplus!'domain\user'!'password'!checkcpu!-w '80' -c '90' Does it not like how I am presenting the credentials?

Re: Monitoring applications in Program Files?

Posted: Thu May 17, 2012 3:33 pm
by lmiltchev
Did you follow our documentation on WMI? Please, review these two links and make sure that you follow the docs.

http://assets.nagios.com/downloads/nagi ... For_XI.pdf

http://assets.nagios.com/downloads/nagi ... ng_WMI.pdf

The check that you are showing has nothing to do with p4v.exe. Are you having issues with installing/using the WMI wizard?

Re: Monitoring applications in Program Files?

Posted: Mon May 21, 2012 10:02 am
by mike.wezesa
Thanks for the links, I didn't realize I had extra work to do on the client other than just running the wizard, it is now returning valid data back to the XI server!

Re: Monitoring applications in Program Files?

Posted: Mon May 21, 2012 10:59 am
by nscott
Thats great! I'm gonna mark this topic and resolved, please feel free to ask anymore questions if you have them.