lynara / checkmk

CheckMK addons / checks
GNU General Public License v3.0
0 stars 1 forks source link

Check does not find any tunnels? #2

Open fuf42 opened 4 years ago

fuf42 commented 4 years ago

Hi,

any idea, why the check isn't finding a single tunnel in our fortigate?

omd-printer:..sites/printer > cmk -vv --debug --checks=fortigate_ipsec_ph1 fortigate01
[cpu_tracking] Start with phase 'busy'
Check_MK version 1.6.0p13
Try aquire lock on /omd/sites/printer/tmp/check_mk/counters/fortigate01
Got lock on /omd/sites/printer/tmp/check_mk/counters/fortigate01
Releasing lock on /omd/sites/printer/tmp/check_mk/counters/fortigate01
Released lock on /omd/sites/printer/tmp/check_mk/counters/fortigate01
Loading autochecks from /omd/sites/printer/var/check_mk/autochecks/fortigate01.mk
+ FETCHING DATA
[cpu_tracking] Push phase 'snmp' (Stack: ['busy'])
 [snmp] No persisted sections loaded
 [snmp] Not using cache (Don't try it)
 [snmp] Execute data source
 [snmp] fortigate_ipsec_ph1: Fetching data
Executing BULKWALK of ".1.3.6.1.4.1.12356.101.12.2.2.1.2" on fortigate01
Executing SNMP GET of .1.3.6.1.4.1.12356.101.12.2.2.1.2 on fortigate01
=> [None] NOSUCHINSTANCE
Executing BULKWALK of ".1.3.6.1.4.1.12356.101.12.2.2.1.3" on fortigate01
Executing SNMP GET of .1.3.6.1.4.1.12356.101.12.2.2.1.3 on fortigate01
=> [None] NOSUCHINSTANCE
Executing BULKWALK of ".1.3.6.1.4.1.12356.101.12.2.2.1.20" on fortigate01
Executing SNMP GET of .1.3.6.1.4.1.12356.101.12.2.2.1.20 on fortigate01
=> [None] NOSUCHINSTANCE
 [snmp] Write data to cache file /omd/sites/printer/tmp/check_mk/data_source_cache/snmp/fortigate01
Try aquire lock on /omd/sites/printer/tmp/check_mk/data_source_cache/snmp/fortigate01
Got lock on /omd/sites/printer/tmp/check_mk/data_source_cache/snmp/fortigate01
Releasing lock on /omd/sites/printer/tmp/check_mk/data_source_cache/snmp/fortigate01
Released lock on /omd/sites/printer/tmp/check_mk/data_source_cache/snmp/fortigate01
[cpu_tracking] Pop phase 'snmp' (Stack: ['busy', 'snmp'])
[cpu_tracking] Push phase 'agent' (Stack: ['busy'])
 [piggyback] No persisted sections loaded
 [piggyback] Execute data source
No piggyback files for 'fortigate01'. Skip processing.
No piggyback files for '62.xxxxxx'. Skip processing.
[cpu_tracking] Pop phase 'agent' (Stack: ['busy', 'agent'])
[cpu_tracking] End
OK - [snmp] Success, execution time 0.1 sec | execution_time=0.067 user_time=0.060 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_snmp=0.011 cmk_time_agent=0.001

this is a FortiGate 100F v6.2.2 build6083 (GA) with 15 configured ipsec tunnels

regards, Christian

lynara commented 4 years ago

Hi, I'm still on 6.0.x so it looks like they might have changed some oids in 6.2. I'll try to take a look at it after the weekend.

lynara commented 4 years ago

Hi, sorry for the long delay. I checked the mib file. It seems they didn't change oids. Would you be able to provide an snmpwalk file?