Page 1 of 1

Somne questions about the Nagios configuration file

Posted: Wed Sep 25, 2013 10:43 am
by itIsMrKevin
Hi,
We are running Nagios Core 3.2.3 on a machine running CentOS 5.9. I have a few questions about the Nagios configuration file.

1)
I noticed the following in one the service definitions: check_command check_nrpe!check_load
Is the ! being used to say run the "check_nrpe" test but not the "check_load" test?

2)
I noticed the following line in a second service defintion: check_imap!-p 993 -S
What is the ! being used for in this line?



3)
I noticed the following line in a third definition: check_http!-S
What is the ! being used for in this line?


I can see that the ! is used as for negation in some service defintion lines but I am not sure if this is true all of the time – especially for #2 and #3 above.

Thanks.

Re: Somne questions about the Nagios configuration file

Posted: Wed Sep 25, 2013 12:29 pm
by abrist
itIsMrKevin wrote: 1)..
2)..
3)..
'!' is a field delimiter/separator, not a logical operator in the check_command directive.
It separates the check_command from the $ARGn$ fields.

Re: Somne questions about the Nagios configuration file

Posted: Wed Sep 25, 2013 1:42 pm
by itIsMrKevin
Hi abrist,

Thanks for the reply. You answered my question. Feel free to close this thread out.

Re: Somne questions about the Nagios configuration file

Posted: Wed Sep 25, 2013 3:10 pm
by abrist
No problem, happy monitoring.