new service
-
Mani.Murugesan
- Posts: 67
- Joined: Fri May 12, 2017 1:37 am
new service
Hello Team,
recently I got a requirement that is for abc.exe
abc.exe is a service
but I tried to configure this service in my nagios I am getting Failed to open service abc : 1060: The specified service does not exist as an installed service
In windows abc service is server is already running
Could you please help me to resolve this issue ?
recently I got a requirement that is for abc.exe
abc.exe is a service
but I tried to configure this service in my nagios I am getting Failed to open service abc : 1060: The specified service does not exist as an installed service
In windows abc service is server is already running
Could you please help me to resolve this issue ?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: new service
what is the service called if you run the following command from the windows command line?
This is what you would use as the service, not abc.exe
Code: Select all
net start-
Mani.Murugesan
- Posts: 67
- Joined: Fri May 12, 2017 1:37 am
Re: new service
you are saying the below command will display the service name we need to use that service name in nagios configuration I mean
In -l option I need to mention right ?
/usr/local/nagios/libexec/check_nt -H <ip> -s "****" -p 12489 -v SERVICESTATE -l <service name> -d SHOWALL
In -l option I need to mention right ?
/usr/local/nagios/libexec/check_nt -H <ip> -s "****" -p 12489 -v SERVICESTATE -l <service name> -d SHOWALL
Re: new service
Yes, use the name that you see in the CMD in your command:
Keep in mind that if you have spaces and/or special characters in the name, you may need to wrap the name in single quotes.
Examples:
Not working:
Working:
Code: Select all
/usr/local/nagios/libexec/check_nt -H <ip> -s "****" -p 12489 -v SERVICESTATE -l <service name> -d SHOWALLExamples:
Not working:
Code: Select all
./check_nt -H x.x.x.x -s password -p 12489 -v SERVICESTATE -l Windows Audio -d SHOWALL
Failed to open service Windows: 424: The specified service does not exist as an installed service.Code: Select all
./check_nt -H x.x.x.x -s password -p 12489 -v SERVICESTATE -l 'Windows Audio' -d SHOWALL
Windows Audio: StartedBe sure to check out our Knowledgebase for helpful articles and solutions!
-
Mani.Murugesan
- Posts: 67
- Joined: Fri May 12, 2017 1:37 am
Re: new service
Thanks for your quick response .
I will get back to you soon
I will get back to you soon
-
Mani.Murugesan
- Posts: 67
- Joined: Fri May 12, 2017 1:37 am
Re: new service
Hello Team,
one more information the below service I have mentioned abc.exe(not original name) that is application they said like a this is not a service but in type it's showing .exe but In nagios how we can achieved this ?
Could you please help me ?
one more information the below service I have mentioned abc.exe(not original name) that is application they said like a this is not a service but in type it's showing .exe but In nagios how we can achieved this ?
Could you please help me ?
Re: new service
With NSClient++ you can monitor services and processes. You could use a command as such:
Example:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -p 5666 -c check_process -a "process=abc.exe"Code: Select all
/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -p 5666 -c check_process -a "process=cmd.exe" "warn=count>2" "crit=count>3"
OK: all processes are ok.|'count'=1;2;3Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Mani.Murugesan
- Posts: 67
- Joined: Fri May 12, 2017 1:37 am
Re: new service
Hello ,
I will check and confirm the same .
I will check and confirm the same .
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: new service
Sounds good.Mani.Murugesan wrote:Hello ,
I will check and confirm the same .