Xymon Mailing List Archive search

Small modification to hobbitclient-linux.sh

list Frédéric Mangeant
Fri, 02 Jun 2006 14:47:30 +0200
Message-Id: <user-be7bd58656ee@xymon.invalid>

Hi Henrik

hobbitclient-linux.sh uses "uname -a" to report information about the OS, which gives something like this :

Linux hades 2.6.14.2 #2 Wed Nov 16 10:14:26 CET 2005 i686 Pentium III (Katmai) GNU/Linux

IMHO it would be great to display less information about the running kernel and add information about the Linux distribution, something like that :

Linux 2.6.14.2 i686 - Gentoo Base System version 1.6.14
Linux 2.6.9-34.EL i686 - CentOS release 4.3 (Final)
Linux 2.4.20-28.7 i686  - Red Hat Linux release 7.3 (Valhalla)
Linux 2.4.26-vs1.28 i686 - Debian 3.1
Linux 2.4.18-64GB-SMP i686 - SuSE Linux 8.0 (i386)

If you like this idea, I've tested the attached "patch" (on top of latest snapshot) with RedHat / CentOS, Gentoo, Debian and SuSE.

Regards,

-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis
Attachments (1)