Home Directory Plugins Network Protocols SNMP Nagios snmp checks using PHP

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Nagios snmp checks using PHP

Rating
0 votes
Favoured:
0
Hits
154802
Files:
FileDescription
get_snmp.phpSNMP checks v1.2.1
get_snmp.php.gzSNMP checks v1.2.2
get_snmp-1.6.php.gzSNMP checks v1.6
Nagios CSP

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!
Scripts made in PHP for usual snmp checks like bandwidth usage, iface status, current transfer rate and more. It's faster than Perl scripts, and a little more comprehensible :-/
I started using the other SNMP plugins developed in Perl or C, but when our project reached more than 150 snmp checks the system resources lowered until 43% (CPU idle) in a PIII.

I tried to made this plugin in PHP using the snmp lib and the results where absolutly grateful (the 43% CPU idle grow up 88% in a PIII).


Current version (v1.6) allow to:
- new full test feature for CISCO and compatible OID servers. With one check you will have the status of all interfaces (admin and oper status), CPU usage and MEM usage.
- new CPU usage check
- new MEM usage check

And...
Ifaces and traffic
- get the number of interfaces
- check the operational status of one interface
- get the current input thoughput of one interface (in bps)
- get the current output thoughput of one interface (in bps)
- get the bandwidth of one interface (in bps)
- get the current bandwidth usage of one interface (in %)
- get
SAI
- (Merlin gerin) Battery charge level (in %)

The plugin allow parameters like warning and critical values to return a different exit status.

Its developed to run under Nagios, and exit codes are the standard exit codes.

Future releases migth allow more checks.

Requirements:
- php4-cli
- php4-snmp


I hope its useful for someone else, and any suggestions are welcome:

tiochan@remove-this-taggmail.com