Xymon Mailing List Archive search

NFS mounts in disk section

6 messages in this thread

list Paulo Estrela · Fri, 11 Jun 2010 10:40:21 -0300 ·
Hi,

I'm using Xymon 4.2.3 to monitor some UNIX/Linux servers. Serveral of
them mounts NFS exports via automount from a NetApp Filer that I don't
have access. Is it possible to show these mounts like partitions in
disk section? Now I have this:

Filesystem            kbytes    used   avail capacity  Mounted on
sharefs                    0       0       0     0%    /etc/dfs/sharetab
swap                 35311416    1616 35309800     1%    /etc/svc/volatile
swap                 35316104    6320 35309784     1%    /tmp
/dev/md/dsk/d10      8077589 1054407 6942407    14%    /
/dev/md/dsk/d30      13018467 3735788 9152495    29%    /usr
/dev/md/dsk/d40      10091716 1484894 8505905    15%    /var
/dev/md/dsk/d50      17146994 2438027 14537498    15%    /opt
/dev/md/dsk/d60      59179332 2325562 56261977     4%    /free

I would like to include NFS in this list:

Filesystem             size   used  avail capacity  Mounted on
swap                    34G   6.2M    34G     1%    /tmp
swap                    34G    48K    34G     1%    /var/run
/dev/md/dsk/d10        7.7G   1.0G   6.6G    14%    /
swap                    34G   1.6M    34G     1%    /etc/svc/volatile
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/dev/md/dsk/d30         12G   3.6G   8.7G    29%    /usr
/dev/md/dsk/d40        9.6G   1.4G   8.1G    15%    /var
/dev/md/dsk/d50         16G   2.3G    14G    15%    /opt
/dev/md/dsk/d60         56G   2.2G    54G     4%    /free
cristal:/vol/vfbd1/ep_dba_pdt_pangea/oracle      180G    62G   118G
35%    /opt/oracle
cristal:/vol/vfbd2/ep_dba_instance                       540G   289G
251G    54%    /oracle/instance
cristal:/vol/vfbd5/ep_dba_instance_mirror          180G    56G   124G
  32%    /oracle_mirror/instance
cristal:/vol/vfbd1/ep_dba_pdt_hostname/cobol      180G    62G   118G
 35%    /opt/microfocus
cristal:/vol/vfbd4/ep_dba_instance2                       450G   208G
 242G    47%    /oracle/instance2
cristal:/vol/vfbd3/ep_dba_instance2_mirror          405G    86G   319G
   22%    /oracle_mirror/instance2
cristal:/vol/vfbd1/ep_dba_pdt_hostname/oem        180G    62G   118G
 35%    /opt/oem
cristal:/vol/vfbd1/ep_dba_pdt_hostname/bmc        180G    62G   118G
 35%    /opt/bmc


Thanks, and congratulations for this very good software!

Paulo Estrela
http://tabugado.com
list Kevin Kelly · Fri, 11 Jun 2010 14:52:03 -0500 ·
You need to edit hobbitclient-sunos.sh

The following line:
FSTYPES=`/bin/df -n -l|awk '{print $3}'|egrep -v "^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs"|sort|uniq`

Remove nfs
quoted from Paulo Estrela


-----Original Message-----
From: Paulo Estrela [mailto:user-1a357e9f6e54@xymon.invalid] 
Sent: Friday, June 11, 2010 8:40 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] NFS mounts in disk section

Hi,

I'm using Xymon 4.2.3 to monitor some UNIX/Linux servers. Serveral of
them mounts NFS exports via automount from a NetApp Filer that I don't
have access. Is it possible to show these mounts like partitions in
disk section? Now I have this:

Filesystem            kbytes    used   avail capacity  Mounted on
sharefs                    0       0       0     0%    /etc/dfs/sharetab
swap                 35311416    1616 35309800     1%    /etc/svc/volatile
swap                 35316104    6320 35309784     1%    /tmp
/dev/md/dsk/d10      8077589 1054407 6942407    14%    /
/dev/md/dsk/d30      13018467 3735788 9152495    29%    /usr
/dev/md/dsk/d40      10091716 1484894 8505905    15%    /var
/dev/md/dsk/d50      17146994 2438027 14537498    15%    /opt
/dev/md/dsk/d60      59179332 2325562 56261977     4%    /free

I would like to include NFS in this list:

Filesystem             size   used  avail capacity  Mounted on
swap                    34G   6.2M    34G     1%    /tmp
swap                    34G    48K    34G     1%    /var/run
/dev/md/dsk/d10        7.7G   1.0G   6.6G    14%    /
swap                    34G   1.6M    34G     1%    /etc/svc/volatile
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/dev/md/dsk/d30         12G   3.6G   8.7G    29%    /usr
/dev/md/dsk/d40        9.6G   1.4G   8.1G    15%    /var
/dev/md/dsk/d50         16G   2.3G    14G    15%    /opt
/dev/md/dsk/d60         56G   2.2G    54G     4%    /free
cristal:/vol/vfbd1/ep_dba_pdt_pangea/oracle      180G    62G   118G
35%    /opt/oracle
cristal:/vol/vfbd2/ep_dba_instance                       540G   289G
251G    54%    /oracle/instance
cristal:/vol/vfbd5/ep_dba_instance_mirror          180G    56G   124G
  32%    /oracle_mirror/instance
cristal:/vol/vfbd1/ep_dba_pdt_hostname/cobol      180G    62G   118G
 35%    /opt/microfocus
cristal:/vol/vfbd4/ep_dba_instance2                       450G   208G
 242G    47%    /oracle/instance2
cristal:/vol/vfbd3/ep_dba_instance2_mirror          405G    86G   319G
   22%    /oracle_mirror/instance2
cristal:/vol/vfbd1/ep_dba_pdt_hostname/oem        180G    62G   118G
 35%    /opt/oem
cristal:/vol/vfbd1/ep_dba_pdt_hostname/bmc        180G    62G   118G
 35%    /opt/bmc


Thanks, and congratulations for this very good software!

Paulo Estrela
http://tabugado.com


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Wiskbroom · Mon, 14 Jun 2010 09:35:17 -0400 ·
quoted from Kevin Kelly
You need to edit hobbitclient-sunos.sh

The following line:
FSTYPES=`/bin/df -n -l|awk '{print $3}'|egrep -v "^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs"|sort|uniq`

Remove nfs

df when using "-l" should never show NFS, this must be something else.
quoted from Paulo Estrela
-----Original Message-----
From: Paulo Estrela [mailto:user-1a357e9f6e54@xymon.invalid]
Sent: Friday, June 11, 2010 8:40 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] NFS mounts in disk section

Hi,

I'm using Xymon 4.2.3 to monitor some UNIX/Linux servers. Serveral of
them mounts NFS exports via automount from a NetApp Filer that I don't
have access. Is it possible to show these mounts like partitions in
disk section? Now I have this:
list Xymon User in Richmond · Mon, 14 Jun 2010 11:34:21 -0400 ·
quoted from Wiskbroom
On Mon, June 14, 2010 09:35, user-ddebaeecde97@xymon.invalid wrote:
You need to edit hobbitclient-sunos.sh

The following line:
FSTYPES=`/bin/df -n -l|awk '{print $3}'|egrep -v
"^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs"|sort|uniq`

Remove nfs

df when using "-l" should never show NFS, this must be something else.
-----Original Message-----
From: Paulo Estrela [mailto:user-1a357e9f6e54@xymon.invalid]
Sent: Friday, June 11, 2010 8:40 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] NFS mounts in disk section

Hi,

I'm using Xymon 4.2.3 to monitor some UNIX/Linux servers. Serveral of
them mounts NFS exports via automount from a NetApp Filer that I don't
have access. Is it possible to show these mounts like partitions in
disk section? Now I have this:
?? I don't see anything in the OP indicating that the issue is with Solaris.

The disk check is one of the murkier, dirtier pieces of Xymon/Hobbit. 
Although hobbitclient.cfg has variables for DF and DFCMD, it also has
(accurate) comments that they are not used anywhere.  You do have to hack
the OS specific client script to alter the df behavior.  For Solaris, you
need to edit the hobbitclient-sunos.sh line noted above and remove both
the "-l" and the superfluous "nfs".  For Linux, you need to edit
hobbitclient-linux.sh and change the "df -Pl" to "df -P", at least in the
version I'm running.
list Paulo Estrela · Mon, 14 Jun 2010 13:34:01 -0300 ·
I forgot to mention. It is a solaris 10 sparc box (v490).

Até mais,

Paulo Estrela
http://tabugado.com


On Mon, Jun 14, 2010 at 12:34 PM, Xymon User in Richmond
quoted from Xymon User in Richmond
<user-24d6f8323faa@xymon.invalid> wrote:
On Mon, June 14, 2010 09:35, user-ddebaeecde97@xymon.invalid wrote:
You need to edit hobbitclient-sunos.sh

The following line:
FSTYPES=`/bin/df -n -l|awk '{print $3}'|egrep -v
"^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs"|sort|uniq`

Remove nfs

df when using "-l" should never show NFS, this must be something else.
-----Original Message-----
From: Paulo Estrela [mailto:user-1a357e9f6e54@xymon.invalid]
Sent: Friday, June 11, 2010 8:40 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] NFS mounts in disk section

Hi,

I'm using Xymon 4.2.3 to monitor some UNIX/Linux servers. Serveral of
them mounts NFS exports via automount from a NetApp Filer that I don't
have access. Is it possible to show these mounts like partitions in
disk section? Now I have this:
?? I don't see anything in the OP indicating that the issue is with Solaris.

The disk check is one of the murkier, dirtier pieces of Xymon/Hobbit.
Although hobbitclient.cfg has variables for DF and DFCMD, it also has
(accurate) comments that they are not used anywhere.  You do have to hack
the OS specific client script to alter the df behavior.  For Solaris, you
need to edit the hobbitclient-sunos.sh line noted above and remove both
the "-l" and the superfluous "nfs".  For Linux, you need to edit
hobbitclient-linux.sh and change the "df -Pl" to "df -P", at least in the
version I'm running.

list Paulo Estrela · Mon, 14 Jun 2010 13:47:36 -0300 ·
Now is working fine! Thanks everybody!
signature

Paulo Estrela
http://tabugado.com


On Mon, Jun 14, 2010 at 12:34 PM, Xymon User in Richmond

quoted from Paulo Estrela
<user-24d6f8323faa@xymon.invalid> wrote:
On Mon, June 14, 2010 09:35, user-ddebaeecde97@xymon.invalid wrote:
You need to edit hobbitclient-sunos.sh

The following line:
FSTYPES=`/bin/df -n -l|awk '{print $3}'|egrep -v
"^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs"|sort|uniq`

Remove nfs

df when using "-l" should never show NFS, this must be something else.
-----Original Message-----
From: Paulo Estrela [mailto:user-1a357e9f6e54@xymon.invalid]
Sent: Friday, June 11, 2010 8:40 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] NFS mounts in disk section

Hi,

I'm using Xymon 4.2.3 to monitor some UNIX/Linux servers. Serveral of
them mounts NFS exports via automount from a NetApp Filer that I don't
have access. Is it possible to show these mounts like partitions in
disk section? Now I have this:
?? I don't see anything in the OP indicating that the issue is with Solaris.

The disk check is one of the murkier, dirtier pieces of Xymon/Hobbit.
Although hobbitclient.cfg has variables for DF and DFCMD, it also has
(accurate) comments that they are not used anywhere.  You do have to hack
the OS specific client script to alter the df behavior.  For Solaris, you
need to edit the hobbitclient-sunos.sh line noted above and remove both
the "-l" and the superfluous "nfs".  For Linux, you need to edit
hobbitclient-linux.sh and change the "df -Pl" to "df -P", at least in the
version I'm running.