Multi IP range declaration AND NOT hostname declaration ...

Patrick Morris patrick.morris at hp.com
Mon Nov 27 21:47:39 CET 2006


On Mon, 27 Nov 2006, Manu Linux Lookit wrote:

> Having more than 400 Servers to supervise ... i'd like to know if nagios
> is adapted ...
> 
> I've read some docs part ... and never i've seen another way to declare
> a server in nagios conf ... only by writing the hostname ...
> 
> But in fact i'd like to declare "lot of servers"  separated by their
> range ...
> 
> In fact : i'd like to declare for example : :
> 
> Unix : 192.168.0.XXX
> Win : 192.168.1.XXX
> Linux : 192.168.2.XXX
> 
> The question is : without writing all the hostname in the config file (
> too much servers to declare ), it is possible to declare servers by
> their range ? Or giving the same config to a IP range ? and adding
> particlar config to a server more ?

This is not currently possible.  Each host needs a separate entry.

What I do here is create a host template, then bang out a quick shell
script to loop through the IP addresses and create a host entry for each
of them with a "use [host template name]" line in them.  Pretty easy
stuff.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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