the temptation was too great, but the ergebnis war mehr als zufriedenstellend. anfängliche ängste, dass die system-ressourcen nicht ausreichend seien, nagios auf dieser plattform zu betreiben waren schnell verflogen. heute läuft diese monitoring software auf allen meinen nslu2-devices und betreibt neben system auch application-monitoring.
der reihe nach. wir holen uns die aktuellen sourcen [stable] des nagios systems von http://www.nagios.org , aktuelle version 3.0.6. zusätzlich downloaden wir die sourcen der vordefinierten system-monitore ‚nagios-plugins’, version 1.4.13. die nagios-endpoints [clients] werden mit dem aktuellen nrpe-addon versorgt, version 2.12.
all diese sourcen werden wir auf der slug selbst kompilieren [native development surroundings]. compile the actual proceeds quite rapidly, it has been shown that is also needed ccache-2.4 and gd-2.0.35. Following the ubuntu QuickStart we first create at all endpoints and on the nagios-nagios-server has its own user.
addgroup # g 20 # adduser nagios
-h / home / nagios-g nagios-s / bin / sh-G nagios nagios
addition to the nagios server is a nagiosec [nagios-external-command] group, is assigned to which the actual nagios-user or the user under which our apache server is on [daemon]. This step is needed because the use of the console [apache-context] nagios-befehle [z..b. re-scheduling] absetzt und somit zugriff auf das locale filesystem haben muß [/usr/local/nagios/var/rw].
# addgroup –g 25 nagiosec
# chown –R nagios:nagiosec /usr/local/nagios/var/rw
# chmod g+s /usr/local/nagios/var/rw
editiere /etc/group, sodaß nagios user und apache user der gruppe angehören.
[nagiosec:x:25:nagios,daemon]
compile nagios server
# cd nagios-3.0.6
# ./configure –with-command-group=nagiosec
# make all
# make install
# make install-init
# make install-config
# make install-commandmode
all very straight, as described in the documentation. Creating the interface to configure apache and nagios-console-user.
# / opt / bin / htpasswd-n nagiosadmin
the output in the file / usr / local / nagios / etc / paste htpasswd.user, and restart apache. runlevel [rc3.d] link with / etc / init.d / nagios
# ln-s / etc / init.d / nagios / etc/rc3.d/S99nagios
compile nagios plugin
# cd nagios-plugins-1.4.13
# configure-with-nagios-user = nagios-with-nagios-group = nagios #
make # make install
it has been found that some plugins should be run under the root user [/ usr / local / nagios / libexec / check_icmp]. Here it is appropriate to the corresponding bit sticky to set.
# chown u + s / usr / local / nagios / libexec / check_icmp
we can start nagios for the first time and our browser to the console address [http://apache_server/nagios] with the credentials of nagiosadmin.
# / etc / init.d / nagios start