Somne questions about the Nagios configuration file

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.
Locked
itIsMrKevin
Posts: 28
Joined: Tue Oct 23, 2012 1:28 pm

Somne questions about the Nagios configuration file

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Somne questions about the Nagios configuration file

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
itIsMrKevin
Posts: 28
Joined: Tue Oct 23, 2012 1:28 pm

Re: Somne questions about the Nagios configuration file

Post by itIsMrKevin »

Hi abrist,

Thanks for the reply. You answered my question. Feel free to close this thread out.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Somne questions about the Nagios configuration file

Post by abrist »

No problem, happy monitoring.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked