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

check_iftraffic.php

Rating
3 votes
Favoured:
1
Current Version
1.04
Last Release Date
2011-09-16
Owner
License
Other
Hits
100862
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!
This script will check the traffic and status of an interface, in just about the same way as check_iftraffic.pl does.
1.04:
Minor bugfix version.

1.03:
The script has been made independent of check_multiaddr.pl, it can still be run through multiaddr, but will no longer require it to be present. It now also supports checking of hosts on DNS name.

1.02:
It has been modified to support nearly all devices and we have optimized the way it finds the interfaces. This way it can cope with gaps between IDs.

1.01:
The only difference is that it was written in PHP and was optimized for Fortinet devices. It leaves out the Absolute in and out traffic since these are reset each time a Fortinet reboots.

Run the script without parameters to get an overview of the paramters.

e.g: php check_iftraffic.php
USAGE:
check_iftraffic.php -H [IP or Hostname] -C [Community] -i [IF name]
-I [InBandwidth] -O [OutBandwidth] -w [Warning]
-c [Critical] -u [Units to Convert to]
--totals [units]
--from-units [Units received from SNMP]
--counters [32/64]

e.g.:
/opt/nagios/libexec/check_iftraffic.php -H 127.0.0.1 -C Nagios -i eth0 -I 100 -O 100 -w 85 -c 95 -u kb --totals GB --from-units B --counters 64

This is how the script is to be called.
Reviews (1)
byfrank-ijskes, March 24, 2013
I cannot read the contents, nor tweak anything i want in this script, because it is "protected by copyright law" and the executable part is unreadable.

I do not trust antyhing like that on production servers. Too bad, this might have been something.