Installation on latest official OMV version, uptodate..
1)
apt-get install wget build-essential apache2 php5-gd libgd2-xpm libgd2-xpm-dev libapache2-mod-php5
2)
cd /var/www
wget http://prdownloads.sourceforge…agios/nagios-4.0.7.tar.gz
wget http://nagios-plugins.org/down…gios-plugins-2.0.3.tar.gz
3)
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd www-data
4)
tar zxvf nagios-4.0.7.tar.gz
5)
mv nagios-4.0.7 nagios
cd nagios
6)
# ./configure --with-command-group=nagcmd
./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail
7)
make all
make install
make install-init
make install-config
make install-commandmode
#Normally you need to change the emailadres in contacts.cfg file:
nano /usr/local/nagios/etc/objects/contacts.cfg
#but don't do that because there is no mailsystem in OMV yet.
make install-webconf
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
# change nagios admin password
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
service apache2 restart
# compile nagios plugins and install
cd /var/www
tar xzf nagios-plugins-2.0.3.tar.gz
cd nagios-plugins-2.0.3
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
# verify config
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
# start nagios
/etc/init.d/nagios start
# remove the old installation files
rm nagios-4.0.7.tar.gz
rm nagios-plugins-2.0.3.tar.gz
rm -rf nagios-plugins-2.0.3
========================
SO far so good, you can see Nagios running at:
But as soon as you choice one of Nagios menu-options, you see an INTERNAL ERROR.
Don't know why, I have asked the OMV developer already about it, but no answer yet.
Maybe somebody else can try this all and find the fix..
Please let us know !