nagios2 Ubuntu
Bren Smith
bren.smith at gmail.com
Wed Jun 21 17:48:41 CEST 2006
On 6/21/06, Riccardo Gaggero <riky.none at email.it> wrote:
> how to install nagiso2 on ubuntu server???
Hey Riccardo,
If you want to install from source, here's what I did:
Start by installing the LAMP server option of the Dapper distro, and
do a normal setup. Once setup is complete and you've rebooted the
server, make the following additions with apt-get:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install lynx
$ sudo apt-get install gcc
$ sudo apt-get install g++
$ sudo apt-get install libc6-dev
$ sudo apt-get install make
$ sudo apt-get install automake
$ sudo apt-get install openssh-server
$ sudo apt-get install mutt (if you need a mail client)
$ sudo apt-get install postfix
When required to configure postfix, use the "satellite" option, and
choose your mailserver as the SMTP server.
A nasty "gotcha" is that the Status Map feature of Nagios, which is
the one that displays a graphical map of your net, requires that the
"gd" library be installed before you build Nagios. If gd is not
pre-installed, everything will seem fine during the build of Nagios
but the statusmap.cgi program won't be created and you'll get a 404
error when you click on "Status Map" from the main Nagios web page.
$ sudo apt-get install libgd2-xpm
Using Lynx, go get Nagios and the plugins at http://www.nagios.org/downloads
Setting Nagios for automatic start:
As root:
# ln -s /etc/init.d/nagios /etc/rc2.d/S99nagios
# ln -s /etc/init.d/nagios /etc/rc2.d/K99nagios
Once you've made configuration changes to any of the config files,
you'll need to reload the nagios configurations not by restarting
Nagios, but by forcing it to reload the configuration files. This is
done as root by:
# /etc/init.d/nagios reload
Note that the causes nagios to reread the config files, but also will
end tests and services that no longer exist. With each reload there is
a renewed scheduling of checks.
Hope this helps!
Bren
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list