Nagios で通知(Notifications)の有効/無効切替を curl で実行します。 _NAGIOS="nagios.example.com" _NAGIOS_USER="nagiosadmin" _NAGIOS_PASS="nagiosadmin" _HOST="localhost" ## 無効化 # Disable notifications for this host curl -s -S http://${_NAGIOS}/nagios/cgi-bin/cmd.cgi -u ${_NAGIOS_USER}:${_NAGIOS_PASS} -d "cmd_mod=2&cmd_typ=25&host=${_HOST}" \ | grep 'Message' # Disable notifications for all services on this host curl -
![Nagios 通知有効/無効を curl で切替 | iret.media](https://cdn-ak-scissors.b.st-hatena.com/image/square/600f50e616eb7106c301d209044965541723df8e/height=288;version=1;width=512/https%3A%2F%2Firet.media%2Fwp-content%2Fuploads%2F2015%2F10%2Feyecatch-nagios-2.png)