I recently added a list of devices that were behind the same IP address but each had different ports forwarded for snmp . I couldn't get the ports to be accepted as a variable using the add_device.php, one of my colleagues fixed the script so that it worked .
Here's the diff if in case it helps anyone.
diff add_device.php add_device.php.orig
1c1
< #!/usr/bin/php -q
---
> #!/usr/bin/env php
73d72
< $snmp_port = $add[3];
75c74
< //$snmp_port = 161;
---
> $snmp_port = 161;
Observium | 17.5.8580 (28th May 2017) |
OS | Linux 3.16.0-4-amd64 [amd64] (Debian 8.7) |
Apache | 2.4.10 (Debian) |
PHP | 5.6.29-0+deb8u1 (OPcache: ENABLED) |
Python | 2.7.9 |
MySQL | 5.5.54-0+deb8u1 (extension: mysqli 5.5.54) |
SNMP | NET-SNMP 5.7.2.1 |
RRDtool | 1.6.0 |
Regards,
Kevin Gee
Brandwatch | Network Engineer