Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Use per-host SNMP communities on check plugins with a new variable.
Current Version
Last Release Date
June 24, 2009
Owner
Nagios Exchange
nagios snmp community patch for nagios 2.0b4
Nagios 2.0RC2 - SNMP Community patch - fixed
SNMP Patch for Nagios 2.3
To use this patch, add to your hosts definitions the variable community with the SNMP community of the host:
define host{
use Template host_name XXXX alias XXXX address XXXX hostgroups XXXX community public }
The community is read by nagios on startup and is copied into the env variable SNMPCOMMUNITY to be used into the checks definition.
So the check definition can be:
$USER1$/check-mysnmp -C $SNMPCOMMUNITY$ -H $HOSTADDRESS$
and on each call of the plugin the right snmp community is used for the check execution.
A warning is generated on the nagios execution if the community is not set for a particular host.
The patch has been tested on nagios 2.0b4 and has to been applied to the nagios sources with patch -p0
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!