Pages: [1]   Go Down
Author Topic: A bug in console Text string module data displaying?  (Read 356 times)
0 Members and 2 Guests are viewing this topic.
daggett
Sr. Member
****

Karma: 0
Offline Offline

Posts: 109


View Profile
« on: December 15, 2006, 02:02:09 PM »

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
« Last Edit: January 01, 1970, 01:00:00 AM by daggett » Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #1 on: December 15, 2006, 11:22:31 PM »

Quote from: "daggett"
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 operation\agentes\datos_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);
[/code]

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
« Last Edit: January 01, 1970, 01:00:00 AM by raul » Logged

daggett
Sr. Member
****

Karma: 0
Offline Offline

Posts: 109


View Profile
« Reply #2 on: December 18, 2006, 11:18:05 AM »

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
« Last Edit: January 01, 1970, 01:00:00 AM by daggett » Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST