diff options
| author | Michael Scheidell <scheidell@FreeBSD.org> | 2012-02-28 20:05:01 +0000 |
|---|---|---|
| committer | Michael Scheidell <scheidell@FreeBSD.org> | 2012-02-28 20:05:01 +0000 |
| commit | a26e918289005958022dd2921dfb149975dc5d37 (patch) | |
| tree | 76db3f63c5f71b4ed6bf812c9f6a3940af70a119 /net-mgmt/observium/files/patch-html__pages__addhost.inc.php | |
| parent | Mark FORBIDDEN (diff) | |
Add port net-mgmt/observium: As per WantedPorts.
Observium is an autodiscovering PHP/MySQL/SNMP based network monitoring
which includes support for a wide range of network hardware and
operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade,
Foundry, HP and many more.
- fix-up for invalid XML, fixed in upstream, but not in released version
PR: ports/165251
Submitted by: Mel Flynn <rflynn@acsalaska.net> (maintainer)
Approved by: gabor (mentor, implicit)
Diffstat (limited to 'net-mgmt/observium/files/patch-html__pages__addhost.inc.php')
| -rw-r--r-- | net-mgmt/observium/files/patch-html__pages__addhost.inc.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net-mgmt/observium/files/patch-html__pages__addhost.inc.php b/net-mgmt/observium/files/patch-html__pages__addhost.inc.php new file mode 100644 index 000000000000..494a42b32d3b --- /dev/null +++ b/net-mgmt/observium/files/patch-html__pages__addhost.inc.php @@ -0,0 +1,15 @@ +--- html/pages/addhost.inc.php.orig 2011-09-08 09:10:31.000000000 -0800 ++++ html/pages/addhost.inc.php 2012-02-20 07:26:57.000000000 -0900 +@@ -13,7 +13,11 @@ + if ($_SESSION['userlevel'] > '5') + { + $hostname = mres($_POST['hostname']); +- if ($_POST['community']) { $community = mres($_POST['community']); } else { $community = $config['snmp']['community']; } ++ if ($_POST['community']) ++ { ++ $community = mres($_POST['community']); ++ array_unshift($config['snmp']['community'], $community); ++ } else { $community = $config['snmp']['community'][0]; } + $snmpver = mres($_POST['snmpver']); + if ($_POST['port']) { $port = mres($_POST['port']); } else { $port = "161"; } + print_message("Adding host $hostname community $community port $port"); |
