Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Draytek Router Automated WAN interfaces configuration
1
2013-06-17
- Nagios 3.x
- Nagios XI
GPL
38764
File | Description |
---|---|
add_wan.sh | The main script |
template.cfg | Template to feed the script |
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!
Installation:
1. Create a New command in XI (you only have to do this once):
Go to XI --> CCM --> Commands --> add new:
Command name: check_client_ping
Command Line: $USER1$/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$
Save out.
2. Create a directory in /usr/local/libexec for script, template, and router ip list.
3. Download the add_wan.sh script and the template.cfg template to the above directory.
4. Generate a file in the above directory with a list of ips and hostnames of all the router you wish to walk, for example:
192.168.0.1 myhostname
192.168.0.100 anotherhostname
# etc.
5. The script can be run from the cli with the following syntax:
add_wan.sh
Alternatively, it can be cron'd for easy regeneration of dynamic wan ips. Advanced users can setup an event handler as well.
Simple bash script that walks a given list of router ips for WAN interface ips, and then configures ping checks on each of those wan ips with each respective ping check listed as a service for the router. The script also requires a template with specific variablized syntax for the creation of the config. The script also copies the static config to the static directory and restarts nagios.
Installation:
1. Create a New command in XI (you only have to do this once):
Go to XI --> CCM --> Commands --> add new:
Command name: check_client_ping
Command Line: $USER1$/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$
Save out.
2. Create a directory in /usr/local/libexec for script, template, and router ip list.
3. Download the add_wan.sh script and the template.cfg template to the above directory.
4. Generate a file in the above directory with a list of ips and hostnames of all the router you wish to walk, for example:
192.168.0.1 myhostname
192.168.0.100 anotherhostname
# etc.
5. The script can be run from the cli with the following syntax:
add_wan.sh
Alternatively, it can be cron'd for easy regeneration of dynamic wan ips. Advanced users can setup an event handler as well.
Installation:
1. Create a New command in XI (you only have to do this once):
Go to XI --> CCM --> Commands --> add new:
Command name: check_client_ping
Command Line: $USER1$/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$
Save out.
2. Create a directory in /usr/local/libexec for script, template, and router ip list.
3. Download the add_wan.sh script and the template.cfg template to the above directory.
4. Generate a file in the above directory with a list of ips and hostnames of all the router you wish to walk, for example:
192.168.0.1 myhostname
192.168.0.100 anotherhostname
# etc.
5. The script can be run from the cli with the following syntax:
add_wan.sh
Alternatively, it can be cron'd for easy regeneration of dynamic wan ips. Advanced users can setup an event handler as well.
Reviews (0)
Be the first to review this listing!