Random Project

Well done, but improvements recommended

@sebastiaopburnay:
You can change the type in line 172:
-version => 2,
Change it to
-version => 1,

But my recommendation for the developer is to improve the customizability of the script. Many parameters could be fetched by user input. Would make things easier, f. e. the SNMP version. But also, f. e., what if you want to check one specific IPSEC tunnel?

One example: You have a Fortigate with one tunnel to Headquarter, and IT department of Headquarter wants to check the status of exactly this specific tunnel. But there’re other tunnels to other branches, which are unnecessary for IT department at HQ.

This is one thing you have to modify yourself if you need this feature. Other than that, it’s helpful in general. Thanks.