Xymon Mailing List Archive search

unable to monitor nfs with BB extension script

4 messages in this thread

list Bill Wagner · Fri, 21 Aug 2009 10:08:31 -0500 ·
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
list Loris Serena · Wed, 26 Aug 2009 09:46:00 +0100 ·
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 <user-5db7d172e22d@xymon.invalid>
quoted from Bill Wagner
 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

list Bill Wagner · Wed, 26 Aug 2009 14:45:30 -0500 ·
Sorry for the delay in checking back, was off on other tasks for a 
while.  I resolved the "nfs" script in a slightly different way.  I 
noticed that $DF was being changed and $BBOSTYPE was not set the same 
when the BB extension script ran.  So I changed the xymon 
bb-nfs-client.sh to define and use DFK="/bin/df -k" .

On a different issue, this one relates to the "meta" extension script.  
I have it working and displaying correct results within the web page, 
but it curiously writes "metahs: ftp04: no hotspare pools found"  to the 
meta log each time it executes.  Any ideas why?

Bill
quoted from Loris Serena

-------- Original Message --------
Subject: Re: [hobbit] unable to monitor nfs with BB extension script
From: Loris Serena <user-718e3cd16d56@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Date: 8/26/2009 3:46 AM
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 <user-5db7d172e22d@xymon.invalid 

    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

list Bill Wagner · Tue, 01 Sep 2009 10:50:48 -0500 ·
I resolved the "meta" issue with a simple change to the script to 
redirect STDERR to STDOUT when doing /usr/sbin/metahs -i.
quoted from Bill Wagner

-------- Original Message --------
Subject: Re: [hobbit] unable to monitor nfs with BB extension script
From: Bill Wagner <user-5db7d172e22d@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Date: 8/26/2009 2:45 PM
Sorry for the delay in checking back, was off on other tasks for a 
while.  I resolved the "nfs" script in a slightly different way.  I 
noticed that $DF was being changed and $BBOSTYPE was not set the same 
when the BB extension script ran.  So I changed the xymon 
bb-nfs-client.sh to define and use DFK="/bin/df -k" .

On a different issue, this one relates to the "meta" extension 
script.  I have it working and displaying correct results within the 
web page, but it curiously writes "metahs: ftp04: no hotspare pools 
found"  to the meta log each time it executes.  Any ideas why?

Bill

-------- Original Message --------
Subject: Re: [hobbit] unable to monitor nfs with BB extension script
From: Loris Serena <user-718e3cd16d56@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Date: 8/26/2009 3:46 AM
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 <user-5db7d172e22d@xymon.invalid 

    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