Exceeding external_command_buffer_slots?

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
grimm26
Posts: 36
Joined: Wed Dec 12, 2012 1:57 pm

Exceeding external_command_buffer_slots?

Post by grimm26 »

Is there a way to tell if I am exceeding external_command_buffer_slots? I have a setup where I am feeding a lot of passive check results into the command_file (one check puts in over 1000 when it runs). Some of the passive checks seem to not be processed, though, so I'm trying to figure out why :). I do have command_check_interval set to -1.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Exceeding external_command_buffer_slots?

Post by abrist »

You can use mrtg and nagiostats to monitor the external command buffer. Otherwise, just try increasing the buffer's value in the nagios.cfg and wait to see if you have any lost checks.
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.
grimm26
Posts: 36
Joined: Wed Dec 12, 2012 1:57 pm

Re: Exceeding external_command_buffer_slots?

Post by grimm26 »

OK, so it turned out I was well under my buffer slot ceiling. So I started poking around some more and doing some more Google searching. My service check is a perl script, and what finally helped me out was unbuffering the filehandle to the nagios command file (named pipe). Once I did that, everything started coming through fine. For some reason the buffer for that filehandle was not always getting cleared, I guess. I was closing it properly, so it is a bit of a mystery.
Last edited by grimm26 on Tue Jun 25, 2013 3:59 pm, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Exceeding external_command_buffer_slots?

Post by slansing »

Hmm, well thanks for the fix you used for the problem, can we help you with anything else?
Locked