title-icon-code

Using Pushover to push Nagios notifications

With the recent outages in Boxcar‘s service, I have had to move to a more reliable push notification platform. Pushover seems to fit the bill perfectly, and whilst it is currently mobile device only (iOS and Android clients), their FAQ states their plans for a Mac client with notification center integration.

I have added a script to my OSX-Monitoring-Tools project to send a notification to your Pushover account that should be easy to integrate into your existing Nagios workflow.

notify_by_pushover.sh on GitHub

6 Responses to "Using Pushover to push Nagios notifications"

Add Comment
  1. Mark

    September 4, 2012 at 7:46 pm

    If I’m running nagios on a Linux system, how could this be modified to work with a standard install?

    Reply
    • jedda

      September 4, 2012 at 7:54 pm

      Hi Mark,

      I run nagios on an Ubuntu 11.10 box, and this script works just fine. Are you having a specific issue?

      Jedda

      Reply
  2. Daniel

    October 14, 2012 at 3:49 am

    My command definition for pushover (thanks, Jedda!):
    # ‘pushover notification’ command definition
    define command {
    command_name host-notify-by-pushover
    command_line /usr/lib/nagios/plugins/notify_by_pushover.sh -u key -a key -t “Nagios” -m “$HOSTNAME$: $HOSTSTATE$”
    }
    define command {
    command_name service-notify-by-pushover
    command_line /usr/lib/nagios/plugins/notify_by_pushover.sh -u key -a key -t “Nagios” -m “$HOSTNAME$ – $SERVICEDESC$ : $SERVICESTATE$. Additional info: ´$SERVICEOUTPUT$´”
    }
    Yes, I have my keys hardcoded. Sue me. 🙂

    Reply
    • jedda

      October 14, 2012 at 3:27 pm

      No problems Daniel. Glad you are getting some use out of it.

      Reply
  3. Mike

    March 7, 2013 at 4:35 pm

    Thank you very much, I have used this blog several times for different scripts you have done, keep it up, you have helped me so much!

    Reply
    • jedda

      March 17, 2013 at 3:27 pm

      No problems Mike. Enjoy!

      Reply

Submit a comment

Your email address will not be published. Required fields are marked *