Cisco - Check Juniper SA - SNMP v1, v2c, v3
Description
This script check Juniper SA (tested on Juniper SA-4500).
Modules included :
Mode 1 - Disk
- check Disk and log file status => warning or critical if used too much Mode 2 - Memory
- check memory used => warning or critical if used too much Mode 3 - Users
- check number of users connected => warning or critical if too much users connected
Usage
check_snmp_juniper_sa.sh -H hostname -V version -M mode [-w|-c|-C|-l|-u|-a|-m|-d|-h]
-H (IP adresse or DNS name)
-V (1|2c|3)
-M (disk|memory|users)
### OPTIONNAL ###
-w *** Use on disk|memory|users mode ***
-c *** Use on disk|memory|users mode ***
-C (name) *** Use on Version 1|2 ***
-l (NoAuthNoPriv | AuthNoPriv | AuthPriv) *** Use on Version 3 ***
-u *** Use on Version 3 ***
-a *** Use on Version 3 ***
-m *** Use on users mode ***
-d Debug mode
-h Help (print command usage, and quit)
Sample commands:
#./check_snmp_juniper_sa.sh -H 192.168.0.1 -V 1 -M disk -C Public -w 80 -c 90
OK - Disk used : 3% - Log file full : 2% | Used=3 log=2 Max=100
#./check_snmp_juniper_sa.sh -H 192.168.0.1 -V 2c -M memory -C Public -w 50 -c 90
Warning - Memory used : 56% - Swap used : 12% | Used=56 swap=12 Max=100
#./check_snmp_juniper_sa.sh -H 192.168.0.1 -V 2c -M users -C Public -w 80 -c 90 -m 100
OK - Users connected : 1/100 | Users=1 Max=100
#./check_snmp_juniper_sa.sh -h
Display help
#./check_snmp_juniper_sa.sh xxxxxx -d
Active debug mod