Projet

Général

Profil

Révision e8da2ee5

IDe8da2ee51803f1f1fa68f8ce963b4a69d05f2910

Ajouté par Antoine Beaupré il y a plus de 13 ans

fix syntax

Voir les différences:

plugins/relayd
75 75
}
76 76

  
77 77
if ($cmd eq 'config') {
78
	print("multigraph relayd_avail\n\n");
78
	print("multigraph relayd_avail\n");
79 79
	print("graph_title Relayd host availability\n");
80 80
	print("graph_args --lower-limit 0\n");
81 81
	print("graph_vlabel % availability\n");
......
86 86
		$clean  = clean_fieldname('host'.$host) unless ($clean ne '_');
87 87
		print("$clean.label $host\n");
88 88
	}
89
	print("\nmultigraph relayd_incidents\n\n");
89
	print("multigraph relayd_incidents\n");
90 90
	print("graph_title Relayd host incidents\n");
91 91
	print("graph_args --lower-limit 0\n");
92 92
	print("graph_vlabel down incidents\n");
......
144 144
	}
145 145
}
146 146

  
147
print "multigraph relayd_avail\n\n";
147
print "multigraph relayd_avail\n";
148 148
for my $host (@hosts) {
149 149
	my $clean = clean_fieldname($host);
150 150
	$clean  = clean_fieldname('host'.$host) unless ($clean ne '_');
151 151
  	print "$clean.value " . ($avail{$host} || 'NaN'). "\n";
152 152
}
153 153

  
154
print "\nmultigraph relayd_incidents\n\n";
154
print "multigraph relayd_incidents\n";
155 155
for my $host (@hosts) {
156 156
	my $clean = clean_fieldname($host);
157 157
	$clean  = clean_fieldname('host'.$host) unless ($clean ne '_');

Formats disponibles : Unified diff