From 9c59d668c6d0611f1ea611ca0e9ea5a5954eaa20 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Tue, 3 Jun 2008 13:16:17 +0000 Subject: fixed extrahost integration --- lib/Smokeping.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Smokeping.pm') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 2c51954..6690953 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -651,7 +651,7 @@ sub target_menu($$$$;$){ $menuextra = undef; } if ($menuextra){ - $menuextra =~ s/##host##/$host/g; + $menuextra =~ s/{HOST}/#$host/g; } else { $menuextra = ''; } @@ -2223,7 +2223,7 @@ The slave names must match the slaves you have setup in the slaves section. DOC menuextra => { _doc => <. +A bit of html to append after the menu entry. You can embedd the name of the current host into it using C<{HOST}>. This entry does get inherited. Use this for example to add a link to your mtr service. DOC probe => { @@ -3393,7 +3393,7 @@ END_DOC How long should the master wait for its slave to answer? END_DOC }, - "/$KEYD_RE/" => { + "/$KEYDD_RE/" => { _vars => [ qw(display_name location color) ], _mandatory => [ qw(display_name color) ], _sections => [ qw(override) ], @@ -3519,7 +3519,7 @@ DOC List of slave servers. It gets inherited by all targets. DOC menuextra => { _doc => < entry will be replaces by the +HTML String to be added to the end of each menu entry. The C<{HOST}> entry will be replaces by the host of the relevant section if there is one. DOC -- cgit v1.2.3-24-g4f1b