mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	nagios: Move email addresses for contacts into variables.
This commit is contained in:
		@@ -7,6 +7,10 @@ class zulip_ops::nagios {
 | 
			
		||||
                      "nagios3",
 | 
			
		||||
                      ]
 | 
			
		||||
  package { $nagios_packages: ensure => "installed" }
 | 
			
		||||
  $nagios_format_users = join($zulip_ops::base::users, ",")
 | 
			
		||||
  $nagios_alert_email = zulipconf("nagios", "alert_email", undef)
 | 
			
		||||
  $nagios_test_email = zulipconf("nagios", "test_email", undef)
 | 
			
		||||
  $nagios_pager_email = zulipconf("nagios", "pager_email", undef)
 | 
			
		||||
 | 
			
		||||
  apache2site { 'nagios':
 | 
			
		||||
    require => [File['/etc/apache2/sites-available/'],
 | 
			
		||||
@@ -43,7 +47,6 @@ class zulip_ops::nagios {
 | 
			
		||||
    notify => Service["nagios3"],
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  $nagios_format_users = join($zulip_ops::base::users, ",")
 | 
			
		||||
  file { "/etc/nagios3/cgi.cfg":
 | 
			
		||||
    require => Package[nagios3],
 | 
			
		||||
    owner  => "root",
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,7 @@ define contact{
 | 
			
		||||
        host_notification_options       d,r
 | 
			
		||||
        service_notification_commands   notify-service-by-email
 | 
			
		||||
        host_notification_commands      notify-host-by-email
 | 
			
		||||
        email                           monitoring@zulip.com
 | 
			
		||||
        email                           <%= @nagios_alert_email %>
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
define contact{
 | 
			
		||||
@@ -33,7 +33,7 @@ define contact{
 | 
			
		||||
        host_notification_options       d,r
 | 
			
		||||
        service_notification_commands   notify-service-by-email
 | 
			
		||||
        host_notification_commands      notify-host-by-email
 | 
			
		||||
        email                           monitoring@zulip.com
 | 
			
		||||
        email                           <%= @nagios_test_email %>
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
###############################################################################
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user