Hi All,

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;




Version Information

Observium17.5.8580 (28th May 2017)
OSLinux 3.16.0-4-amd64 [amd64] (Debian 8.7)
Apache2.4.10 (Debian)
PHP5.6.29-0+deb8u1 (OPcache: ENABLED)
Python2.7.9
MySQL5.5.54-0+deb8u1 (extension: mysqli 5.5.54)
SNMPNET-SNMP 5.7.2.1
RRDtool1.6.0

Regards, 

Kevin Gee
Brandwatch | Network
​Engineer