-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
Using the latest version from git I get this:
# ./check_snmp_load.pl -v -H habocp1 -C public -2 -T netsl -w 5,5,4 -c 7,7,5
Alarm in 5 seconds
SNMP v2c login
Checking linux load
ERROR: Description table : The requested table is empty or does not exist.
And that's because the wrong oid is requested.
00:00:00.000000 5a:61:54:8f:4c:42 > ac:1f:6b:28:03:c0, ethertype IPv4 (0x0800), length 87: 10.10.8.17.33869 > 10.10.10.230.161: GetBulk(30) N=0 M=25 .1.3.6.1.2.1.25.3.3.1.1
If I'd request the right oid I do get an answer:
# snmpwalk -v2c -c public habocp1 .1.3.6.1.4.1.2021.10.1.3.3
iso.3.6.1.4.1.2021.10.1.3.3 = STRING: "0.28"
Reading the code:
# Generic with host-ressource-mib
my $base_proc = "1.3.6.1.2.1.25.3.3.1"; # oid for all proc info
my $proc_id = "1.3.6.1.2.1.25.3.3.1.1"; # list of processors (product ID)
my $proc_load = "1.3.6.1.2.1.25.3.3.1.2"; # %time the proc was not idle over last minute
# Linux load
my $linload_table = "1.3.6.1.4.1.2021.10.1"; # net-snmp load table
my $linload_name = "1.3.6.1.4.1.2021.10.1.2"; # text 'Load-1','Load-5', 'Load-15'
my $linload_load = "1.3.6.1.4.1.2021.10.1.3"; # effective load table