From: Buchan M. <bg...@st...> - 2011-02-16 07:54:28
|
On Wednesday, 16 February 2011 05:26:32 Roland Soderstrom wrote: > Hi, > > Can't get this working, it seems ok but wont match my bb-hosts entry > against my specs file. > Xymon 4.3.0.0beta2 on Solaris 10, devmon > > jupiter # /usr/local/devmon/devmon --help > Devmon v0.3.1-beta1, a device monitor for BigBrother/Hobbit > jupiter # grep -v '^#' devmon.cfg |grep -v '^$' > MULTINODE=NO > BBHOSTS=/usr/local/xymon/server/etc/bb-hosts > BBTAG=DEVMON > SNMPCIDS=mycommunity > NODENAME=HOSTNAME > PIDFILE=/var/run/devmon/devmon.pid > LOGFILE=/var/log/devmon.log > DBHOST=localhost > DBNAME=devmon > DBUSER=devmon > DBPASS=devmon > BBTYPE=hobbit > DISPSERV=localhost > DISPPORT=1985 > MSGSIZE=8096 > MSGSLEEP=10 > CYCLETIME=60 > DEADTIME=180 > CLEARTIME=180 > NUMFORKS=10 > MAXPOLLTIME=30 > SNMPTIMEOUT=2 > SNMPTRIES=5 > jupiter # find templates/ -ls > 416978 2 drwxr-xr-x 3 root root 3 Feb 16 13:10 > templates/ > 414263 2 drwxr-xr-x 2 root root 3 Feb 15 15:35 > templates/HP-DL360 > 414289 1 -rw-r--r-- 1 root root 117 Feb 16 13:18 > templates/HP-DL360/specs > jupiter # cat templates/HP-DL360/specs > vendor : HP > model : DL360 > snmpver : 2 > sysdesc : Linux ipndfw 2.4.21-21cpsmp #1 SMP Thu Sep 11 17:01:25 IDT > 2008 i686 This is not a future-proof solution. Your next kernel update will mess this up. A non-HP server running the same kernel would also match. Devices where the sysdesc is device specific do not have any real problems with matching templates. In this case, you may want to specify the model in the bb-hosts file, e.g.: 192.168.34.254 server001 # DEVMON:model(compaq;server) Regards, Buchan |