no dpkg in... errors in hobbitclient logs

smith.js.8 at pg.com smith.js.8 at pg.com
Wed Nov 23 16:35:57 CET 2005


Henrik,

In the default configuration for linux, using the latest 21-Nov-2005 snapshot,
the /var/log/hobbit/hobbitclient.log file fills up with this message:

hobbitclient.log:which: no dpkg in
(/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/hobbit/server/bin)

This can be eliminated by editing the hobbit/client/bin/hobbitclient-linux.sh
script and changing these two lines:

RPM=`which rpm`
DPKG=`which dpkg`

to this:

RPM=`which rpm 2>/dev/null`
DPKG=`which dpkg 2>/dev/null`

Not  a big thing, but I consider the messages pointless since the code deals
with success/failure appropriately. The same or similar approach should work in
the other client scripts as well.

--Scott




More information about the Xymon mailing list