Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support A bug in console Text string module data displaying?

  • A bug in console Text string module data displaying?

    Posted by daggett on December 15, 2006 at 17:02

    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

    daggett replied 17 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • raul

    Member
    December 16, 2006 at 02:22
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • daggett

    Member
    December 18, 2006 at 14:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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! 😛

    bye