Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
SNMP Agent simulator (Net-SNMP/PHP)
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
For instance this is usefull for offline-development of new check-plugins. You don’t need physical access to the SNMP server running the agents. All you need is a numeric SNMP-dump of the actual tree you are interested in, which may be obtained in a single on-site run. An example of the LanManager (77) tree beyond enterprises (1.3.6.1.4.1) could look like:
* snmpwalk -O n -C c -c public -v 2c myhostname 1.3.6.1.4.1.77 | sort>lanmgr.dump
While some agents don’t supply OIDs in increasing order, we can work around that using “-C c” and “sort” in this example.
As soon as you are done with this just copy the output (here “lanmgr.dump”) and integrate it into your own SNMP daemon. In order to add the LanManager tree to your local Net-SNMP daemon you would add the following line to /etc/snmp/snmpd.conf:
* pass_persist .1.3.6.1.4.1.77 /usr/local/sbin/mySNMPagent.php /tmp/lanmgr.dump
Please note, that NET-SNMP may take a long time to start up and load what you specified behind pass_persist commands! It will result in "No Such Object available on this agent at this OID" messages and may take a few minutes to load even on new hardware!
ATTENTION: this is a tool in very early stage of development. While it may be useful for a lot of cases, there was no heavy testing so far. Multiline hex-output is not yet supported. Other stuff may be missing.
* snmpwalk -O n -C c -c public -v 2c myhostname 1.3.6.1.4.1.77 | sort>lanmgr.dump
While some agents don’t supply OIDs in increasing order, we can work around that using “-C c” and “sort” in this example.
As soon as you are done with this just copy the output (here “lanmgr.dump”) and integrate it into your own SNMP daemon. In order to add the LanManager tree to your local Net-SNMP daemon you would add the following line to /etc/snmp/snmpd.conf:
* pass_persist .1.3.6.1.4.1.77 /usr/local/sbin/mySNMPagent.php /tmp/lanmgr.dump
Please note, that NET-SNMP may take a long time to start up and load what you specified behind pass_persist commands! It will result in "No Such Object available on this agent at this OID" messages and may take a few minutes to load even on new hardware!
ATTENTION: this is a tool in very early stage of development. While it may be useful for a lot of cases, there was no heavy testing so far. Multiline hex-output is not yet supported. Other stuff may be missing.
Reviews (0)
Be the first to review this listing!