Monitoring applications in Program Files?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mike.wezesa
Posts: 9
Joined: Wed May 02, 2012 2:50 pm

Monitoring applications in Program Files?

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring applications in Program Files?

Post by scottwilkerson »

Can you explain a little more detailed what you want to accomplish and what you have tried so far.

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mike.wezesa
Posts: 9
Joined: Wed May 02, 2012 2:50 pm

Re: Monitoring applications in Program Files?

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring applications in Program Files?

Post by scottwilkerson »

You should be able to just enter p4s.exe
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring applications in Program Files?

Post 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?
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mike.wezesa
Posts: 9
Joined: Wed May 02, 2012 2:50 pm

Re: Monitoring applications in Program Files?

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring applications in Program Files?

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
mike.wezesa
Posts: 9
Joined: Wed May 02, 2012 2:50 pm

Re: Monitoring applications in Program Files?

Post 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!
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Monitoring applications in Program Files?

Post by nscott »

Thats great! I'm gonna mark this topic and resolved, please feel free to ask anymore questions if you have them.
Nicholas Scott
Former Nagios employee
Locked