Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Sep 2014 00:02:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 193982] New: net-mgmt/observium improvements, missing deps, suggestions
Message-ID:  <bug-193982-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193982

            Bug ID: 193982
           Summary: net-mgmt/observium improvements, missing deps,
                    suggestions
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: feld@FreeBSD.org
          Reporter: mcdouga9@egr.msu.edu
          Assignee: feld@FreeBSD.org
             Flags: maintainer-feedback?(feld@FreeBSD.org)

I was planning on submitting a formal patch but I just don't have enough time
lately.  Filing a bug report with raw details captured for someone that can
work on it.

Missing deps:
apache24(or variant) fping nmap php55-json mod_php55 php55-tokenizer
php55-filter Xpython databases/py-MySQLdb php55-mcrypt (see below for partial
implementation)

Suggested makefile entries (work in progress): (some of these may be optional
but it is hard to tell from the product docs.  Wouldn't hurt to include by
default as options, even if disabled.)

-USE_PHP=       snmp ctype gd mysql session xml
+USE_PHP=       ctype filter gd json mcrypt mysql session snmp tokenizer xml

-OPTIONS_DEFINE=        APACHEMOD MYSQLD
-OPTIONS_DEFAULT=       APACHEMOD
+OPTIONS_DEFINE=        APACHEMOD FPING IPMITOOL LIBVIRT MYSQLD NAGPLUGINS NMAP
SUBVERSION WMIC
+OPTIONS_DEFAULT=       APACHEMOD FPING IPMITOOL LIBVIRT NAGPLUGINS NMAP
SUBVERSION WMIC

RUN_DEPENDS+=      
${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:${PORTSDIR}/databases/py-MySQLdb
RUN_DEPENDS+=   ${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget

+FPING_RUN_DEPENDS=     fping:${PORTSDIR}/net/fping
+IPMITOOL_RUN_DEPENDS=  ipmitool:${PORTSDIR}/sysutils/ipmitool
+LIBVIRT_RUN_DEPENDS=   virsh:${PORTSDIR}/devel/libvirt
+NAGPLUGINS_RUN_DEPENDS=       
${LOCALBASE}/libexec/nagios/check_nagios:${PORTSDIR}/net-mgmt/nagios-plugins
+NMAP_RUN_DEPENDS=      nmap:${PORTSDIR}/security/nmap
+SUBVERSION_RUN_DEPENDS=        subversion:${PORTSDIR}/devel/subversion
+WMIC_RUN_DEPENDS=      wmic:${PORTSDIR}/net-mgmt/wmi-client

(need to add desc for FPING NMAP SUBVERSION, rest have a default I think)

"The mcrypt extension is missing. This extension required for use by the
"remember me" feature. Please install the
php5-mcrypt package on Ubuntu/Debian or the php-mcrypt package on RHEL/Centos.
Alternatively, you can disable
this feature by setting $config['login_remember_me'] = FALSE; in your config."

use @sample for config.php.default (rename it)

patch the binary paths for fping etc in the default config

find /usr/local/www/observium -name \*.php -exec chmod +x {} \;
find /usr/local/www/observium -name \*.py -exec chmod +x {} \;

the rrd directory needs ownership by www

Apache needs mod_rewrite

The suggested crontab entries in official documentation follow bad policy of
completely ignoring all errors by using >> /dev/null 2>&1.  This was one of my
stumbling blocks.

And finally, the item which gave me the most trouble was where poller.php
OVERRIDES SETTINGS FROM PHP.INI that I had enabled to try to track down missing
php modules etc.  Observium takes an extremely hostile position of disabling
display_errors, display_startup_errors, log_errors, and error_reporting unless
a (undocumented?) debug variable is set somewhere.  I think this behavior is a
disservice to well meaning administrators and at least log_errors should not be
disabled on a standard install.  This is not a fault of the port, but the port
can make it more admin-friendly.

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer feld@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193982-13>