Page 1 of 1

UNKNOWN: No services selected with 'service' value given

Posted: Mon Feb 11, 2019 12:14 am
by nickanderson1982
I'm having an issue with a define service in my host cfg.
Status information is stating: UNKNOWN: No services selected with 'service' value given
Is there some syntax that I am missing? This check_command has never given me any issues in the past. Is there something I'm missing in 4.4.3?

I've done savservice and savservice.exe

define service {
host_name name
service_description Sophos Anti-Virus
check_command check_ncpa!-t 'token' -P 5693 -M 'services' -q 'service=savservice,status=running'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
contact_groups admins
}

Re: UNKNOWN: No services selected with 'service' value given

Posted: Mon Feb 11, 2019 8:53 am
by scottwilkerson
this is the error that is given if the service doesn't exist on the server.

Can you open the API in a web browser

Code: Select all

https://YOUR_CLIENT_IP:5693/
go to API, select services in drop-down

Do you see savservice in the list?

Re: UNKNOWN: No services selected with 'service' value given

Posted: Mon Feb 11, 2019 11:04 am
by nickanderson1982
I see its running. I changed the statement to match the SAVService. So caps do matter in this case.In the server properties of the service itself, it was listed as lower case. But the location you gave with the GUI showed it was uppercase. Thanks again for helping me. You can close the ticket.



"KeyIso": "running",
"MSiSCSI": "stopped",
"Navisphere_Agent": "running",
"COMSysApp": "stopped",
"svsvc": "stopped",
"SCPolicySvc": "stopped",
"BFE": "running",
"ProfSvc": "running",
"swi_filter": "running",
"SAVService": "running", <---------------------------------
"FontCache": "running",
"napagent": "stopped",
"seclogon": "stopped",
"vds": "stopped",
"swprv": "stopped",
"PlugPlay": "running",

Re: UNKNOWN: No services selected with 'service' value given

Posted: Mon Feb 11, 2019 11:31 am
by scottwilkerson
nickanderson1982 wrote:I see its running. I changed the statement to match the SAVService. So caps do matter in this case.In the server properties of the service itself, it was listed as lower case. But the location you gave with the GUI showed it was uppercase. Thanks again for helping me. You can close the ticket.



"KeyIso": "running",
"MSiSCSI": "stopped",
"Navisphere_Agent": "running",
"COMSysApp": "stopped",
"svsvc": "stopped",
"SCPolicySvc": "stopped",
"BFE": "running",
"ProfSvc": "running",
"swi_filter": "running",
"SAVService": "running", <---------------------------------
"FontCache": "running",
"napagent": "stopped",
"seclogon": "stopped",
"vds": "stopped",
"swprv": "stopped",
"PlugPlay": "running",
Great! Glad it is resolved

Locking thread