Difference between revisions of "interface monitoring via snmp"

From cpwiki.net
Jump to: navigation, search
Check Point Profressional Services
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
notes... page in progress
 
notes... page in progress
  
[Expert@chkpfw1:0]# '''netstat -in'''
+
[Expert@chkpfw1:0]# '''netstat -in'''
Kernel Interface table
+
Kernel Interface table
Iface      MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
+
Iface      MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0      1500  0 103695407    104    163      0 21955304      0      0      0 BMRU
+
eth0      1500  0 103695407    104    163      0 21955304      0      0      0 BMRU
eth1      1500  0 84889247      3      0      0  134888      0      0      0 BMRU
+
eth1      1500  0 84889247      3      0      0  134888      0      0      0 BMRU
eth2      1500  0 51557348      0      0      0        0      0      0      0 BMRU
+
eth2      1500  0 51557348      0      0      0        0      0      0      0 BMRU
lo        16436  0  7173067      0      0      0  7173067      0      0      0 LRU
+
lo        16436  0  7173067      0      0      0  7173067      0      0      0 LRU
  
 
RX-DRP
 
RX-DRP
  [Expert@chkpfw1:0]# '''snmpget -v 2c -c NAGIOS 192.168.175.2 IF-MIB::ifInDiscards.2'''  
+
  [Expert@chkpfw1:0]# '''snmpget -v 2c -c NAGIOS 192.168.1.2 IF-MIB::ifInDiscards.2'''  
 
  IF-MIB::ifInDiscards.2 = Counter32: 163
 
  IF-MIB::ifInDiscards.2 = Counter32: 163
  
 
RX-ERR
 
RX-ERR
  [Expert@chkpfw1:0]# '''snmpget -v 2c -c NAGIOS 192.168.175.2 IF-MIB::ifInErrors.2'''
+
  [Expert@chkpfw1:0]# '''snmpget -v 2c -c NAGIOS 192.168.1.2 IF-MIB::ifInErrors.2'''
 
  IF-MIB::ifInErrors.2 = Counter32: 104
 
  IF-MIB::ifInErrors.2 = Counter32: 104
  
[Expert@chkpfw1:0]# '''snmpwalk -v 2c -c NAGIOS 192.168.175.2  | grep -i if.*UcastPkts'''
+
[Expert@chkpfw1:0]# '''snmpwalk -v 2c -c NAGIOS 192.168.1.2  | grep -i if.*UcastPkts'''
IF-MIB::ifInUcastPkts.1 = Counter32: 7173335
+
IF-MIB::ifInUcastPkts.1 = Counter32: 7173335
IF-MIB::ifInUcastPkts.2 = Counter32: 103699664
+
IF-MIB::ifInUcastPkts.2 = Counter32: 103699664
IF-MIB::ifInUcastPkts.3 = Counter32: 84893047
+
IF-MIB::ifInUcastPkts.3 = Counter32: 84893047
IF-MIB::ifInUcastPkts.4 = Counter32: 51559644
+
IF-MIB::ifInUcastPkts.4 = Counter32: 51559644
IF-MIB::ifInNUcastPkts.1 = Counter32: 0
+
IF-MIB::ifInNUcastPkts.1 = Counter32: 0
IF-MIB::ifInNUcastPkts.2 = Counter32: 0
+
IF-MIB::ifInNUcastPkts.2 = Counter32: 0
IF-MIB::ifInNUcastPkts.3 = Counter32: 0
+
IF-MIB::ifInNUcastPkts.3 = Counter32: 0
IF-MIB::ifInNUcastPkts.4 = Counter32: 0
+
IF-MIB::ifInNUcastPkts.4 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 7173335
+
IF-MIB::ifOutUcastPkts.1 = Counter32: 7173335
IF-MIB::ifOutUcastPkts.2 = Counter32: 21956198
+
IF-MIB::ifOutUcastPkts.2 = Counter32: 21956198
IF-MIB::ifOutUcastPkts.3 = Counter32: 134891
+
IF-MIB::ifOutUcastPkts.3 = Counter32: 134891
IF-MIB::ifOutUcastPkts.4 = Counter32: 0
+
IF-MIB::ifOutUcastPkts.4 = Counter32: 0
IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
+
IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
+
IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
+
IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
+
IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
HOST-RESOURCES-MIB::hrSWRunParameters.28716 = STRING: "-i if.*UcastPkts"
+
HOST-RESOURCES-MIB::hrSWRunParameters.28716 = STRING: "-i if.*UcastPkts"
IF-MIB::ifHCInUcastPkts.1 = Counter64: 7173335
+
IF-MIB::ifHCInUcastPkts.1 = Counter64: 7173335
IF-MIB::ifHCInUcastPkts.2 = Counter64: 103699664
+
IF-MIB::ifHCInUcastPkts.2 = Counter64: 103699664
IF-MIB::ifHCInUcastPkts.3 = Counter64: 84893047
+
IF-MIB::ifHCInUcastPkts.3 = Counter64: 84893047
IF-MIB::ifHCInUcastPkts.4 = Counter64: 51559644
+
IF-MIB::ifHCInUcastPkts.4 = Counter64: 51559644
IF-MIB::ifHCOutUcastPkts.1 = Counter64: 7173335
+
IF-MIB::ifHCOutUcastPkts.1 = Counter64: 7173335
IF-MIB::ifHCOutUcastPkts.2 = Counter64: 21956198
+
IF-MIB::ifHCOutUcastPkts.2 = Counter64: 21956198
IF-MIB::ifHCOutUcastPkts.3 = Counter64: 134891
+
IF-MIB::ifHCOutUcastPkts.3 = Counter64: 134891
IF-MIB::ifHCOutUcastPkts.4 = Counter64: 0
+
IF-MIB::ifHCOutUcastPkts.4 = Counter64: 0

Latest revision as of 18:45, 19 June 2020

notes... page in progress

[Expert@chkpfw1:0]# netstat -in
Kernel Interface table
Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0       1500   0 103695407    104    163      0 21955304      0      0      0 BMRU
eth1       1500   0 84889247      3      0      0   134888      0      0      0 BMRU
eth2       1500   0 51557348      0      0      0        0      0      0      0 BMRU
lo        16436   0  7173067      0      0      0  7173067      0      0      0 LRU

RX-DRP

[Expert@chkpfw1:0]# snmpget -v 2c -c NAGIOS 192.168.1.2 IF-MIB::ifInDiscards.2 
IF-MIB::ifInDiscards.2 = Counter32: 163

RX-ERR

[Expert@chkpfw1:0]# snmpget -v 2c -c NAGIOS 192.168.1.2 IF-MIB::ifInErrors.2
IF-MIB::ifInErrors.2 = Counter32: 104
[Expert@chkpfw1:0]# snmpwalk -v 2c -c NAGIOS 192.168.1.2  | grep -i if.*UcastPkts
IF-MIB::ifInUcastPkts.1 = Counter32: 7173335
IF-MIB::ifInUcastPkts.2 = Counter32: 103699664
IF-MIB::ifInUcastPkts.3 = Counter32: 84893047
IF-MIB::ifInUcastPkts.4 = Counter32: 51559644
IF-MIB::ifInNUcastPkts.1 = Counter32: 0
IF-MIB::ifInNUcastPkts.2 = Counter32: 0
IF-MIB::ifInNUcastPkts.3 = Counter32: 0
IF-MIB::ifInNUcastPkts.4 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 7173335
IF-MIB::ifOutUcastPkts.2 = Counter32: 21956198
IF-MIB::ifOutUcastPkts.3 = Counter32: 134891
IF-MIB::ifOutUcastPkts.4 = Counter32: 0
IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
HOST-RESOURCES-MIB::hrSWRunParameters.28716 = STRING: "-i if.*UcastPkts"
IF-MIB::ifHCInUcastPkts.1 = Counter64: 7173335
IF-MIB::ifHCInUcastPkts.2 = Counter64: 103699664
IF-MIB::ifHCInUcastPkts.3 = Counter64: 84893047
IF-MIB::ifHCInUcastPkts.4 = Counter64: 51559644
IF-MIB::ifHCOutUcastPkts.1 = Counter64: 7173335
IF-MIB::ifHCOutUcastPkts.2 = Counter64: 21956198
IF-MIB::ifHCOutUcastPkts.3 = Counter64: 134891
IF-MIB::ifHCOutUcastPkts.4 = Counter64: 0