|
From: Markus M. <mma...@ya...> - 2011-01-08 13:06:20
|
Please can you help me with a local defined report using reports_local.html?
I have this working report in reports.html, but want to move it to reports_local.html:
[...]
%title = (
device_bad => "Device with bad Fan or Power supply",
[...]
<%method report_device_bad>
<%perl>
$columns = [
[ 'Name', 'name' ],
[ 'IP Address', 'ip' ],
[ 'Location', 'location' ],
[ 'Fan', 'fan' ],
[ 'PS1', 'ps1_status' ],
[ 'PS2', 'ps2_status' ]
];
$results =
sql_rows('device',
['name', 'ip', 'location', 'fan', 'ps1_status', 'ps2_status'],
{'fan/ps1_status/ps2_status' => 'bad'},
undef,'ORDER BY location');
</%perl>
</%method>
[...]
How have the reports_local.html be filled?
(I'am using the current CVS-version of netdisco.)
Thank You!
Markus
|