check_solaris_nics

Bookmark and Share

Rating
0 votes
Favoured:
0
Hits
80667
Files:
FileDescription
check_solaris_nics_1_11.tar.gzcheck_solaris_nics 1.11
Nagios plugin to check network interfaces (link status, duplex, speed) on Solaris.
This Nagios plugin checks link status, duplex and speed for
given Solaris network interfaces. Tested with bge, ce,
e1000g, eri, hme, nxge and qfe devices (feel free to add more).

You can give one or more interfaces and their expected speeds
and duplex settings as parameters. The plugin will return:

0 (OK) - if all interfaces are up with correct speed and duplex
1 (WARNING) - if all interfaces are up but any of them has
incorrect speed or duplex
2 (CRITICAL) - if one or more interfaces are down

Examples:

# check_solaris_nics.sh -i ce0 -s 1000 -d full
OK - ce0 up 1000 Mbps full duplex

# check_solaris_nics.sh -i ce1 -s 1000 -d full
SPEED WARNING - ce1 up 100 Mbps full duplex

# check_solaris_nics.sh -i ce2 -s 1000 -d full
DUPLEX WARNING - ce2 up 100 Mbps half duplex

# check_solaris_nics.sh -i ce3 -s 1000 -d full
CRITICAL - ce3 down


Revision: 1.11
- added option -e (errors only)
- some minor internal tweaks with variable naming etc.