-
Notifications
You must be signed in to change notification settings - Fork 108
Description
symtom
check command gets 0% values:
./check_fortigate.pl -H -C -T cpu
Memory is okay: 0%|
CPU is okay: 0%|
diagnose
snmpwalk oid check memory:
snmpwalk -v2c -c ".1.3.6.1.4.1.12356.101.4.1.4.0" gets expected data
SNMPv2-SMI::enterprises.12356.101.4.1.4.0 = Gauge32: 50
.1 gets:
= No Such Instance currently exists at this OID
seems some oid's have been changed...
solution
fortigate serial FGT70FTK11111111 check in get_health_value
myFIX: change / check for FGT70 serial in get_health_value
for: https://github.com/riskersen/Monitoring/blob/master/fortigate/check_fortigate.pl
sub get_health_value {
my
my $UOM = $[2];
if ( $slave == 1 ) {
$label = "slave" . $label;
} elsif ( $curr_serial =~ /^FG100A/ ) {
} elsif ( $curr_serial =~ /^FG201/ ) {
$oid = $[0];
} elsif ( $curr_serial =~ /^FGT70/ ) {
$oid = $_[0];
} elsif ( $curr_serial =~ /^FG/ ) {
} else {
$oid = $[0];
}