Page 1 of 1

NRPE definition question

Posted: Fri Sep 13, 2013 5:04 pm
by jbruyet
Hey all, I've been trying to get a service definition working and after some random changes I finally got it to work. Here's the original definition that doesn't work:

Code: Select all

define service {
	use			generic-service
	hostgroup		win7Group
	service_description	Hard Disk Check
	check_command		check_nrpe2!CheckDriveSize -a ShowAll=long MinWarnFree=10% MinCritFree=5% Drive=c:\
}
and here's the definition that does work:

Code: Select all

define service {
	use			generic-service
	hostgroup		win7Group
	service_description	Hard Disk Check
	check_command		check_nrpe2!CheckDriveSize -a ShowAll=long MinWarnFree=10% MinCritFree=5% Drive=c:\

}
Notice the additional line feed between the closing curly bracket and the check_command. Any idea why this happened? I've spent quite a bit of time working on it.

Thanks,

Joe B

Re: NRPE definition question

Posted: Sat Sep 14, 2013 11:49 am
by jbruyet
For what it's worth the check_nrpe2 command is the way it works under FreeBSD.

Thanks,

Joe B

Re: NRPE definition question

Posted: Sat Sep 14, 2013 3:22 pm
by scottwilkerson
it's hard to say without seeing your check_nrpe2 command definition however I would guess it has something to do with ending the line with the escape char

Code: Select all

 \