Fortigate VM64-Azure SNMP checks

Hello everyone,

I am new to Check_MK (2.0.0p5) and have a problem with discovering SNMP services on a Fortigate VM64-Azure.
The snmpwalks v1 and v2c work perfectly in cli.

snmpwalk -v2c -c public $ip
iso.3.6.1.2.1.1.1.0 = STRING: "$hostname"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.12356.101.1.90081
iso.3.6.1.2.1.1.3.0 = Timeticks: (482042236) 55 days, 19:00:22.36

Check_MK’s connection tests:
Bildschirmfoto 2021-06-17 um 17.13.46

The service discovery still finds no service at all.

Regards
Sven

The sysObject ID looks ok for a Fortigate.
Can you snmpwalk the OIDs under iso.3.6.1.4.1.12356.101.1 or iso.3.6.1 .4.1.12356.101.4?
Other Fortigate checks need the OIDs iso.3.6.1.4.1.12356.101.13 or iso.3.6.1.4.1.12356.101.12

I can smnpwalk every OID except the first one

user@server:~$ snmpwalk -v2c -c $commnunity $ip iso.3.6.1.4.1.12356.101.1
iso.3.6.1.4.1.12356.101.1 = No Such Object available on this agent at this OID
user@server:~$ snmpwalk -v2c -c $commnunity $ip iso.3.6.1.4.1.12356.101.4
iso.3.6.1.4.1.12356.101.4.1.1.0 = STRING: "v6.4.5,build1828,210217 (GA)"
iso.3.6.1.4.1.12356.101.4.1.2.0 = INTEGER: 1
iso.3.6.1.4.1.12356.101.4.1.3.0 = Gauge32: 0
iso.3.6.1.4.1.12356.101.4.1.4.0 = Gauge32: 52
...
user@server:~$ snmpwalk -v2c -c $commnunity $ip iso.3.6.1.4.1.12356.101.13
iso.3.6.1.4.1.12356.101.13.1.1.0 = INTEGER: 1
iso.3.6.1.4.1.12356.101.13.1.2.0 = INTEGER: 0
iso.3.6.1.4.1.12356.101.13.1.3.0 = INTEGER: 128
iso.3.6.1.4.1.12356.101.13.1.4.0 = INTEGER: 1
...
user@server:~$ snmpwalk -v2c -c $commnunity $ip iso.3.6.1.4.1.12356.101.12
iso.3.6.1.4.1.12356.101.12.1.1.0 = INTEGER: 5
iso.3.6.1.4.1.12356.101.12.2.2.1.2.1.1 = STRING: "VPN_user"
iso.3.6.1.4.1.12356.101.12.2.2.1.2.1.2 = STRING: "VPN_user"
iso.3.6.1.4.1.12356.101.12.2.2.1.2.1.3 = STRING: "VPN_user"
...

That’s ok as this OID is only used for identification and should be as text inside the OID .1.3.6.1.2.1.1.2.0.

What do you see if you do an “cmk --debug -vvII hostname” as siteuser?
You should see some yellow line what checks the systems tries to find on your device.

I don’t know why but cmk doesn’t seem to know the host I am doing the service check in…

Hostname or tag specification '$host' does not match any host.

I tried “cmk -l” but this host is missing.
I will try to readd the host.

I readded the host and the SNMP check works fine.
Thanks for your help.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.