I've already all environment working. I've used the check_nt to monitor process, like this:
define service{
use generic-service
host_name netserver
contact_groups admins, analysts
service_description DBAccess
check_command check_nt!PROCSTATE!-d SHOWALL -l dbaccess.exe
}
This work. But now i need to monitor varios process that are the same .exe but have different parameters.
Like this:
appserver.exe -pf instance1.ini
appserver.exe -pf instance2.ini
appserver.exe -pf test.ini
How can i make it work? I can't figure how to use it with check_nt
Thanks
Best Answer
In your question, you haven't pointed out what do you want to monitor, I assume you want to check the process status. If the process is not running, NSClient++ will send notification to Nagios via NRPE.
Let's assume you are using NSClient++ for your windows monitoring with Nagios.
First, you need to define appropriate alias under nsclient.ini in your windows machine (by default: C:\program files\NSClient++\nsclient.ini)
Then you can define the service by simply changing the following line accordingly under your Nagios server:
For instance1:
It should do the tricks.