SonicWall NSA 2400

SonicWall NSA 2400 - monitoring:

  • systemu
  • intefejsów sieciowych
  • kanału VPN

Wymagane:

Zapytania wykonujemy z poziomu systemu:

/usr/local/nagios/libexec/

=================================
SNMPv2
=================================

System name

./check_snmp -H IP_adress -C public -o sysName.0 -l " "

SNMP OK - xxxxxxxxxxxxx

Location

./check_snmp -H IP_adress -C public -o sysLocation.0 -l " "

SNMP OK - xxxxxxxxxxxxxxxxxxxx

Hardware (firmware version) and rom

./check_snmp -H IP_adress -C public -o sysDescr.0 -l " " -o snwlSysROMVersion.0 -l "Rom ver."

SNMP OK - SonicWALL NSA 2400 (SonicOS Enhanced 5.9.0.3-117o) Rom ver. 5.0.3.3

Serial number

./check_snmp -H IP_adress -C public -o snwlSysSerialNumber.0 -l " "

SNMP OK - xxxxxxxxxxxx

up Time

./check_snmp -H IP_adress -C public -o sysUpTime.0 -l " "

SNMP OK - Timeticks: (2616185836) 302 days, 19:10:58.36

CPU utilication

./check_snmp -H IP_adress -C public -o sonicCurrentCPUUtil.0 -l "%"

SNMP OK - % 2

RAM utilication

./check_snmp -H IP_adress -C public -o sonicCurrentRAMUtil.0 -l "%"

SNMP OK - % 48

================================

Value List up(1), down(2), testing(3), unknown(4), dormant(5), notPresent(6), lowerLayerDown(7)

Module: IF-MIB Description: The current operational state of the interface. The testing(3) state indicates that no operational packets can be passed. If ifAdminStatus is down(2) then ifOperStatus should be down(2). If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic; it should change to dormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection); it should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state; it should remain in the notPresent(6) state if the interface has missing (typically, hardware) components.

X0 status

./check_snmp -H IP_adress -C public -o ifOperStatus.1 -w 3,4,5,6,7 -c 2 -l "up(1) down(2) => "

SNMP OK - up(1) down(2) => 1

X1 status

./check_snmp -H IP_adress -C public -o ifOperStatus.2 -w 2,3,4,5,6,7 -l "up(1) down(2) => "

SNMP OK - up(1) down(2) => 1

X2 status

./check_snmp -H IP_adress -C public -o ifOperStatus.3 -w 3,4,5,6,7 -c 2 -l "up(1) down(2) => "

SNMP OK - up(1) down(2) => 1

X3 status

./check_snmp -H IP_adress -C public -o ifOperStatus.4 -w 3,4,5,6,7 -c 2 -l "up(1) down(2) => "

SNMP OK - up(1) down(2) => 1

X4 status

./check_snmp -H IP_adress -C public -o ifOperStatus.5 -w 2,3,4,5,6,7 -l "up(1) down(2) => "

SNMP OK - up(1) down(2) => 1

X5 status

./check_snmp -H IP_adress -C public -o ifOperStatus.6 -w 3,4,5,6,7 -c 2 -l "up(1) down(2) => "

SNMP OK - up(1) down(2) => 1

================================

VPN

./check_vpn.pl -c public -H IP_adress -V nazwa_kanału

VPN nazwa_kanału is alive.

 

SonicWall NSA 240 - Nagios monitoring

Script logo