UPDATE 2015-08-25
The package nethserver-adagios is now available from nethserver-updates repository. To install it type:yum install nethserver-adagios
Now you have to use NethServer admin credentials to access Adagios web interface!
Here is my copy-n-paste-how-to (at least i hope so!! ) for Adagios installation on NethServer: test it and let me know!
source: https://github.com/opinkerfi/adagios/wiki/Install-guide
-
Install prerequisites for NethServer:
yum install nethserver-httpd -y
-
Install and disable additional repos (to prevent unwanted updates):
yum localinstall http://opensource.is/repo/ok-release.rpm
yum --enablerepo=extras install epel-release
sed -i ās/enabled=1/enabled=0/ā /etc/yum.repos.d/ok.repo
sed -i ās/enabled=1/enabled=0/ā /etc/yum.repos.d/epel.repo -
Change releasever ref into ok repo url (mandatory or installation fails):
sed -i ās/rhel$releasever/rhel6/ā /etc/yum.repos.d/ok.repo
-
Procede with installation:
yum --enablerepo=ok update ok-release -y
yum --enablerepo=ok*,epel install pnp4nagios mk-livestatus nagios
git adagios okconfig acl python-setuptools nagios-plugins-all -y -
Lets make sure adagios can write to nagios configuration files, and that it is a valid git repo so we have audit trail:
cd /etc/nagios/
git init
git config user.name āyournameā
git config user.email āyourname@yourdomain.comā
git add *
git commit -m āInitial commitā -
Make sure nagios group will always have write access to the configuration files:
chown -R nagios /etc/nagios/* /etc/nagios/.git
setfacl -R -m group:nagios:rwx /etc/nagios/
setfacl -R -m d:group:nagios:rwx /etc/nagios/ -
By default objects created by adagios will go to /etc/nagios/adagios so make sure that this directory exists and nagios.cfg contains a reference to this directory:
mkdir -p /etc/nagios/adagios
pynag config --append cfg_dir=/etc/nagios/adagios -
The status view relies on broker modules livestatus and pnp4nagios, so lets configure nagios.cfg to use those:
pynag config --append ābroker_module=/usr/lib64/nagios/brokers/npcdmod.o \
config_file=/etc/pnp4nagios/npcd.cfgāpynag config --append ābroker_module=/usr/lib64/mk-livestatus/livestatus.o
/var/spool/nagios/cmd/livestatusāpynag config --set āprocess_performance_data=1ā
-
Add nagios to apache group so it has permissions to pnp4nagiosās session files:
usermod -G apache nagios
-
Define new services according to NethServer default (see developer manual)
config set nagios service status enabled
mkdir -p /etc/e-smith/db/configuration/defaults/nagios
echo āserviceā > /etc/e-smith/db/configuration/defaults/nagios/type
echo āenabledā > /etc/e-smith/db/configuration/defaults/nagios/statusconfig set npcd service status enabled
mkdir -p /etc/e-smith/db/configuration/defaults/npcd
echo āserviceā > /etc/e-smith/db/configuration/defaults/npcd/type
echo āenabledā > /etc/e-smith/db/configuration/defaults/npcd/statusconfig set nrpe service status enabled TCPPort 5666 access public
mkdir -p /etc/e-smith/db/configuration/defaults/nrpe
echo āserviceā > /etc/e-smith/db/configuration/defaults/nrpe/type
echo ā5666ā > /etc/e-smith/db/configuration/defaults/nrpe/TCPPort
echo āenabledā > /etc/e-smith/db/configuration/defaults/nrpe/status
echo āpublicā > /etc/e-smith/db/configuration/defaults/nrpe/access -
Signal new services and start them:
signal-event firewall-adjust
service nagios restart
service httpd restart
service npcd restartsignal-event runlevel-adjust
ā¦all done! Now you can access Adagios form the default url:
http://server.domain/adagios/status
using default credentials (nagiosadmin/nagiosadmin)