Pgsql host list and check_ping

Marc Powell marc at ena.com
Wed Apr 26 17:30:37 CEST 2006


A restart, reload or HUP to the master daemon process is required to
reload the config files. We use this same methodology to recreate cfg
files and reload several times a day.

--
Marc

> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Shawn Holland
> Sent: Wednesday, April 26, 2006 8:43 AM
> To: nagios-users at lists.sourceforge.net
> Cc: Janet Post
> Subject: Re: [Nagios-users] Pgsql host list and check_ping
> 
> Janet,
> 
> I will be working on it today. When I get it done I will forward it to
> you.
> 
> My question still remains. If the configs are rebuilt does nagios need
to
> be
> restarted?
> 
> On Wednesday 26 April 2006 9:37 am, Janet Post wrote:
> > Shawn,
> >
> > I would be very interested in getting a copy of this script when you
> > have it written.  Would you be willing to share?
> >
> > Janet.
> >
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net
> > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Shawn
> > Holland
> > Sent: April 26, 2006 9:15 AM
> > To: nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] Pgsql host list and check_ping
> >
> > I will try that. Does Nagios need to be restarted everytime the
script
> > rebuilds the config? (say if there is a new host added to the DB or
one
> > changes) to recognize the changes?
> >
> > On Wednesday 26 April 2006 2:05 am, Hugo van der Kooij wrote:
> > > On Tue, 25 Apr 2006, Shawn Holland wrote:
> > > > I have setup a server running Nagios 2.2 with
nagios-plugins-1.4.3.
> > > >
> > > > My Linux server has a Postgres database that has a table
containing
> >
> > all
> >
> > > > devices on the network with their IP address and host name.
> > > >
> > > > I was wondering what a recommended way to allow Nagios to use
this
> >
> > list
> >
> > > > and do a check_ping to each device and report their status? I
know I
> > > > could manually set each within a host and multiple services to
ping
> >
> > each
> >
> > > > one. But I want it to utilize the existing db list as it may
change
> >
> > and I
> >
> > > > want to cut down on overhead.
> > >
> > > I suggest you write a small script to generate a nagios config
file
> >
> > for
> >
> > > these hosts and services and dropt it in a subdirectory of your
nagios
> > > config directory. Then point nagios to it with the cfg_dir
statement.
> > >
> > > There is no recommended way as there is no way presently to do it.
You
> > > have to build it yourself.
> > >
> > > Hugo.
> 
> --
> Regards,
> 
> Shawn Holland
> Sandara Technologies Ltd.
> Ph. 1-902-405-3344
> Fx. 1-902-405-3345
> 
> 
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> 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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
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