[Nagiosplug-devel] Please can I have GIT access
Max
perldork at webwizarddesign.com
Sat Aug 29 20:00:59 CEST 2009
On Sat, Aug 29, 2009 at 1:11 PM, Alain Williams<addw at phcomp.co.uk> wrote:
>> Sorry I didn't see this whole plugin thread when it first came out; we
>> use Memcache for this purpose (for SNMP delta processing). Yes,
>> external dependency, but performance is excellent and you can move the
>> cache off-host if you need to :).
>
> This does seem much more complicated than just giving a file name, more difficult
> for an end user to set up. It is also RAM kept permanently in use, whereas
> with a file - it is opened once every 5 minutes.
I am not arguing it is easier or better. I only brought it up as a
way to keep state for plugins in general :) as you said no one had
responded with alternate ideas.
Since check_procs is typically run on a remote host via NRPE or ssh,
yes, I can see that having memcache on every managed client would not
be a smart idea and I would not do that myself, memcache is great for
centralized plugins running from the context of the Nagios poller.
> Why do you consider this superior to using a file ? After all nagios itself
> uses a status.dat file to store state info.
> I don't understand.
We find memcache scales very well for plugins run from the central
Nagios poller; in our experience we have found RAM-based data stores,
either through a memory-based cache like memcache or RAM disks,
perform the best for us.
If I were using your plugin and it required a state file and I was
running it through NRPE I would certainly place the state file on a
RAM disk on each monitored host to get the persistence and the best
performance from it.
- Max
More information about the Devel
mailing list