Skip to content

Instantly share code, notes, and snippets.


Darko Krizic dkrizic

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dkrizic on github.
  • I am dkrizic ( on keybase.
  • I have a public key ASAD5zANNqNlQdAtcU2DMhv9kdbG_67DAoXETcP99OgsOAo

To claim this, I am signing this object:

View gist:11296011
root@icinga:~# apt-get update && apt-get dist-upgrade
Hit wheezy Release.gpg
Hit wheezy Release.gpg
Hit wheezy Release.gpg
Hit wheezy Release
Hit wheezy Release
Hit wheezy Release
Hit wheezy/rpi armhf Packages
Hit wheezy/main armhf Packages
Hit wheezy/main armhf Packages
dkrizic / contacts_icinga.cfg
Created Jan 2, 2014
Configure (the only) contact to use service-notify-by-pushover and host-notify-by-pushover for notifications.
View contacts_icinga.cfg
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 / command.cfg
Created Jan 2, 2014
Command configuration for the script
View command.cfg
# Command: Pushover for host
define command {
command_name host-notify-by-pushover
command_line /usr/local/bin/ -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/ -u idXXXXXXXXXXXXXXX -a aXXXXXXXXXXXXXXXX -t "Icinga" -m "$HOSTNAME$ – $SERVICEDESC$ : $SERVICESTATE$. Additional info: '$SERVICEOUTPUT$'" -x "$HOSTNAME$" -y "$SERVICEDESC$" -z "krizic"
# Notify by Pushover
# by Jedda Wignall
# v1.2.1 - 17 Mar 2013
# Now parses title and message for sound processing.
# v1.2 - 18 Dec 2012