2 equal services on the same host

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.
DiegoAnjos
Posts: 49
Joined: Thu Feb 14, 2013 9:32 am

Re: 2 equal services on the same host

Post by DiegoAnjos »

Instead of checking the PROCESS, check the SERVICE:

As this service of has a $ on its name, you have to escape the $ with another $ and single-quote the name:

Code: Select all

define service{
	use			        generic-service
	host_name		SRVXXX
	service_description	Service XXX01
	check_command		check_nt!SERVICESTATE!-d SHOWALL -l 'A0S50$$01'
	}

Code: Select all

define service{
	use			        generic-service
	host_name		SRVXXX
	service_description	Service XXX02
	check_command		check_nt!SERVICESTATE!-d SHOWALL -l 'A0S50$$02'
	}
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: 2 equal services on the same host

Post by cdienger »

Hi h4doukeeN, did the last couple of replies help you?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked