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)



