Your a lazy devops, you want to deploy your application in one click BUT you don’t want Nagios to send alerts while you’re deploying. Solution: disable Nagios notifications while deploying.
-
Disable Nagios Notifications:
curl -d "cmd_mod=2&cmd_typ=11" "http://NAGIOS_HOST/cgi-bin/nagios3/cmd.cgi" -u "USERNAME:PASSWORD"
-
Re-Enable Nagios Notifications:
curl -d "cmd_mod=2&cmd_typ=12" "http://NAGIOS_HOST/cgi-bin/nagios3/cmd.cgi" -u "USERNAME:PASSWORD"
. Bookmark the
permalink. Both comments and trackbacks are currently closed.
Disable / Enable Nagios notifications from command line
Your a lazy devops, you want to deploy your application in one click BUT you don’t want Nagios to send alerts while you’re deploying. Solution: disable Nagios notifications while deploying.
curl -d "cmd_mod=2&cmd_typ=11" "http://NAGIOS_HOST/cgi-bin/nagios3/cmd.cgi" -u "USERNAME:PASSWORD"
curl -d "cmd_mod=2&cmd_typ=12" "http://NAGIOS_HOST/cgi-bin/nagios3/cmd.cgi" -u "USERNAME:PASSWORD"