[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] unable to monitor nfs with BB extension script
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] unable to monitor nfs with BB extension script
- From: Loris Serena <lserena (at) gmail.com>
- Date: Wed, 26 Aug 2009 09:46:00 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xOaxswl4U8IgUmaJz8LHH9FKPTM+QpczAo1mCkRntPw=; b=svPKozs5755Yl+iyR/fpgAYsqkRJ8BKU8RfNyowR44clwhW5Y3pXMkt99Sb6IzzKvL K+U42M54G0s/4KymGbg46ZHLnkpdCYZ9mgQomSWijGxL6RqEScdNDV2HumFvci4V25i5 Xie2ipgCDsq3DXZsedHKdrlBHh094qH/CqfkA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=PhqNl/KzJ0PRJbseaGzvnef43CbLKbUyZ+R/LxeQ+77uD7xjnFdKD/iiJenuWV1tgA SzLJimm62yqdzdv1wC47sHFiPmH4jnDhSoRz4AKysLrVeYf2WIvzuXwKPEHTpULysxjl S4k+TQvE/0kc+V27EE8ckhGmMWhBdrqe0WBdA=
- References: <4A8EB86F.5030201 (at) ipacc.com>
Bill,
I had exactly the same issue.
Defining the following variables within the bb-nfs-client.sh script itself
is what worked for me.
PING="/usr/sbin/ping"
DFSORT="4"
DFEXCLUDE="cdrom"
DFWARN="90"
DFPANIC="95"
MACHINE=`uname -n`
Hope this helps,
Loris
2009/8/21 Bill Wagner <william.wagner (at) ipacc.com>
> My xymon server is Solaris 10 running Xymon 4.2.3. I am in the process of
> migrating from BB to Xymon. I have a solaris 10 sparc client which is
> running both BB and Xymon clients. To prep Xymon for BB extension scripts,
> I first concatenated bbsys.local onto hobbitclient.cfg.
>
> Next I installed the BB extension script *bb-nfs-client.sh*. It
> erroneously reports "No NFS filesystems currently mounted on ftp01" under
> the Xymon client. The same script works correctly under the BB client.
>
> I ran the script in debug mode. It correctly populates PINGEDHOSTS and
> NFSHOST. However it ends as:
>
> + /usr/xpg4/bin/egrep -vi (No such file|not a block device)
> /export/home/xymon/client/tmp/NFSOUT.8354.err
> STj
> + /usr/bin/mv -f /export/home/xymon/client/tmp/NFSOUT.8354.err~
> /export/home/xymon/client/tmp/NFSOUT.8354.err
> + [ -s /export/home/xymon/client/tmp/NFSOUT.8354.err ]
> + [ -s /export/home/xymon/client/tmp/NFSERR.8354 ]
> + [ green = green ]
> STATUS=status <xxx>.nfs green Fri Aug 21 09:59:09 CDT 2009 - NFS mounts on
> ftp01 OK
> + [ -s /export/home/xymon/client/tmp/NFSOUT.8354 ]
> + [ = -a = ]
> LINE=No NFS filesystems currently mounted on <xxx>
> + /export/home/xymon/client/bin/bb 10.80.6.50 status <xxx>.nfs green Fri
> Aug 21 09:59:09 CDT 2009 - NFS mounts on ftp01 OK
>
> No NFS filesystems currently mounted on <xxx>
>
>
> What else do I need to do to get this script working properly under Xymon?
>
> thanks
>
>