Xymon Mailing List Archive search

Hobbit client 4.1.2 sends almost no data

1 message in this thread

list John Glowacki · Tue, 13 Jun 2006 10:30:33 -0400 ·
We had a problem with disk space on one of our test systems. The filesystem running the hobbit client ran out of space. bb-msgs.pl continued to send msgs of "alloc: /opt: file system full" to the hobbit server OK. Some detail made it into the tmp/msg.txt file. Lost all data for graphing disk, memory, users and processes, CPU Utilization, and Network I/O. One of the things that really didn't make any sense to me was df only showed swap in msg.txt. See msg.txt below. df showed the filesystem had 700MB free. I then ran "./hobbitclient-sunos.sh > tfile" and it wrote the file with all the correct data.

I am still looking at this but one of the things I did change was making hobbitclient.sh less reliant on writing to disk. Changes listed below. Not sure how good of an idea it is but I just wanted to throw it out there. At the moment I am thinking it would be a good change for the hobbit client. I have been running it this way for over an hour and I do not have any errors in the hobbitclient.log.

$ cat msg.txt
client XXXXXXX.sunos
[date]
Tue Jun 13 08:33:09 EDT 2006
[uname]
SunOS XXXXXXX 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-480R
[uptime]
   8:33am  up 417 day(s), 16:39,  3 users,  load average: 0.01, 0.01, 0.02
[who]
root       pts/1        Jun 13 06:21    (XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX)
XXXXXXXX        .       Oct 27 15:32
XXX        pts/17       Jun  8 10:47    (XXXXXXXXXXXXXXXXXXXX)
[df]
Filesystem            kbytes    used   avail capacity  Mounted on
swap                 8891880     160 8891720     1%    /var/run
[prtconf]
[memory]
  0 0 0 8895880 5280600 16 321 0 8  8  0  0  0  0  0  1  340 1626  833 1  1 98
[swap]
total: 1748648k bytes allocated + 89304k reserved = 1837952k used, 8896216k available
[netstat]
[ps]
[top]
last pid:  4004;  load averages:  0.01,  0.01,  0.02    08:33:10
124 processes:[vmstat]


$ diff hobbitclient.sh hobbitclient.sh.060613
27,31c27,29
< #echo "client $MACHINE.$BBOSTYPE"      >  $BBTMP/msg.txt
< #$BBHOME/bin/$BBOSSCRIPT >> $BBTMP/msg.txt
< #$BB $BBDISP "@" < $BBTMP/msg.txt
< echo "client $MACHINE.$BBOSTYPE
< `$BBHOME/bin/$BBOSSCRIPT`" | $BB $BBDISP "@"
---
echo "client $MACHINE.$BBOSTYPE"      >  $BBTMP/msg.txt
$BBHOME/bin/$BBOSSCRIPT >> $BBTMP/msg.txt
$BB $BBDISP "@" < $BBTMP/msg.txt
John