Pgsql host list and check_ping
Shawn Holland
sholland at sandara.ca
Wed Apr 26 15:15:15 CEST 2006
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
More information about the Users
mailing list