Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Weather Conditions and Forcast with Weather Underground
201612061140
2016-12-08
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
5919
File | Description |
---|---|
check_weather_condition.sh | check_weather_condition.sh |
check_weather_forecast.sh | check_weather_forecast.sh |
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!
Nagios Plugin to check the current weather conditions with Weather Underground. Developed to work on Synagios (Synology Nagios Server)
A personal Weather Underground API key is required in order to use this Plugin. For the Free DEV API, a maximum of 500 checks is allowed per day. Since I use Conditions as well as the Forecast, I've set it to a check period of 15 minutes to not exceed the limitation. To only use the request once per check, Temp-Files are required for both commands. In case the plugin doesn't receive the data, the temp-data is used.
Usage Conditions:
check_weather_condition.sh [API-Key] [Country Code] [Cityname] [Low Warn] [High Warn] [Wind Warn]
Usage Forecase:
check_weather_forecase.sh [API-Key] [Country Code] [Cityname] [Low Warn] [High Warn] [Wind Warn]
Usage in NAGIOS: ./check_weather_condition.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$
Usage in NAGIOS: ./check_weather_forecast.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$
ARG1: API-Key
ARG2: Country Code
ARG3: Cityname
ARG4: Low Warn
ARG5: High Warn
ARG6: Wind Warn
By Markus Walther
A personal Weather Underground API key is required in order to use this Plugin. For the Free DEV API, a maximum of 500 checks is allowed per day. Since I use Conditions as well as the Forecast, I've set it to a check period of 15 minutes to not exceed the limitation. To only use the request once per check, Temp-Files are required for both commands. In case the plugin doesn't receive the data, the temp-data is used.
Usage Conditions:
check_weather_condition.sh [API-Key] [Country Code] [Cityname] [Low Warn] [High Warn] [Wind Warn]
Usage Forecase:
check_weather_forecase.sh [API-Key] [Country Code] [Cityname] [Low Warn] [High Warn] [Wind Warn]
Usage in NAGIOS: ./check_weather_condition.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$
Usage in NAGIOS: ./check_weather_forecast.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$
ARG1: API-Key
ARG2: Country Code
ARG3: Cityname
ARG4: Low Warn
ARG5: High Warn
ARG6: Wind Warn
By Markus Walther
Reviews (0)
Be the first to review this listing!