Skip to content

Instantly share code, notes, and snippets.

View wyardley's full-sized avatar

Will Yardley wyardley

  • Los Angeles, CA
View GitHub Profile
@wyardley
wyardley / gist:a27e88e4777631d22ed390edcd38d080
Created October 20, 2017 05:49
zabbix puppet apply output
[root@centos-7-x64 ~]# puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.mD49KL
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
# Description:
# This script receives pages in the formats
# /usr/bin/curl -d host="$HOSTALIAS$" -d output="$SERVICEOUTPUT$" -d description="$SERVICEDESC$" -d type=service -d notificationtype="$NOTIFICATIONTYPE$ -d state="$SERVICESTATE$" $CONTACTADDRESS1$
# /usr/bin/curl -d host="$HOSTNAME$" -d output="$HOSTOUTPUT$" -d type=host -d notificationtype="$NOTIFICATIONTYPE$" -d state="$HOSTSTATE$" $CONTACTADDRESS1$
#
# Based on a gist by oremj (https://gist.github.com/oremj/3702073)
#
# Configuration:
# HUBOT_NAGIOS_URL - https://<user>:<password>@nagios.example.com/cgi-bin/nagios3
#