Skip to content

Instantly share code, notes, and snippets.

View doublemarket's full-sized avatar

Hayato Matsuura doublemarket

View GitHub Profile
@doublemarket
doublemarket / change-notif-host-all.sh
Last active October 10, 2015 12:28
notification stop/start script for nagios (all services on the host)
#!/bin/sh
# enable/disable all notifications for the host
# using Nagios external commands
NOW=`date +%s`
CMDFILE='/var/spool/nagios/cmd/nagios.cmd'
# enable notification for the host
f_enable() {