Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_snmp_attributes.pl - experimental plugin base & library
0.32
2011-12-20
- Nagios 2.x
- Nagios 3.x
- Nagios XI
- Nagios Fusion
GPL
81858
File | Description |
---|---|
check_snmp_attributes.pl | check_snmp_attributes.pl - version 0.32 (Dec 2011), copy this to your plugins directory |
check_netsnmp_memory.pl | check_netsnmp_memory.pl - version 0.15 (Dec 2011), a working example of plugin using check_snmp_attributes base |
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!
The syntax for defining data is an expression in a reverse polish notation as with HP calculators with a stack used for data processing. If you scroll down to the end of this file (which is what I recommend instead of reading top-bottom) you will see definitions of these operators which are based on name and regex; note that numeric data is also one of the operators. Operators can be overloaded, with right one chosen depending on what is on stack (so one '+' is used to add two numeric values and another '+' operator to conctatenate strings).
Its all very cool and all but I decided it got too complex for its own good and its easier to just write plugins in perl as I did before. However I did write SNMP Memory plugin using this library and had installed it in places with many thousands of servers so library appears to be stable and working fine although I'm sure it has plenty of bugs if you start extending it further so it should be considered EXPERIMENTAL.
I've no immediate plans to develop this further right now but I decided its worth being released to the public. Perhaps others will find it an interesting project and want to either write their own plugins with this or develop this further.
Reviews (0)
Be the first to review this listing!