Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@hypnoz
Favorites0
Views
Projects0
This is great, I can tell you put a lot of time into this check and I appreciate it. I wasn't totally sure where to put the check_memcached.php file, so I just put it into /usr/local/pnp4nagios/share/templates.dist/ and did a nagios reload. Maybe you could make a note of where that file goes. Thanks for the examples they really helped out while putting this check into nagios configs. One thing I tweaked which is just being anal, is I switched the -R and -U order since the check output info matches -p,-T,-U,-R format. Not often you find such detailed work for pnp4nagios graphing on top of a check. Thanks again!
Reviewed 13 years ago
Nice plugin, one of the few that is written in bash and not perl (which always seems to require the Nagios::Plugin perl module). There is a typo at the end, the OK statement on line 103 has "$available" spelled incorrectly so it won't return the mem usage on an OK result. Easy fix though. I also changed the exit code on "usage" stuff to exit 4 which is the Unknown state. Thanks for a nice check.
This was a good starting point, but I think I have improved on this template, while also simplifying it. Check out my modifications. http://dpaste.de/nGQj/ One of the things I added was a reverse check, ot see if everything mounted on the system is also listed in fstab.
Reviewed 15 years ago