Xymon Mailing List Archive search

AIX df command problem

5 messages in this thread

list Steve Holmes · Thu, 29 Jul 2010 15:19:13 -0400 ·
I am having a problem similar to one recently posted, but this is on an AIX
host and is caused (I think) by a problem in the way xymon does df on AIX.
The xymon version is 4.2.3 and the AIX OS version is 3.5 (I think, I'm a
Solaris Admin). Anyway, I can find no way to force the df on AIX to use
POSIX formatting AND to report only local file systems. Even if I could, I
don't think I can override what xymon uses for df since the comments in the
hobbitclient.cfg file say that the envariable definition is only there for
compatibility and it is not used.

The problem is that an NFS mount file system line in the df output is being
parsed wrong and the number in the usage column is being used for the
percent used (Available) so that is a huge number. Not only that, again
similar to the previous problem, the file system name is being picked up as
the contents of the last 3 fields in the output line, i.e. it is not
/mnt/tsmupdates (which is what it should be) but "3020485 50% /tsm/updates",
which, of course, prevents me from effectively ignoring that file system.
I've tried using

DISK %.*/mnt/.* IGNORE

and that doesn't work.

Does anyone have any suggestions? We have a big red page where we shouldn't
have.

Thanks,
Steve

-- 
The test of a democracy is not the magnificence of buildings or the speed of
automobiles or the efficiency of air transportation, but rather the care
given to the welfare of all the people. -Helen Adams Keller, lecturer and
author (1880-1968)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)
list Tim McCloskey · Thu, 29 Jul 2010 14:46:34 -0700 ·
Not sure I can be of much help with the issue you are seeing, but I offer the following just the same.

I'm running several instances of 4.2.0 with a mix of hosts.  None of the AIX hosts seem to have these troubles;  I don't get any nfs mounts showing up (I'm running 4.2.0).  On a host with nfs mounts the local df command (on the aix box) will of course show the mounts and the local disk but this data does not appear in the hobbit disk display.

Example from a client disk display in hobbit:
...
/dev/hd3          1048576     38880   1009696    4% /tmp
...
  
As for ignore syntax, this is what I am using and it works fine.  Keep in mind the '/' is not a pattern enclosure, but an actual / as in /root /foo /splat.

        DISK    %^/somefilesys.*      IGNORE


You mention, "/mnt/tsmupdates (which is what it should be) but "3020485 50% /tsm/updates".   Is is this host://mnt/tsmupdates --> local mount point /tsm/updates?
What is the df output on the client and what is the actual output of the display in hobbit?  


Regards,

Tim
quoted from Steve Holmes


From: user-5425c7b245e1@xymon.invalid [user-5425c7b245e1@xymon.invalid] On Behalf Of Steve Holmes [user-ec1bf77b1b44@xymon.invalid]
Sent: Thursday, July 29, 2010 12:19 PM
To: xymon at xymon.com
Subject: [xymon] AIX df command problem

I am having a problem similar to one recently posted, but this is on an AIX host and is caused (I think) by a problem in the way xymon does df on AIX.
The xymon version is 4.2.3 and the AIX OS version is 3.5 (I think, I'm a Solaris Admin). Anyway, I can find no way to force the df on AIX to use POSIX formatting AND to report only local file systems. Even if I could, I don't think I can override what xymon uses for df since the comments in the hobbitclient.cfg file say that the envariable definition is only there for compatibility and it is not used.

The problem is that an NFS mount file system line in the df output is being parsed wrong and the number in the usage column is being used for the percent used (Available) so that is a huge number. Not only that, again similar to the previous problem, the file system name is being picked up as the contents of the last 3 fields in the output line, i.e. it is not /mnt/tsmupdates (which is what it should be) but "3020485 50% /tsm/updates", which, of course, prevents me from effectively ignoring that file system. I've tried using

DISK %.*/mnt/.* IGNORE

and that doesn't work.

Does anyone have any suggestions? We have a big red page where we shouldn't have.

Thanks,
Steve

--
The test of a democracy is not the magnificence of buildings or the speed of automobiles or the efficiency of air transportation, but rather the care given to the welfare of all the people. -Helen Adams Keller, lecturer and author (1880-1968)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948)
list Tim McCloskey · Thu, 29 Jul 2010 15:07:35 -0700 ·
Should have mentioned, on the client under the client/bin dir are various hobbitclient-os.sh scripts.  Maybe you can have a look on your AIX client for some clues....

This is from a 4.2.0 client.

client/bin gegrep -3 df hobbitclient-aix.sh 
uptime
echo "[who]"
who
echo "[df]"
# The sed stuff is to make sure lines are not split into two.
df -Ik | sed -e '/^[^   ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
quoted from Tim McCloskey
}'


Regards, 

Tim


From: user-5425c7b245e1@xymon.invalid [user-5425c7b245e1@xymon.invalid] On Behalf Of Steve Holmes [user-ec1bf77b1b44@xymon.invalid]
Sent: Thursday, July 29, 2010 12:19 PM
To: xymon at xymon.com
Subject: [xymon] AIX df command problem

I am having a problem similar to one recently posted, but this is on an AIX host and is caused (I think) by a problem in the way xymon does df on AIX.
The xymon version is 4.2.3 and the AIX OS version is 3.5 (I think, I'm a Solaris Admin). Anyway, I can find no way to force the df on AIX to use POSIX formatting AND to report only local file systems. Even if I could, I don't think I can override what xymon uses for df since the comments in the hobbitclient.cfg file say that the envariable definition is only there for compatibility and it is not used.

The problem is that an NFS mount file system line in the df output is being parsed wrong and the number in the usage column is being used for the percent used (Available) so that is a huge number. Not only that, again similar to the previous problem, the file system name is being picked up as the contents of the last 3 fields in the output line, i.e. it is not /mnt/tsmupdates (which is what it should be) but "3020485 50% /tsm/updates", which, of course, prevents me from effectively ignoring that file system. I've tried using

DISK %.*/mnt/.* IGNORE

and that doesn't work.

Does anyone have any suggestions? We have a big red page where we shouldn't have.

Thanks,
Steve

--
The test of a democracy is not the magnificence of buildings or the speed of automobiles or the efficiency of air transportation, but rather the care given to the welfare of all the people. -Helen Adams Keller, lecturer and author (1880-1968)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948)
list Steve Holmes · Thu, 29 Jul 2010 22:03:53 -0400 ·
That was the ticket which we found. That plus /use/freeware/bin/df which does both local file systems and POSIX output format. Thanks
Steve

Wherever you go, there you are.  
quoted from Tim McCloskey
On Jul 29, 2010, at 6:07 PM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
Should have mentioned, on the client under the client/bin dir are various hobbitclient-os.sh scripts.  Maybe you can have a look on your AIX client for some clues....

This is from a 4.2.0 client.

client/bin gegrep -3 df hobbitclient-aix.sh uptime
echo "[who]"
who
echo "[df]"
# The sed stuff is to make sure lines are not split into two.
df -Ik | sed -e '/^[^   ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
}'


Regards, 
Tim


From: user-5425c7b245e1@xymon.invalid [user-5425c7b245e1@xymon.invalid] On Behalf Of Steve Holmes [user-ec1bf77b1b44@xymon.invalid]
Sent: Thursday, July 29, 2010 12:19 PM
To: xymon at xymon.com
Subject: [xymon] AIX df command problem

I am having a problem similar to one recently posted, but this is on an AIX host and is caused (I think) by a problem in the way xymon does df on AIX.
The xymon version is 4.2.3 and the AIX OS version is 3.5 (I think, I'm a Solaris Admin). Anyway, I can find no way to force the df on AIX to use POSIX formatting AND to report only local file systems. Even if I could, I don't think I can override what xymon uses for df since the comments in the hobbitclient.cfg file say that the envariable definition is only there for compatibility and it is not used.

The problem is that an NFS mount file system line in the df output is being parsed wrong and the number in the usage column is being used for the percent used (Available) so that is a huge number. Not only that, again similar to the previous problem, the file system name is being picked up as the contents of the last 3 fields in the output line, i.e. it is not /mnt/tsmupdates (which is what it should be) but "3020485 50% /tsm/updates", which, of course, prevents me from effectively ignoring that file system. I've tried using

DISK %.*/mnt/.* IGNORE

and that doesn't work.

Does anyone have any suggestions? We have a big red page where we shouldn't have.

Thanks,
Steve

--
The test of a democracy is not the magnificence of buildings or the speed of automobiles or the efficiency of air transportation, but rather the care given to the welfare of all the people. -Helen Adams Keller, lecturer and author (1880-1968)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948)
list Steve Holmes · Tue, 13 Sep 2011 14:45:17 -0400 ·
[Just in case this is useful to someone...]

Over a year ago I posted a question about getting Xymon 4.2.3 and AIX df to
play nice together. I solved the problem by using a freeware version of df
that has an option for Posix formatted output in the client script (see
included messages).

I just discovered that we were not getting alerts for full file systems on
AIX servers. The disk column wasn't even turning red or yellow. After
digging into it I found that the hobbitd/client/aix.c module in the source
needed to be changed to reflect the change in the headers produced by this
version of df. After changing it and re-installing we were suddenly greeted
by a multitude of almost full file systems on our AIX servers.

Steve
quoted from Steve Holmes

On Thu, Jul 29, 2010 at 10:03 PM, Steve Holmes <user-5425c7b245e1@xymon.invalid> wrote:
That was the ticket which we found. That plus /use/freeware/bin/df which
does both local file systems and POSIX output format.
Thanks
Steve

Wherever you go, there you are.

On Jul 29, 2010, at 6:07 PM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
Should have mentioned, on the client under the client/bin dir are various
hobbitclient-os.sh scripts.  Maybe you can have a look on your AIX client
for some clues....

This is from a 4.2.0 client.

client/bin gegrep -3 df hobbitclient-aix.sh
uptime
echo "[who]"
who
echo "[df]"
# The sed stuff is to make sure lines are not split into two.
df -Ik | sed -e '/^[^   ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
}'


Regards,

Tim


From: user-5425c7b245e1@xymon.invalid [user-5425c7b245e1@xymon.invalid] On Behalf Of Steve
Holmes [user-ec1bf77b1b44@xymon.invalid]
Sent: Thursday, July 29, 2010 12:19 PM
To: xymon at xymon.com
Subject: [xymon] AIX df command problem

I am having a problem similar to one recently posted, but this is on an
AIX host and is caused (I think) by a problem in the way xymon does df on
AIX.
The xymon version is 4.2.3 and the AIX OS version is 3.5 (I think, I'm a
Solaris Admin). Anyway, I can find no way to force the df on AIX to use
POSIX formatting AND to report only local file systems. Even if I could, I
don't think I can override what xymon uses for df since the comments in the
hobbitclient.cfg file say that the envariable definition is only there for
compatibility and it is not used.
The problem is that an NFS mount file system line in the df output is
being parsed wrong and the number in the usage column is being used for the
percent used (Available) so that is a huge number. Not only that, again
similar to the previous problem, the file system name is being picked up as
the contents of the last 3 fields in the output line, i.e. it is not
/mnt/tsmupdates (which is what it should be) but "3020485 50% /tsm/updates",
which, of course, prevents me from effectively ignoring that file system.
I've tried using
DISK %.*/mnt/.* IGNORE

and that doesn't work.

Does anyone have any suggestions? We have a big red page where we
shouldn't have.

Thanks,
Steve