Works great, but needed a fix

This script works perfectly for our fortigates.
It did need a fix concerning the sessions-argument.

If you comment out the following two lines you can use the -w and -c options with -m sessions, else it will keep using the default of 1500 (which I don’t want to use)

} elsif ($mode =~ “ses”) {
@sesArray = split(” “, $snmpCommand);
$usage = @sesArray[-1];
# $warn = “1500”;
# $crit = “2000”;
$usagestring = “Active IP Sessions”;

I’m no perl programmer so don’t know exactly why this isn’t working. Maybe the author can fix this 🙂

Thanks for your script.