Nagios is checking the weather

Author: stephan  |  Category: Linux, Nagios, Sonstiges

[lang_de]
Eine der weniger ernsthafteren Anwendungen für nagios ist eine Überprüfung des Wetters.
Dazu dient das Plugin check_weather
nagiosplugins.org
Dazu muss man sich bei weather.com registrieren um den webservice zu nutzen und um eine Userid und eine Lizenz zu bekommen .
Diese müßen in die check_weather.pl eingefügt werden

my $weather = Weather::Com::Simple->new(
partner_id => "meine ID",
license => "meine Lizenz",

Das Resultat:

/server/nagios/libexec > ./check_weather.pl -l neu-ulm
WEATHER OK - Temperature -11 degrees celsius at Neu-Ulm, Germany | celsius=-11;;

[/lang_de]
[lang_en]
One of the more humorous uses of nagios is the possibility to check the weather.
This is the use of the plugin check_weather
nagiosplugins.org
Then you have to register at weather.com to use the webservice and get a userid and a license.
The userid and the license hat to put into check_weather.pl

my $weather = Weather::Com::Simple->new(
partner_id => "my ID",
license => "myLicense",

The result

/server/nagios/libexec > ./check_weather.pl -l neu-ulm
WEATHER OK - Temperature -11 degrees celsius at Neu-Ulm, Germany | celsius=-11;;

[/lang_en]