Skip to content

Instantly share code, notes, and snippets.

View dkrizic's full-sized avatar

Darko Križić dkrizic

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dkrizic on github.
  • I am dkrizic (https://keybase.io/dkrizic) on keybase.
  • I have a public key ASAD5zANNqNlQdAtcU2DMhv9kdbG_67DAoXETcP99OgsOAo

To claim this, I am signing this object:

root@icinga:~# apt-get update && apt-get dist-upgrade
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://mirrordirector.raspbian.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release
Hit http://mirrordirector.raspbian.org wheezy Release
Hit http://archive.raspberrypi.org wheezy Release
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Hit http://mirrordirector.raspbian.org wheezy/main armhf Packages
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
@dkrizic
dkrizic / contacts_icinga.cfg
Created January 2, 2014 23:49
Configure (the only) contact to use service-notify-by-pushover and host-notify-by-pushover for notifications.
define contact{
contact_name root
alias Root
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands service-notify-by-pushover
host_notification_commands host-notify-by-pushover
email root@localhost
@dkrizic
dkrizic / command.cfg
Created January 2, 2014 23:44
Command configuration for the script notify_by_pushover.sh
# Command: Pushover for host
define command {
command_name host-notify-by-pushover
command_line /usr/local/bin/notify_by_pushover.sh -u idXXXXXXXXXXXXXXX -a aXXXXXXXXXXXXXXXX -t "Icinga" -m "$HOSTNAME$: $HOSTSTATE$ ngfy://krizic/$HOSTNAME$"
}
# Command: Pushover for service
define command {
command_name service-notify-by-pushover
command_line /usr/local/bin/notify_by_pushover.sh -u idXXXXXXXXXXXXXXX -a aXXXXXXXXXXXXXXXX -t "Icinga" -m "$HOSTNAME$ – $SERVICEDESC$ : $SERVICESTATE$. Additional info: '$SERVICEOUTPUT$'" -x "$HOSTNAME$" -y "$SERVICEDESC$" -z "krizic"
@dkrizic
dkrizic / notify_by_pushover.sh
Created January 2, 2014 23:39
notify_by_pushover.sh
#!/bin/bash
# Notify by Pushover
# by Jedda Wignall
# http://jedda.me
# v1.2.1 - 17 Mar 2013
# Now parses title and message for sound processing.
# v1.2 - 18 Dec 2012