Skip to content

FGT70 Fortigate 70F with 7.4 get no sessions, mem and cpu data #101

@josy1024

Description

@josy1024

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 $label = $[1];
my $UOM = $
[2];

if ( $slave == 1 ) {
$oid = $[0] . ".2";
$label = "slave
" . $label;
} elsif ( $curr_serial =~ /^FG100A/ ) {
$oid = $[0];
} elsif ( $curr_serial =~ /^FG201/ ) {
$oid = $
[0];
} elsif ( $curr_serial =~ /^FGT70/ ) {
$oid = $_[0];

} elsif ( $curr_serial =~ /^FG/ ) {
$oid = $[0] . ".1";
} else {
$oid = $
[0];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions