Pandora FMS Community

A bug in console Text string module data displaying?

daggett · 15 dic 2006, 17:02 · 3 mensajes · 54 visitas

  1. Inicio del debate

    Hi, I monitor a few things with text strings (in prevision to the next version supporting alerts on text strings) and when clicking View Agents>Agent Details>Day Icon of a string text module, it displays only 12 characters, i.e. for syslog last line module: "Dec 15 12:39:01 localhost crond" is displayed on the agent page but when I click on the Day or Week or Month icon, it just displays 12 characters "Dec 15 12:39:01" so anyway I can't read the entire last syslog line... Is this normal? thanks bye for now

  2. Hi, I monitor a few things with text strings (in prevision to the next version supporting alerts on text strings) and when clicking View Agents>Agent Details>Day Icon of a string text module, it displays only 12 characters, i.e. for syslog last line module: "Dec 15 12:39:01 localhost crond" is displayed on the agent page but when I click on the Day or Week or Month icon, it just displays 12 characters "Dec 15 12:39:01" so anyway I can't read the entire last syslog line... Is this normal? thanks bye for now

    I think so... At the page operationagentesdatos_agente.php, in the lines 111 and 113 you can see: [code:1] line 110: } else line 111: echo substr($myvalue,0,12); line 112: } else line 113: echo substr($row["datos"],0,12); So, the change is easy, change 12 for number you want or avoid the substr function: echo $myvalue; echo $row["datos"]; I think we should change that... Raul

  3. Ok, thanks, I will remove that "substr" function that I don't need here but it may be interesting in the case the text strings are very very long... So maybe it can be kept as an option? anyway thanks for the hint! read you next! :-P bye

Entra en tu cuenta para publicar.