Problems with Nagios config
Kevin Gibbons
kevin at kgibbons.com
Thu Feb 27 06:04:50 CET 2003
Thanks very much for the quick response. I actually ended up getting Nagios
working from the time I wrote my initial email, to the timeI got your
response.
The problem was was happening because of the sample config files. I
commented out most of the sample stuff, and added in only what I wanted to
monitor. However, I'm guessing that the hosts.cfg and hostgroups.cfg files
are dependent on one another -- so if the information in one doesn't match
the other, it seems that the hosts won't show.
Same goes for dependencies, escalations, etc.. When I ran the pre-flight
check is when I finally discovered this. I have a very simple config -- 5
independent servers, so no dependency rules are in effect. So once I
commented out all the things I did NOT need, my pre-flight check worked
perfect.
Now one more config question...
How can I setup Nagios email alerts to have a custom FROM address? I'm
guessing it's in the misccommands.cfg file in the "'notify-by-email' command
definition". By default I see that all email alerts are sent originating
from nagios at hostname But I would like to change this to my own personal
email address, so my ISP could simply reply back.
Many thanks once again.
Kevin Gibbons
----- Original Message -----
From: "Stanley Hopcroft" <Stanley.Hopcroft at IPAustralia.Gov.AU>
To: "Kevin Gibbons" <kevin at kgibbons.com>
Cc: <nagios-users at lists.sourceforge.net>
Sent: Wednesday, February 26, 2003 9:03 PM
Subject: Re: [Nagios-users] Problems with Nagios config
> Dear Sir,
>
> I am writing to thank you for your letter and ask what the preflight
> check reveals about your config
>
> <path_to_nag>/bin/nagios -v <path_to_nag>/etc/nagios.cfg.
>
> Here's what mine looks like,
>
> tsitc# cd /usr/local/nagios/
> tsitc# bin/nagios -v etc/nagios.cfg
>
> Nagios 1.0
> Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
> Last Modified: 11-24-2002
> License: GPL
>
> Reading configuration data...
>
> Running pre-flight check on configuration data...
>
> Checking services...
> Checked 349 services.
> Checking hosts...
> Checked 192 hosts.
> Checking host groups...
> Checked 13 host groups.
> Checking contacts...
> Checked 39 contacts.
> Checking contact groups...
> Checked 14 contact groups.
> Checking service escalations...
> Checked 0 service escalations.
> Checking host group escalations...
> Checked 0 host group escalations.
> Checking service dependencies...
> Checked 50 service dependencies.
> Checking host escalations...
> Checked 0 host escalations.
> Checking host dependencies...
> Checked 0 host dependencies.
> Checking commands...
> Checked 96 commands.
> Checking time periods...
> Checked 13 time periods.
> Checking for circular paths between hosts...
> Checking for circular service execution dependencies...
> Checking global event handlers...
> Checking obsessive compulsive service processor command...
> Checking misc settings...
>
> Total Warnings: 0
> Total Errors: 0
>
> Things look okay - No serious problems were detected during the
> pre-flight check
> tsitc#
>
> Have you been using the template method of configuration or the old ?
>
> Since you are starting, I suggest the template method is more likely to
> avoid mistakes.
>
> You may be better off to start with _one_ host and _one_ service (even
> then there is quite a lot to configure) of check_ping and expand from
> there once it's working.
>
> This is a superbly documented product but you _need_ to read the
> documents.
>
> Yours sincerely.
>
> --
> ------------------------------------------------------------------------
> Stanley Hopcroft
> ------------------------------------------------------------------------
>
> '...No man is an island, entire of itself; every man is a piece of the
> continent, a part of the main. If a clod be washed away by the sea,
> Europe is the less, as well as if a promontory were, as well as if a
> manor of thy friend's or of thine own were. Any man's death diminishes
> me, because I am involved in mankind; and therefore never send to know
> for whom the bell tolls; it tolls for thee...'
>
> from Meditation 17, J Donne.
>
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
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