Nagios define service help

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Nagios define service help

Post by kwhogster »

Raspberry PI running raspbian
Nagios 4.1 Core

Have many services working from my Windows Server platform no issues.

I tried to add this service which has a space in the name which from what I read is supported but it fails to find the services


define service{
use generic-service
host_name SERV013
service_description ADManager Plus
check_command check_nt!SERVICESTATE!-d SHOWALL -l ADManager Plus
}

This is the service details from the server

[serv013]: PS C:> get-service ad* | fl


Name : ADManager Plus
DisplayName : ManageEngine ADManager Plus
Status : Running
DependentServices : {}
ServicesDependedOn : {}
CanPauseAndContinue : False
CanShutdown : True
CanStop : True
ServiceType : Win32OwnProcess, InteractiveProcess

Thoughts

Thanks
vnc786
Posts: 68
Joined: Thu Aug 29, 2013 8:45 am

Re: Nagios define service help

Post by vnc786 »

can you try this

Code: Select all

check_command check_nt!SERVICESTATE!-d SHOWALL -l ADManager\ Plus
I use NagiosXI and i use backslash to avoid space issue.

edit: if above doesnt work try adding single quote

Code: Select all

'ADManager Plus'
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Nagios define service help

Post by kwhogster »

Thanks

the
check_command check_nt!SERVICESTATE!-d SHOWALL -l ADManager\ Plus

Worked

This issue has been reolved
bwallace
Posts: 1146
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios define service help

Post by bwallace »

Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked