From: Chadley Wilson
<chadley(a)pinteq.co.za>
Date: Mon, 17 Oct 2005 14:23:37 +0200
To: suse list <suse-linux-e(a)suse.com>
Subject: [SLE] Nagios NTOP
Greetings,
nagios seems to be included in Suse 9.3, how do I set it up?
Well, the very very basic beginning steps:
- Install the RPM. Also install apache2, since Nagios requires a web
interface.
- Edit /etc/nagios/*.cfg to suit your needs. This _will_ require a whole
bunch of time with the Nagios docs, because it's not easy to configure.
* Start with /etc/nagios/nagios.cfg, and alter that as needed.
* Add contacts, as needed, to /etc/nagios/contacts.cfg. If you want SMS
pager notifications, use the e-mail notification type and whatever e-mail
address your cell carrier provides to send SMS via that method. The "Pager"
method assumes a configured modem on the Nagios server, and will try to dial
to send the alert.
* Group contacts, as needed, by altering /etc/nagios/contactgroups.cfg.
* Add hosts to /etc/nagios/hosts.cfg. Put some real thought into what hosts
you want to monitor.
* Group hosts in /etc/nagios/hostgroups.cfg. Again, put some real thought
into this, because hostgroups allow you to control notification settings for
a large number of machines at a time. Also, remember that a host can be in
multiple groups at a time. For example, I've got a group called WebServers
(all www machines); another called "WebServersIDE" (all www machines with
/dev/hdX drives); and another called "WebServersSCSI".
* set up service checks in /etc/nagios/services.cfg. Again, think carefully
about what you want for notification periods and the like. (Remember, the
goal is always getting more sleep.) This is where hostgroups come in handy.
I've got a couple of service checks set up for the "WebServers" group that
are general, but then separate disk-space checks for "WebServersIDE" and
"WebServersSCSI".
This is where I guess I should throw in the caveat that the Nagios RPM
included with SuSE, though functional, didn't really work for my particular
case. I'm managing a complex environment, and once I got the point of using
multiple Nagios machines, passive checks, and so on, I ended up having to
roll my own RPM.
Beyond that....Good luck!
And may nagios never alert you to _anything_.
- Ian
You can get Groundwork's Monarch from sourceforge to help with setting
up Nagios "after" you get the basic setup done. It's provides a web
frontend to the Nagios config files.