BUG: If a perfdata variable value is 0, and no thresholds and min/max is defined, the gauge doesn't show. For instance, if a check returns
Val1=0 Val2=0;1;2 Val3=0;1;2;0;100
This is the result:

The bug is in /usr/local/nagiosxi/html/includes/dashlets/gauges/gauges.inc.php line 353. There is a conditional to detect if any variable has no value, but its triggered incorrectly if the value is 0:
Code: Select all
if (empty($perfdata_s[1])) continue; BUG: If a variable name contains any of the characters that are escaped (for instance, :~\`!@$%\^&*()\/ ") the corresponding gauges are not shown.
The bug is caused in the same file (line 350 onwards)
Code: Select all
$perfdata_name = pnp_convert_object_name($perfdata_name);
if ($ds_label && $perfdata_name != $ds_label)
continue;
A possible solution is to replace the if condition with
Code: Select all
if ($ds_label && $perfdata_name != $ds_label && $perfdata_name != pnp_convert_object_name($ds_label))Thanks!
Gonzalo