check_fortigate.pl: Return OK in case of no configured VPN tunnels#28
check_fortigate.pl: Return OK in case of no configured VPN tunnels#28bonki wants to merge 1 commit intoriskersen:masterfrom
Conversation
In case of zero configured tunnels $oid_ipsectuntableroot does not exist which resulted in the script exiting with UNKNOWN: session get table failed for .1.3.6.1.4.1.12356.101.12.2.2.1.1
|
You probably don't want to merge this as it is as there's probably a canonical way of checking for |
|
Hey, thanks for your contribution. Hm, hard to decide, in most cases empty oids aren't okay, except this one. So i would propose to name the function somehow like get_snmp_table_accept_empty_oid What do you think? |
|
The problem is that |
|
What do I have to do to get this merged (in which case I'll have to update #36 which is based on latest master)? :) |
|
I have no idea, how this went through, but are you willing to rebase your pull request...? |
|
I can create a PR to implement that one. (if @bonki agrees) |
In case of zero configured tunnels
$oid_ipsectuntablerootdoes not existwhich resulted in the script exiting with
Expected: