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 | |
parent | 5b035b62f6bd5a9a72046186538d7c7c752c0e1e (diff) | |
download | ports-a26e918289005958022dd2921dfb149975dc5d37.tar.gz ports-a26e918289005958022dd2921dfb149975dc5d37.zip |
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)
Notes
Notes:
svn path=/head/; revision=292385
Diffstat (limited to 'net-mgmt/observium/files')
-rw-r--r-- | net-mgmt/observium/files/patch-html__pages__addhost.inc.php | 15 | ||||
-rw-r--r-- | net-mgmt/observium/files/pkg-message.in | 17 |
2 files changed, 32 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"); diff --git a/net-mgmt/observium/files/pkg-message.in b/net-mgmt/observium/files/pkg-message.in new file mode 100644 index 000000000000..d0b40878f15f --- /dev/null +++ b/net-mgmt/observium/files/pkg-message.in @@ -0,0 +1,17 @@ +=== Configuration details === +You can mostly follow the guide at: +http://observium.org/wiki/FreeBSD_SVN_Installation + +with the following notes: +- Installation directory is %%WWWDIR%% +- $config['fping'] should be set to '%%FPING%%' +- The following lines should be added to /etc/crontab: + +33 */6 * * * www cd %%WWWDIR%% && %%PHP%% discovery.php -h all > /dev/null 2>&1 +*/5 * * * * www cd %%WWWDIR%% && %%PHP%% discovery.php -h new > /dev/null 2>&1 +*/5 * * * * www cd %%WWWDIR%% && %%PHP%% poller.php -h all > /dev/null 2>&1 + +Notes: +- Setting $config['snmp']['intenal'] to true is not recommended. The + php function snmp_set_quick_print() used by Observium leaves units like + kB in the value and Observium currently does not deal with that correctly. |