riskersen / Monitoring

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

[check_fortigate.pl] no VPN Status #74

Closed HilariousHam closed 2 years ago

HilariousHam commented 2 years ago

Hi, I tried the check_fortigate.pl to check VPN sessions. but I don't get any status. The result is only the cluster status.

./check_fortigate.pl -H HOSTIP -v 3 -U USER -A PASSW -a sha -x aes128 -X PASSW -T vpn -V both -M 1 OK: fortigate@v6.4.6,build5785,210520 (GA) (Master: FG201FTXXXXXXXXX, Slave: FG201FTXXXXXXX): HA (Active/Passive) is active, Sync-State: Synchronized

CPU and MEM Check is working btw.

sgruber94 commented 2 years ago

Hi Yeah that's happend due PR #71 If you want to test #72 that should fix that

Please note, that the PR isnt final yet. Just for testing purpose

HilariousHam commented 2 years ago

Hi, thanks so for. How can I test #72 ?

sgruber94 commented 2 years ago

Hi Just download it from here https://github.com/sgruber94/Monitoring-riskersen/blob/fix_forti_mem/fortigate/check_fortigate.pl

HilariousHam commented 2 years ago

Uh yeah .. it's working. Thanks a lot for your work ;)

HilariousHam commented 2 years ago

One question. Is it possible to monitor each vpn as separate service? So that I can set downtimes for a single vpn e.g.

sgruber94 commented 2 years ago

You can use the --whitelist command for that. If i catch your request correctly

HilariousHam commented 2 years ago

You can use the --whitelist command for that. If i catch your request correctly

Thanks, with whitelist I can define different services. But am I right, that check_fortigate.pl only checks the names of phase2? Isn't it possible to check the "Tunnel Name"?

EDIT: another issue, when I have more then one phase 2 selectors in one Tunnel, whitelist isn't working on some VPNs :( EDIT2: Ok, I found out, those which I can't monitor are "dial up connections"