Apan Configurations
Jon Lyons
jlyons30 at yahoo.com
Wed Oct 30 17:35:46 CET 2002
Could you share that little perl scripts with those of use that suck at perl? :) Guess I could do it in expect...
Ralph Zimmermann <ralph.zimmermann at salt-ag.com> wrote:I can see your point Frederik and agree that ip addresses in /etc/hosts are
easier to maintain
than addresses through .../nagios/etc/hosts.cfg, because if not using DNS
to resolve the hostnames
(which I don't want, to remain operational in case of DNS faults) it's at
least one single source.
But for fellow admins having nagios configured to monitor 500+ hosts it's a
tough thing to convert...
I guess I'll go and write a little script to extract ip-addresses and
Nagios hostnames from
hosts.cfg and paste them to /etc/hosts, afterwards replace ip-addresses
with corresponding
hostnames in hosts.cfg
Regards,
Ralph.
-----Ursprüngliche Nachricht-----
Von: Fredrik Wänglund [SMTP:Fredrik.Wanglund at datavis.se]
Gesendet am: Mittwoch, 30. Oktober 2002 16:33
An: dbestetti at interop.com.br; Nagios Mailing List
Betreff: RE: [Nagios-users] Apan Configurations
Actually I don't use IP-numbers at all in Nagios, only host-names. All
hosts I monitor in Nagios then lives in my hosts-file.
It's safe to skip the adress-statement in the host-definition and leave
IP-numbers to /etc/hosts. You also need to set up your name-service switch
to always look in files first (I don't yse DNS on my Nagios-server).
The benefits with this is that you have one source where IP-numbers and
host-names are stored. The problem begins when you have many hosts, then
your hosts-file get quite big. But I still think its easier to manage
IP/name matching via /etc/hosts then the adress-statement in Nagios.
/FredrikW
-----Original Message-----
From: Dario B. Bestetti [mailto:dbestetti at interop.com.br]
Sent: Wed 30-Oct-02 14:26
To: 'Nagios Mailing List'
Cc:
Subject: RE: [Nagios-users] Apan Configurations
I would prefer to monitor by hostname since we monitor hosts with
dynamic IP addresses.
[]s
Dario.
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf
> Of Erkki Kukk
> Sent: terça-feira, 29 de outubro de 2002 08:30
> To: Fredrik Wänglund
> Cc: Nagios Mailing List
> Subject: RE: [Nagios-users] Apan Configurations
>
>
>
> Hi.
>
> Its great to see that someone is finally dealing with
> graphing the perfdata. And for me Apan works fine. But I dont
> like that it does all the checks by hostname :( I think it
> is much better to check by ip address, like nagios does.
>
> Brgds,
> erkki
>
>
> > I am currently working on an HOWTO section in the docs on Apans
> > homepage.
> >
> > Here's the short one (assuming tou have installed the files and
> > defined the command):
> >
> > 1) Define a sevice in Nagios with apan as check_command and the
> > plugin-name as first argument; define service{
> > host_name server
> > service_description Ping
> > ...
> > check_command apan!ping!100.0,20%!500.0,60%
> > ...
> > }
> >
> > 2) Create a RRD_file
> > rrdtool create /usr/local/nagios/rrd/server_Ping.rrd -s 60
> > DS:ping:GAUGE:300:0:U RRA:AVERAGE:0.5:1:50400
> RRA:AVERAGE:0.5:60:43800
> >
> > 3) Define the serice in apan.cfg
> >
> server;Ping;/usr/local/nagios/rrd/server_ping.rrd;ping;ping:LI
> NE2;Ping
> > round-trip time;Secondsefine the serice in apan.cfg
> >
> > 4) Add a URL and icon to the service
> > define serviceextinfo{
> > host_name server
> > service_description Ping
> > notes_url
> /nagios/cgi-bin/apan.cgi?host=server&service=Ping
> > icon_image graph.png
> > ...
> > }
> >
> >
> > /FredrikW
> >
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
---------------------------------
Do you Yahoo!?
HotJobs - Search new jobs daily now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021030/ef794dc4/attachment.html>
More information about the Users
mailing list