Skip to content

Commit ec495b4

Browse files
committed
smokeping: show ip addresses if given
1 parent 3ab6549 commit ec495b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/usr/local/bin/config_generator/nag2smokeping.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ sub main {#{{{
129129
print "++ $host_az\n";
130130
print "probe = $probe\n";
131131
print "menu = $host\n";
132-
print "title = $host\n";
132+
print "title = $host" . ($e->{ip} ? " ($e->{ip})" : '') . "\n";
133133
print "host = $ip\n\n";
134134
foreach my $service ( keys %{$e->{services}} ) {
135135
my @args = split('!', $service);

0 commit comments

Comments
 (0)