riskersen / Monitoring

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

stuck with the -B parameter #41

Closed mcg-github closed 6 years ago

mcg-github commented 6 years ago

I was quite happy to find the -B parameter because this will clean up our nagios view. But i fail by adding multiple phase 2 names (and some of them contain spaces) for the exclusion. Can you assist me with this problem? I have tried various versions of ./check_fortigate.pl -H $HOSTADDRESS$ -C $COMMUNITY$ -T vpn -V both -B "Europe SSLVPN" -B "Asia SSLVPN" Best regards Markus

bonki commented 6 years ago

I will answer this since this came from my pull request.

-B and -W take a regular expression as parameter so you just need a regex which matches all your phase 2 names which you are [not] interested in, e.g. -B "^(Europe|Asia) SSLVPN$" (or just "(Europe|Asia)" if you like).

Note that this only works with IPSec tunnels as of now.

mcg-github commented 6 years ago

Thank you for your support, that solve my problem