Notifications

Nagios-Prowl

Description:

Allows you to send cleanly formatted Prowl notifications for Nagios alerts. Includes URLs to take you right to the host or service being alerted.

Current Version

v0.02

Last Release Date

2012-10-12

Compatible With

  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI

Owner

License

GPL


Project Notes
Requirements ============ * Perl modules ** LWP::UserAgent ** Crypt::SSLeay Use === * Grab nagios-prowl.pl and put them somewhere nice. * Set mode for nagios-prowl.pl to 0555, or something more restrictive (0500 maybe). * In Nagios: ** Add the following two commands making sure that the paths to nagios-prowl.pl are correct. If you have a provider API key (and you should), be sure to fill it in. If you don't, remove the -p bit from each command. Also update with the URL to your Nagios cgi-bin. define command { command_name notify-host-by-prowl command_line /usr/local/bin/nagios-prowl.pl -p -u "" -t "$LONGDATETIME$" -N "$NOTIFICATIONTYPE$" -s "$HOSTSTATE$" -H "$HOSTNAME$" -o "$HOSTOUTPUT$" -a "$_CONTACTPROWL_APIKEYS$" } define command { command_name notify-service-by-prowl command_line /usr/local/bin/nagios-prowl.pl -p -u "" -t "$LONGDATETIME$" -N "$NOTIFICATIONTYPE$" -s "$SERVICESTATE$" -H "$HOSTNAME$" -S "$SERVICEDESC$" -o "$HOSTOUTPUT$" -a "$_CONTACTPROWL_APIKEYS$" } ** Add the following to contact records you'd like Prowl notifications for: define contact { service_notification_commands ,notify-service-by-prowl host_notification_commands ,notify-host-by-prowl _prowl_apikeys [, ...] }
Reviews (0) Add a Review
Project Stats
Rating
0 (0)
Favorites
0
Views
54,160