Fwd: Multiple host in hosts.cfg
Giles Coochey
GilesC at CarmenMedia.com
Thu Nov 9 12:04:42 CET 2006
Firstly, and I've seen this a couple of times in the last few days with
different users - simply re-posting the same question just a few hours
after the original post isn't likely to get you results. And it is
generally considered bad netiquette.
I seldom complain, but having had this feeling of deja-vu the second
time round in the last few days I thought I'd mention it. My guess is
that many people on the mailing list increasingly ignore people who
double post questions when they don't get a reply.
>
> Hello,
>
> can i have multiple host(for exa: 192.168.10.0/24 or 192.168.10.1-
> 192.168.10.255) in address field in hosts.cfg file ?
>
> my hosts.cfg file is as per below
>
> define host{
> use generic-host ;
> Name of host
> template to use
>
> host_name LAN
> contact_groups GNFC-Admin
> alias Workstation
> address
> 192.168.10.63,192.168.10.71,192.168.10.92
> check_command check-host-alive
> max_check_attempts 10
> notification_interval 120
> notification_period 24x7
> notification_options d,u,r
> }
>
> but it giving error like "1163068098] SERVICE ALERT:
> LAN;SMTP;UNKNOWN;HARD;1;check_smtp: Invalid hostname/address
> - 192.168.10.63,192.168.10.71,192.168.10.92"
>
"Invalid hostname/address" is the clue here... Oh and look, it
references your comma separated address entry... Surely that means...
Seems to me that Nagios is giving you a straight answer to your
question. The syntax is not correct, you must have a single IP address
defined for a host. A host is a container for a single host (I believe
there are plugins available to define a second IP for the same host, but
that isn't what you are looking for).
> or is their any facility in nagios to auto-detect new
> inserted devices ?
>
Not built in, but www.nagiosexchange.org is your friend.
I came across this after thirty seconds of searching (considerably
shorter than it took me to write this reply):
http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[
p_view]=277
It might be what you're looking for.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
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