Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
configure a second IP-address for each Host v2 0 - Nagios 2.x
- Nagios 2.x
167542
File | Description |
---|---|
nagios-2.0rc1-ipaddresses.patch | IP-Address Patch for 2.0rc1 |
nagios-2.0rc2-ipaddresses.patch | IP-Address Patch for 2.0rc2 |
nagios-2.4-ipaddress.patch | IP-Address Patch for 2.4 |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
There was a request to create this patch for Nagios v2.0 as well as for 1.2.
Here it is...
However, this patch will work for version 2.0rc1 and 2.0rc2, and now for 2.4 as well.
Description:
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.
ATTN:
Because of our company policy I am not allowed to use a non-stable version. Therefor I am not running Nagios 2.0 in production yet.
If you have any comments or questions please let me know :-)
Here it is...
However, this patch will work for version 2.0rc1 and 2.0rc2, and now for 2.4 as well.
Description:
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.
ATTN:
Because of our company policy I am not allowed to use a non-stable version. Therefor I am not running Nagios 2.0 in production yet.
If you have any comments or questions please let me know :-)
Reviews (0)
Be the first to review this listing!