Multiple IP's For Single Host
Greg Vickers
g.vickers at qut.edu.au
Fri Oct 28 03:19:25 CEST 2005
Hi Joseph,
Joseph Hardeman wrote:
> Hello,
>
> I was wondering if there is a way to identify multiple addresses for a
> single host? I am running ver2.0b4. I am wanting to check the internal
> and external interfaces of some VPN routers and was wondering if this
> could be done without creating a host entry for each interface. If not,
> then that is cool. Just will have to update my scripts to create those
> entries when outputting the cfg files.
What people usually do is define a host for each interface and make the
interface closest to the Nagios host the parent of the interface
furthest away from the Nagios host.
You can define multiple host addresses and write your host checks so
that multiple addresses are catered for, e.g.:
define command{
check_name check-host-alive
check_line /path/to/check_icmp -H $HOSTADDRESS$
}
But by using this method you can run across problems differentiating
between the interfaces - e.g. how do you tell which interface is
offering SSH and which isn't?
> For example:
>
> define host{
> host_name bogus-router
> alias Bogus Router #1
> address 192.168.0.253 <http://192.168.0.253/>,
> 192.168.1.254 <http://192.168.1.254/>
> parents server-backbone
>
> check_command check-host-alive
> max_check_attempts 5
> process_perf_data 0
> retain_nonstatus_information 0
> contact_groups router-admins
> notification_interval 30
>
> notification_period 24x7
> notification_options d,u,r
>
> }
HTH,
--
Greg Vickers
Project Manager, IT Security
Information Technology Services
Queensland University of Technology
L12, 126 Margaret St, Brisbane
Phone: (07) 3864 9536
Mobile: 0410 434 734
Email: g.vickers at qut.edu.au
IT Security web site: http://www.its.qut.edu.au/itsecurity/
CRICOS No. 00213J
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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