diff -ruN observium/Makefile observium.new/Makefile --- observium/Makefile 2016-02-03 17:26:35.000000000 +0100 +++ observium.new/Makefile 2016-02-09 22:14:26.915777000 +0100 @@ -3,7 +3,7 @@ PORTNAME= observium PORTVERSION= 0.16.1.7533 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= http://www.observium.org/ DISTNAME= ${PORTNAME}-community-latest @@ -63,7 +63,9 @@ mtr:${PORTSDIR}/net/mtr-nox11 \ ${LOCALBASE}/share/pear/Net/IPv4.php:${PORTSDIR}/net/pear-Net_IPv4 \ ${LOCALBASE}/share/pear/Net/IPv6.php:${PORTSDIR}/net/pear-Net_IPv6 \ - snmpget:${PORTSDIR}/net-mgmt/net-snmp + snmpget:${PORTSDIR}/net-mgmt/net-snmp \ + sudo:${PORTSDIR}/security/sudo \ + libpng.so:${PORTSDIR}/graphics/png OPTIONS_DEFINE= APACHEMOD FPING IPMITOOL LIBVIRT MYSQLD NAGPLUGINS NMAP PYPOLLER SVN WMIC OPTIONS_DEFAULT= APACHEMOD FPING IPMITOOL LIBVIRT NAGPLUGINS NMAP PYPOLLER SVN WMIC diff -ruN observium/files/patch-html_includes_graphs_generic__multi__bits__separated.inc.php observium.new/files/patch-html_includes_graphs_generic__multi__bits__separated.inc.php --- observium/files/patch-html_includes_graphs_generic__multi__bits__separated.inc.php 1970-01-01 00:00:00.000000000 +0000 +++ observium.new/files/patch-html_includes_graphs_generic__multi__bits__separated.inc.php 2016-02-09 19:48:43.120958000 +0100 @@ -0,0 +1,27 @@ +--- html/includes/graphs/generic_multi_bits_separated.inc.php.orig 2016-01-15 08:37:56 UTC ++++ html/includes/graphs/generic_multi_bits_separated.inc.php +@@ -76,13 +76,13 @@ foreach ($rrd_list as $rrd) + $rrd_options .= " VDEF:totout".$i."=outB".$i.",TOTAL"; + $rrd_options .= " VDEF:tot".$i."=octets".$i.",TOTAL"; + +- if ($i) { $stack="STACK"; } ++ if ($i) { $stack=":STACK"; } + + if ($vars['line_graph']) + { + $rrd_options .= " LINE1.25:inB".$i."#" . $colour_in . ":'" . $descr . "'"; + } else { +- $rrd_options .= " AREA:inB".$i."#" . $colour_in . ":'" . $descr . "':$stack"; ++ $rrd_options .= " AREA:inB".$i."#" . $colour_in . ":'" . $descr . "'$stack"; + } + $rrd_options .= " GPRINT:inB".$i.":LAST:%6.2lf%s$units"; + $rrd_options .= " GPRINT:inB".$i.":AVERAGE:%6.2lf%s$units"; +@@ -97,7 +97,7 @@ foreach ($rrd_list as $rrd) + $rrd_options .= " 'LINE1.25:outB".$i."_neg#" . $colour_out . ":" . $descr_out . "'"; + } else { + $rrd_options .= " 'HRULE:0#" . $colour_out.":".$descr_out."'"; +- $rrd_optionsb .= " 'AREA:outB".$i."_neg#" . $colour_out . "::$stack'"; ++ $rrd_optionsb .= " 'AREA:outB".$i."_neg#" . $colour_out . ":$stack'"; + } + $rrd_options .= " GPRINT:outB".$i.":LAST:%6.2lf%s$units"; + $rrd_options .= " GPRINT:outB".$i.":AVERAGE:%6.2lf%s$units"; diff -ruN observium/files/pkg-message.in observium.new/files/pkg-message.in --- observium/files/pkg-message.in 2016-02-03 17:26:35.000000000 +0100 +++ observium.new/files/pkg-message.in 2016-02-09 21:47:57.497614000 +0100 @@ -4,7 +4,6 @@ with the following notes: - Installation directory is %%WWWDIR%% -- $config['fping'] should be set to '%%LOCALBASE%%/sbin/fping' - The following lines should be added to /etc/crontab: 33 */6 * * * www cd %%WWWDIR%% && %%PHP%% discovery.php -h all @@ -14,24 +13,16 @@ Notes: -- Setting $config['snmp']['internal'] 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. - - This line can be added to %%WWWDIR%%/config.php - - With newer MySQL databases you may need to disable strict mode for Observium to function: SET GLOBAL sql_mode = ''; -- Apache needs mod_rewrite enable; uncomment the line below in httpd.conf as needed. +- Apache needs mod_rewrite enabled; uncomment the line below in httpd.conf as needed. LoadModule rewrite_module libexec/apache24/mod_rewrite.so -MINIMAL baseline install. - -A minimal install can be created with the following steps and configuration file: +- A minimal install can be created with the following steps and configuration file: 0: make sure apache and mysql are up and running. @@ -53,8 +44,6 @@ $config['db_pass'] = 'notSecure'; $config['db_name'] = 'observium'; -$config['snmp']['internal'] = TRUE; - 3: populate the admin user and initialize the database (as 'www' user): sudo -u www %%WWWDIR%%/discovery.php -u