riskersen / Monitoring

Monitoring plugins wich are Nagios/icinga compatible
65 stars 112 forks source link

Fortigate 600E: Type disk gives me "illegal division by zero" error #62

Closed ReneRiech closed 3 years ago

ReneRiech commented 3 years ago

Hi everyone,

I get this error message: "Illegal division by zero at /home/dgadm/check_fortigate.pl line 363."

while checking the type disk on one of our 600E (v 6.2.4). With my pathetic Perl knowledge, I've tried to print out the values for $value_usage and $value_cap and I get always a zero. Same with a snmpwalk on the OIDs: SNMPv2-SMI::enterprises.12356.101.4.1.7.0 = Gauge32: 0 SNMPv2-SMI::enterprises.12356.101.4.1.6.0 = Gauge32: 0 This explains the error message. But I wonder why I it's always zero, the 600E should have SSDs.

Other types like ses, mem and hw are working. CPU gives me 0% though, but at least not an error :)

Any ideas?

Greetings

René

ReneRiech commented 3 years ago

Ok, we've checked it. Our Fortigate does have a "size" of 0, so he output is correct.