Network Connections, Stats and Bandwidth

check_iftraffic.php

Description:

This script will check the traffic and status of an interface, in just about the same way as check_iftraffic.pl does.

Current Version

1.04

Last Release Date

2011-09-16

Compatible With

License

Other


Project Notes
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) Add a Review
encrypted file?
by frank-ijskes, March 31, 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.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
2.3 (3)
Favorites
1
Views
100,862