[root@bender ~]# cat /etc/redhat-release<br>CentOS release 5.2 (Final)<br>[root@bender ~]# uptime<br> 12:48:33 up 39 days, 22:20,  3 users,  load average: 0.00, 0.07, 0.13<br>[root@bender ~]# uptime | perl -pe "s/^(.*) day (.*)/\1 days \2/"<br>

 12:48:37 up 39 days, 22:20,  3 users,  load average: 0.00, 0.07, 0.13<br>[root@bender ~]# echo `uptime | perl -pe "s/^(.*) day (.*)/\1 days \2/"`<br>12:49:10 up 39 days, 22:20, 3 users, load average: 0.00, 0.06, 0.12<br>

<br clear="all">Josh Luthman<br>Office: 937-552-2340<br>Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br>
<br><br><div class="gmail_quote">On Thu, Jul 15, 2010 at 12:44 PM, Brand, Thomas R. <span dir="ltr"><<a href="mailto:TRBrand@cvs.com">TRBrand@cvs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div link="blue" vlink="blue" lang="EN-US">

<div>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">Ryan,</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> I don’t have a CentOS system
to test on.  </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">I would expect CentOS to use the  hobbitclient-linux.sh
script too, so the fix described below should work for you too.</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">On the client, edit hobbitclient-linux.sh
and change:</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"><br>
</span></font><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: "Courier New"; color: red;">echo "[uptime]"</span></font></p>

<p class="MsoNormal"><font size="2" color="red" face="Courier New"><span style="font-size: 10pt; font-family: "Courier New"; color: red;">uptime </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">To </span></font></p><div class="im">

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="blue" face="Courier New"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">echo
"[uptime]"</span></font></p>

<p class="MsoNormal"><font size="2" color="blue" face="Courier New"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">uptime | perl -pe
"s/^(.*) day (.*)/\1 days \2/"</span></font><font size="2" color="navy" face="Courier New"><span style="font-size: 10pt; font-family: "Courier New"; color: navy;"></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div>

<p class="MsoNormal"><b><b><i><font size="5" color="blue" face="Monotype Corsiva"><span style="font-size: 18pt; font-family: "Monotype Corsiva"; color: blue; font-style: italic;">Tom Brand</span></font></i></b></b><font color="navy"><span style="color: navy;"></span></font></p>



<p class="MsoNormal"><font size="1" color="red" face="Times New Roman"><span style="font-size: 7.5pt; color: red;">Disclaimer</span></font><font size="1" color="black"><span style="font-size: 7.5pt; color: black;">:  1) all
opinions are my own, 2) I may be completely wrong, 3) my advice is worth at
least as much as what you are paying for it, or your money cheerfully refunded.</span></font></p>

</div>

</div><div>

<div class="MsoNormal" style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

<hr align="center" size="3" width="100%">

</span></font></div>

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;"> Lapuz, Ryan Jay
[mailto:<a href="mailto:ryanjay.lapuz@tsdp.toshiba.co.jp" target="_blank">ryanjay.lapuz@tsdp.toshiba.co.jp</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, July 14, 2010
9:31 PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [xymon] RE: [hobbit] Re:
rrd history chart disappears under conn, memory and disk after 24 hours</span></font></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p class="MsoNormal" style="margin-bottom: 10pt; line-height: 115%;"><font size="2" color="#1f497d" face="Arial"><span style="font-size: 10pt; line-height: 115%; font-family: Arial; color: rgb(31, 73, 125);">Hi Thomas,</span></font></p>



<p class="MsoNormal" style="margin-bottom: 10pt; line-height: 115%;"><font size="2" color="#1f497d" face="Arial"><span style="font-size: 10pt; line-height: 115%; font-family: Arial; color: rgb(31, 73, 125);">Good day!</span></font></p>



<p class="MsoNormal" style="margin-bottom: 10pt; line-height: 115%;"><font size="2" color="#1f497d" face="Arial"><span style="font-size: 10pt; line-height: 115%; font-family: Arial; color: rgb(31, 73, 125);">I am having the same issue, but the problem is
that it is my Xymon server that is installed on CentOS that is displaying
‘day’ instead of ‘days’ when executing uptime command.</span></font></p>

<p class="MsoNormal" style="margin-bottom: 10pt; line-height: 115%;"><font size="2" color="#1f497d" face="Arial"><span style="font-size: 10pt; line-height: 115%; font-family: Arial; color: rgb(31, 73, 125);">So all my clients’ graph are not
displaying after the time that you specified on your email.</span></font></p>

<p class="MsoNormal" style="margin-bottom: 10pt; line-height: 115%;"><font size="2" color="#1f497d" face="Arial"><span style="font-size: 10pt; line-height: 115%; font-family: Arial; color: rgb(31, 73, 125);">Can you help me on how to solve this problem?</span></font></p>



<p class="MsoNormal" style="margin-bottom: 10pt; line-height: 115%;"><font size="2" color="#1f497d" face="Arial"><span style="font-size: 10pt; line-height: 115%; font-family: Arial; color: rgb(31, 73, 125);">Thanks in advance.</span></font></p>



<p class="MsoNormal" style="margin-bottom: 10pt; line-height: 115%;"><font size="2" color="#1f497d" face="Arial"><span style="font-size: 10pt; line-height: 115%; font-family: Arial; color: rgb(31, 73, 125);">Best regards,</span></font></p>



<p class="MsoNormal" style="margin-bottom: 10pt; line-height: 115%;"><font size="2" color="#1f497d" face="Arial"><span style="font-size: 10pt; line-height: 115%; font-family: Arial; color: rgb(31, 73, 125);">Ryan</span></font></p>



<p class="MsoNormal"><font size="2" color="#1f497d" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: rgb(31, 73, 125);"> </span></font></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;"> Brand, Thomas R.
[mailto:<a href="mailto:TRBrand@cvs.com" target="_blank">TRBrand@cvs.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, February 04, 2010
1:55 AM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> RE: [hobbit] Re: rrd
history chart disappears under conn, memory and disk after 24 hours</span></font></p>

</div>

</div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">I had similar symptoms a while back
running Xymon on SLES 10.1 (SuSE Linux).</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">The rrd graphs would display data for
hours 0-24 after a reboot, no data for hours 24-48,</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">and then be fine again for hours 48+.</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">I determined that, when running under
SLES, the uptime command returns the string:</span></font></p>

<p class="MsoNormal" style="text-indent: 0.5in;"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">‘day’
  for uptime >= 24 hours && <48 hours; eg, 1 day</span></font></p>

<p class="MsoNormal" style="text-indent: 0.5in;"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">‘days’ for
uptime >= 48 hours; eg 3 day</span></font><b><font size="2" color="red" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: red; font-weight: bold;">s</span></font></b><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></p>



<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">On the Xymon server, it appears the
software is only looking for the string ‘days’.</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">I modified the [uptime] section in
~hobbit/client/bin/hobbitclient-linux.sh and added a perl </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">command to change ‘ day ‘
to  ‘ days ‘.</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="#003300" face="Courier New"><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 51, 0);">echo
"[uptime]"</span></font></p>

<p class="MsoNormal"><font size="2" color="#003300" face="Courier New"><span style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 51, 0);">uptime | perl
-pe "s/^(.*) day (.*)/\1 days \2/"</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<div>

<p class="MsoNormal"><b><b><i><font size="5" color="blue" face="Monotype Corsiva"><span style="font-size: 18pt; font-family: "Monotype Corsiva"; color: blue; font-style: italic;">Tom Brand</span></font></i></b></b><font color="navy"><span style="color: navy;"></span></font></p>



<p class="MsoNormal"><font size="1" color="red" face="Times New Roman"><span style="font-size: 7.5pt; color: red;">Disclaimer</span></font><font size="1" color="black"><span style="font-size: 7.5pt; color: black;">:  1) all
opinions are my own, 2) I may be completely wrong, 3) my advice is worth at
least as much as what you are paying for it, or your money cheerfully refunded.</span></font></p>

</div>

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

<hr align="center" size="3" width="100%">

</span></font></div>

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;"> White, Bruce
[mailto:<a href="mailto:bewhite@fellowes.com" target="_blank">bewhite@fellowes.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, February 03, 2010
11:42 AM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> RE: [hobbit] Re: rrd
history chart disappears under conn, memory and disk after 24 hours</span></font></p>

</div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">I have been running two Xymon-
4.3.0-0.beta2 running on  RedHat AS 5.2 servers for over three months and
hive not seen anything like you describe on either server.</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">    
…….Bruce </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font><b><b><font size="2" color="black" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: black;">Bruce White</span></font></b></b></p>



<p><font size="2" color="gray" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: gray;"> Senior
Enterprise Systems Engineer | Phone: 630-671-5169 | Fax: 630-893-1648 | <a href="mailto:bewhite@fellowes.com" target="_blank">bewhite@fellowes.com</a> | <a href="http://www.fellowes.com/" target="_blank">www.fellowes.com</a></span></font></p>



<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><img src="cid:image001.jpg@01CB241B.6659F700" border="0" height="42" width="514"> </span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="1" color="gray" face="Arial"><span style="font-size: 7.5pt; font-family: Arial; color: gray;">Disclaimer:
The information contained in this message may be privileged and confidential
and protected from disclosure. If the reader of this message is not the
intended recipient or an employee or agent responsible for delivering this
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify us
immediately by replying to the message and deleting it from your computer.
Thank you. Fellowes, Inc.</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

</div>

<div>

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;"> ZHONGYU CHEN
[mailto:<a href="mailto:w17682@motorola.com" target="_blank">w17682@motorola.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, February 03, 2010
7:41 AM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [hobbit] Re: rrd history
chart disappears under conn, memory and disk after 24 hours</span></font></p>

</div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Hi,<br>
<br>
I switch to version 4.2.3 and I haven't see the same issue.<br>
<br>
Thanks.</span></font></p>

<div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">On Sun, Jan 24, 2010 at 10:45 PM, ZHONGYU CHEN <<a href="mailto:w17682@motorola.com" target="_blank">w17682@motorola.com</a>> wrote:</span></font></p>



<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Hi,<br>
<br>
I installed and configured xymon-4.3.0-beta2. Everything looks fine. But there
is one strange thing beyond my understood. The rrd history chart disappears
under tests/columns of conn, disk and memory after running 24 hours. But I can
see these charts under column trends. No time effect to the tests/columns of
cpu and my custom tests. These rrd charts will stay there as far as time goes.<br>
<br>
If I add a new client, I can see these rrd charts under conn, disk and memory
during the first 24 hours (or the first day).<br>
<br>
Anyone sees the same phenomenon?  Did I miss something in configuration?<br>
<br>
Thank you in advance.<br clear="all">
<br>
-- <br>
<font color="#888888"><span style="color: rgb(136, 136, 136);">Zhongyu Chen</span></font></span></font></p>

</div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div></div></div>

</div>


</blockquote></div><br>