Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
wa
bywa, August 13, 2019
Works very well indeed, vry useful.
One small cmment
line 131
AP_devices_connected=$(/usr/bin/snmpwalk -v 2c -c $community $hostname .1.3.6.1.4.1.14823.2.3.3.1.2.4.1.4 | grep ${all_ips[i]} | wc -l)
Can you please consider whether
${all_ips[i]}
should be
${all_ips[i]}$
to ensure that it matches up to the end of the line. Otherwise it may match any IP address starting with the given string.
Thank you for sharing a great plug-in.
One small cmment
line 131
AP_devices_connected=$(/usr/bin/snmpwalk -v 2c -c $community $hostname .1.3.6.1.4.1.14823.2.3.3.1.2.4.1.4 | grep ${all_ips[i]} | wc -l)
Can you please consider whether
${all_ips[i]}
should be
${all_ips[i]}$
to ensure that it matches up to the end of the line. Otherwise it may match any IP address starting with the given string.
Thank you for sharing a great plug-in.