]> andersk Git - moira.git/blobdiff - gen/nagios-wsh.gen
Recognize WINDOWS-UPTIME service.
[moira.git] / gen / nagios-wsh.gen
index c33e559b235c95375f0e4b0329892608285f5e4e..5a2e7f68742aab7f6cc51dcbd8b0da165f5c3836 100755 (executable)
@@ -40,6 +40,7 @@ define host{
        host_name               $name
        alias                   $name
        address                 $name
+       contact_groups          wsh
        use                     generic-host
        }
 
@@ -80,7 +81,7 @@ END
        while (<@tags>) {
            my $service = $_;
            chomp $service;
-           if ($service =~ /^(FTP|NFS|HTTP|HTTPS|SMTP|SSHD|TELNET|TNS)$/i) {
+           if ($service =~ /^(FTP|NFS|HTTP|HTTPS|SMTP|SSHD|TELNET|TNS|WINDOWS-UPTIME)$/i) {
                my $ucservice = $service;
                $ucservice =~ tr/a-z/A-Z/;
                my $lcservice = $service;
@@ -208,7 +209,6 @@ END
 define hostgroup{
         hostgroup_name          wsh-hosts
         alias                   wsh-hosts
-        contact_groups          wsh
 END
 
 print OUT "\tmembers\t\t\t";
This page took 0.040928 seconds and 4 git commands to generate.