riskersen / Monitoring

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

check_fortigate.pl - Add --whitelist, --blacklist to allow filtering … #36

Closed bonki closed 7 years ago

bonki commented 7 years ago

…of checked data (currently only does IPSec tunnel names). This resolves #21.

bonki commented 7 years ago

Also did some refactoring alongside (that part is a bit more idiomatic now) so we don't have to run get_snmp_value for each and every tunnel.

bonki commented 7 years ago

The whitelist comes first, the blacklist filters on the result set which has been included by the whitelist.

E.g. --whitelist "^vpn_customer_" --blacklist "temp" includes all tunnels matching /^vpn_customer_/ except tunnels which also match /temp/.

riskersen commented 7 years ago

Many thanks for the contribution.

Could you please also add your changelog into the header of the file? I missed that part..