Am Montag, 23. Januar 2006 07:30 schrieb timeless: > The purpose of this was that since our cluster already has SNMP set up, > we didn't also want to run NRPE, nor set up passwordless SSH from the > Nagios machine. I couldn't find an SNMP query tool that took standard > Unix commands and tried to give sensible output based on that, so I > wrote my own. > > First a generic command to SNMP translator Perl script. You ask it > something like "df" or "ps" or "loadavg" and it tells you the > information from SNMP from the host you're interested in. > > http://faemalia.org/wiki/view/Technical/SNMPtoUnixCommandMapping > > The next is a Nagios plugin that depends on the first. Largely it's the > exact same syntax in usage, but with a "--threshold" argument to decide > what is WARNING vs. CRITICAL. Right now the only supported threshold is > Disk Usage by Partition, but I think if you look at the source, you'll > find it's pretty easy to add in things like total processes and such. > > Homework: Improve the Nagios script to do other alert thresholds. Extra > credit: combine both scripts into one. Maybe only invoke the Nagios > functionality if --threshold is passed, otherwise act only as an SNMP > query/formatting tool. I may do this myself in the coming months. > > -- > timeless
Hi, what about "exec" configuration option in net-snmp? I think it is exactly what you have been looking for ... -- Dr. Michael Schwartzkopff MultiNET Services GmbH Bretonischer Ring 7 85630 Grasbrunn Tel: (+49 89) 456 911 - 0 Fax: (+49 89) 456 911 - 21 mob: (+49 174) 343 28 75 PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42
pgpL2XU4SrGdN.pgp
Description: PGP signature
