Unnecessary log message when listing local services
Bug #907952 reported by
Walter Huf
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
munin |
Fix Committed
|
Undecided
|
Unassigned | ||
munin (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
If the user connects to localhost:4949 and issues the "list" command without passing a hostname, the following message showed up my logs:
Use of uninitialized value $1 in lc at /usr/share/
To stop it, I changed line 174 in /usr/share/
- _list_services(
+ _list_services(
Related branches
Changed in munin (Ubuntu): | |
importance: | Undecided → Medium |
To post a comment you must log in.
Upstream fix: http:// munin-monitorin g.org/changeset /4794
Index: /trunk/ node/lib/ Munin/Node/ Server. pm ======= ======= ======= ======= ======= ======= ======= ======= ==== node/lib/ Munin/Node/ Server. pm (revision 4770) node/lib/ Munin/Node/ Server. pm (revision 4794) s*([0-9a- zA-Z\.\ -]+)?/i) { $session, lc($1)); $session, $hostname_lc);
=======
--- /trunk/
+++ /trunk/
@@ -168,5 +168,6 @@
logger ("DEBUG: Running command '$_'.") if $config->{DEBUG};
if (/^list\
- _list_services(
+ my $hostname_lc = defined($1) ? lc($1) : undef;
+ _list_services(
}
elsif (/^cap\s?(.*)/i) {