Page 1 of 1

Nagios define service help

Posted: Fri Nov 27, 2015 12:26 pm
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

Re: Nagios define service help

Posted: Sat Nov 28, 2015 1:26 am
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'

Re: Nagios define service help

Posted: Sun Nov 29, 2015 11:39 am
by kwhogster
Thanks

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

Worked

This issue has been reolved

Re: Nagios define service help

Posted: Mon Nov 30, 2015 11:29 am
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.