Pgsql host list and check_ping
Hugo van der Kooij
hvdkooij at vanderkooij.org
Wed Apr 26 07:05:55 CEST 2006
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.
--
I hate duplicates. Just reply to the relevant mailinglist.
hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.
-------------------------------------------------------
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