snmpwalk as external command or customize "Status information"

Jay R. Ashworth jra at baylink.com
Tue Jun 10 17:35:08 CEST 2008


On Mon, Jun 09, 2008 at 11:00:34AM +0200, Hugo van der Kooij wrote:
> You need to write a small script to act as your plugin. That script will
> ~ execute the snmpget or snmpwalk command and interpretate the output for
> you.
> 
> It should then set the return code to signal the proper status to nagios
> and you can select which part of the output will be passed through to
> nagios as text.
> 
> If I had a serious need for this I would write a perl script.

And use Net::SNMP, instead of shelling out to a command.

Cheers,
-- jra
-- 
Jay R. Ashworth                   Baylink                      jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com                     '87 e24
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274

	     Those who cast the vote decide nothing.
	     Those who count the vote decide everything.
	       -- (Joseph Stalin)

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list