Page 1 of 2
Warning: 2 services running
Posted: Wed Jan 22, 2020 2:30 pm
by Kxfrancois
We just upgraded our SEP and we not have 2 services running for SEP on every server.
I am getting this in Nagios: 2 services active (matching "Symantec Endpoint Protection") : WARNING
What can I do to fix this issue?
Thanks,
Kerwin
Re: Warning: 2 services running
Posted: Wed Jan 22, 2020 6:07 pm
by mbellerue
What command are you using to get the number of services? Is this running through an agent like NRPE or NCPA?
Re: Warning: 2 services running
Posted: Thu Jan 23, 2020 7:11 am
by Kxfrancois
I am running $USER1$/check_snmp_win.pl -H $HOSTADDRESS$ $ARG1$
no running through an agent
Re: Warning: 2 services running
Posted: Thu Jan 23, 2020 6:12 pm
by Box293
From CCM in XI can you use the Test Check Command button from within the service and show us the result.
Re: Warning: 2 services running
Posted: Fri Jan 24, 2020 6:43 am
by Kxfrancois
/usr/local/nagios/libexec/check_snmp_win.pl -H biglots -C hello --v2c -n 'Symantec Endpoint Protection'
2 services active (matching "Symantec Endpoint Protection") : WARNING
Re: Warning: 2 services running
Posted: Fri Jan 24, 2020 4:34 pm
by cdienger
There could be another service matching for some reason. Try the command again but with the "-v" which should show services:
Code: Select all
/usr/local/nagios/libexec/check_snmp_win.pl -H biglots -C hello --v2c -n 'Symantec Endpoint Protection' -v
Re: Warning: 2 services running
Posted: Sun Jan 26, 2020 5:47 pm
by Kxfrancois
There are 2 services with Symantec Endpoint protection in the name. Is there a way to all for multiple services with the same name?
Re: Warning: 2 services running
Posted: Mon Jan 27, 2020 5:09 pm
by Box293
You could try the
-N argument:
Code: Select all
-n, --name=NAME[,NAME2...]
Comma separated names of services (perl regular expressions can be used for every one).
By default, it is not case sensitive.
-N, --number=<n>
Compare matching services with <n> instead of the number of names provided.
Re: Warning: 2 services running
Posted: Mon Jan 27, 2020 5:13 pm
by cdienger
Are the names exactly the same? It would be best to use the unique name of the service you want to be monitoring.
Re: Warning: 2 services running
Posted: Tue Jan 28, 2020 7:11 am
by Kxfrancois
That worked! Thank you. Please close this ticket