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_network.pl

Last Release Date
2017-11-30
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
5126
Files:
FileDescription
check_network.plcheck_network.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Checks the Network statistics using the sar command.
https://github.com/throwsb/nagios-checks/blob/master/check_network.md
check_network.pl - Checks the Network statistics. It will also provide the following statistics:
rxKBsec - Total number of kilobytes received per second.
txKBsec - Total number of kilobytes transmitted per second.
rxPCKsec - Total number of packets received per second.
txPCKsec - Total number of packets transmitted per second.
Usage:
usage: check_network.pl -blhds -c -w

-b Network device bandwidth
Alerts can be used against rxKBsec and txKBsec. Data is collected for each
network interface except for localhost (l0). You will be required to pass
the warning and critical values. The choice is also available to set alerting
against the high (-h) or low (-l) range. An example of low would be alerting if received
or transfer bandwidth is below a certain threshold. An example of high would
be alerting if received or transfer bandwidth exceeds a certain threshold.

Details on metrics collected are as follows.

rxKBsec - Total number of kilobytes received per second.
txKBsec - Total number of kilobytes transmitted per second.
rxPCKsec - Total number of packets received per second.
txPCKsec - Total number of packets transmitted per second.

Example call

Call with thresholds on high values:
check_network.pl -b -h -w 100 -c 200

-e Network device failures or errors
Data is collected for each network interface except for localhost (l0). You
will be required to pass the warning and critical values. The choice is also
available to set alerting against the high (-h) or low (-l) range. An
example of low would be alerting if errors are below a certain threshold.
An example of high would be alerting if errors exceeds a certain threshold.

Details on metrics collected are as follows. All will report alerts.

rx_errorsec - Total number of bad packets received per second.
tx-errorsec - Total number of bad packets received per second.
coll_sec - Total number of bad packets received per second.
rx_dropsec - Number of received packets dropped per second because of
a lack of space in linux buffers.
tx_dropsec - Number of transmitted packets dropped per second because of
a lack of space in linux buffers.

Example call

Call with thresholds on high values:
check_network.pl -e -h -w 10 -c 20

-s Network TCP established socket count.
Data is collected for TCP sockets currently in use by the system. You
will be required to pass the warning and critical values. The choice is also
available to set alerting against the high (-h) or low (-l) range. An
example of low would be alerting if errors are below a certain threshold.
An example of high would be alerting if errors exceeds a certain threshold.

Details on metrics collected are as follows. All will report alerts.

TCP_Active_Sockets - Number of TCP sockets currently in use.

Example call

Call with thresholds on high values:
check_network.pl -s -h -w 100 -c 200

-c
Sets the critical threshold value. This will depend if checking for high
limit (-h) or low limit (-l).
-w
Sets the warning threshold value. This will depend if checking for high
limit (-h) or low limit (-l).
-i
This sets the interval for a single data run to collect.
The result is the average of the collected sample.
The default is 10.
-h Set threshold checking to high limit.
-l Set threshold checking to low limit.
-d Debug