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.
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:
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:\
}
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.
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