]> jspc29.x-matter.uni-frankfurt.de Git - hadesicinga.git/commitdiff
JAM: added ping service to daq2icinga.pl
authorhadaq <hadaq>
Thu, 16 Feb 2012 09:27:50 +0000 (09:27 +0000)
committerhadaq <hadaq>
Thu, 16 Feb 2012 09:27:50 +0000 (09:27 +0000)
icinga/objects/daq2icinga.pl

index 6dfe5c16599a91a4d5fdbf45d17af2ae76807ce1..e61c4768ff030d25109ca18dd4155e76493bcbba 100755 (executable)
@@ -126,6 +126,19 @@ my $groupmembers = join(",", @totalsystems);
 print OUTFILE "     hostgroup_members $groupmembers \n";
 print OUTFILE "}\n"; 
 
+# define ping service for all nodes:
+print OUTFILE "\n\n###############################################################################\n";
+print OUTFILE "# Ping service for all nodes\n";
+print OUTFILE "###############################################################################\n";
+print OUTFILE "define service{\n";
+print OUTFILE "      use                        remote-service\n";
+print OUTFILE "      hostgroup_name             etrax\n";
+print OUTFILE "      service_description        PING\n";
+print OUTFILE "      check_command              check-host-alive\n";
+print OUTFILE "}\n";
+
+
+
 close(OUTFILE) || die "Couldn't close file $icinga_config_file properly";
 
 print "\tdone.\n";