Nagios Core

configure a second IP-address for each Host – Nagios 1.x

Description:

Sometimes it can be useful to be able to configure secondary addresses

Current Version

Last Release Date

June 24, 2009

Compatible With


Project Files
Project Notes
Because most of our Servers got at least two IP-Addresses, (one for the customer-service (ie. web) one for the internal-services (ie. snmp)), I faced the problem that it seems to be impossible to define two addresses to one host and refer to each of these address via macro. Of course you can define more ip-adresses in a row, but I think it is not possible to use each one of them in a specific macro. However, because of possible DNS failures I like to use IPs. Therefor I wrote a simple patch. With this patch it is possible to use a new directive in the host-definition and refer to this entry with a new macro. ie: define host { host_name name alias alias address primary-ip-address --> secondary_addres secondary-ip-address check_command check_host_alive max_check_attempts 5 notification_interval 60 notification_period 24x7 notification_options d,u,r } In checkcommands you will be able to use this value with $SECONDARYHOSTADDRESS$. If no secondary_address is defined for the host, it will use the primary_address. Of course the secondary address will be shown on the webinterface. However, I am not quite sure if this patch is useful for other nagios-installations also this patch will only work with version 1.2 (probably 1.3 too).
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
176,562