netstat unknown OS?
list Bruce Lysik
Hi, I've noticed these lines in my larrd-status.log: 2005-02-03 10:28:23 Host 'im20' reports netstat for an unknown OS for various hosts. These hosts just say 'larrd is accumulating netstat' on the netstat page. They're running Solaris x86. Results from uname -a: SunOS im20 5.8 Generic_108529-19 i86pc i386 i86pc What do I need to fix to get netstat graphs working for these hosts? They're running old clients, bb19c, do you think that's the problem? Thanks in advance. -- Bruce Z. Lysik <user-4e63a10f8934@xymon.invalid> Operations Engineer
list Henrik Størner
▸
On Thu, Feb 03, 2005 at 10:32:51AM -0800, Bruce Lysik wrote:
I've noticed these lines in my larrd-status.log: 2005-02-03 10:28:23 Host 'im20' reports netstat for an unknown OS for various hosts.
Please check what the BB client on these hosts report for the
BBOSTYPE setting - you can see if you log in to the host, then
BBHOME=/usr/local/bb
export BBHOME
. $BBHOME/etc/bbdef.sh
echo $BBOSTYPE
Hobbit's OS detection expects this to be "solaris". I suspect
they might report as "SunOS".
If that is the case, then it is easy to fix by adding SunOS to
the OS list in lib/misc.c.
Henrik
list Bruce Lysik
▸
Please check what the BB client on these hosts report for the
BBOSTYPE setting - you can see if you log in to the host, then
BBHOME=/usr/local/bb
export BBHOME
. $BBHOME/etc/bbdef.sh
echo $BBOSTYPE
Hobbit's OS detection expects this to be "solaris". I suspect
they might report as "SunOS".
If that is the case, then it is easy to fix by adding SunOS to
the OS list in lib/misc.c.Hrm. Actually: bash-2.03$ . /opt/bb/etc/bbdef.sh bash-2.03$ echo $BBOSTYPE solaris -- Bruce Z. Lysik <user-4e63a10f8934@xymon.invalid> Operations Engineer
list Henrik Størner
▸
In <user-ce390d251125@xymon.invalid> "Bruce Lysik" <user-4e63a10f8934@xymon.invalid> writes:
Please check what the BB client on these hosts report for the BBOSTYPE setting - you can see if you log in to the host, then
Hrm. Actually:
bash-2.03$ . /opt/bb/etc/bbdef.sh bash-2.03$ echo $BBOSTYPE solaris
Then I need to see the status log. You can get it with ~hobbit/server/bin/bb 127.0.0.1 "hobbitdlog HOSTNAME.netstat" Please dump it into a file, then send me that file directly. Please dont cut-n-paste it, since mailers tend to do strange things with long lines and such. Henrik
list Tom Georgoulias
▸
Bruce Lysik wrote:
Hobbit's OS detection expects this to be "solaris". I suspect they might report as "SunOS". If that is the case, then it is easy to fix by adding SunOS to the OS list in lib/misc.c.Hrm. Actually: bash-2.03$ . /opt/bb/etc/bbdef.sh bash-2.03$ echo $BBOSTYPE solaris
Have you redefined BBOSTYPE anywhere else? Tom
list Bruce Lysik
Argh! God, sorry. I figured it out. We happen to use an external script on those hosts, netstat.sh. This is obviously not returning the data that hobbit expects and wants to put into an rrd: -bash-2.05b$ bin/bb 127.0.0.1 "hobbitdlog im20.netstat" im20|netstat|green||1106677216|1107468504|1107470304|0|0|172.16.170.20|-1|| green Thu Feb 3 14:08:24 PST 2005 Internal connections to port 8007 are 0 Established connections to port 80 are 9 I don't suppose there's a way to tell hobbit not to try and graph this? -- Bruce Z. Lysik <user-4e63a10f8934@xymon.invalid> Operations Engineer
list Henrik Størner
▸
In <user-c95d064bc63c@xymon.invalid> "Bruce Lysik" <user-4e63a10f8934@xymon.invalid> writes:
Argh! God, sorry. I figured it out. We happen to use an external script on those hosts, netstat.sh. This is obviously not returning the data that hobbit expects and wants to put into an rrd:
-bash-2.05b$ bin/bb 127.0.0.1 "hobbitdlog im20.netstat" im20|netstat|green||1106677216|1107468504|1107470304|0|0|172.16.170.20|-1|| green Thu Feb 3 14:08:24 PST 2005
Internal connections to port 8007 are 0 Established connections to port 80 are 9
I don't suppose there's a way to tell hobbit not to try and graph this?
No, I'm afraid not.
Henrik