Xymon Mailing List Archive search

/proc file systeem on AIX

4 messages in this thread

list Stef Coene · Sun, 5 Feb 2006 21:37:55 +0100 ·
Hi,

The command df on AIX (I think 5.2 and higher) includes /proc.  And it's 
useless to monitor this virtual file system.   So I changed my df command to:

# The sed stuff is to make sure lines are not split into two.
df -Ik | grep -v "^/proc" | sed -e '/^[^        ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
}'

This is a bug in the hobbitclient-aix.sh script.


Stef
list Frédéric Mangeant · Mon, 06 Feb 2006 10:20:29 +0100 ·
quoted from Stef Coene
Stef Coene a écrit :
Hi,

The command df on AIX (I think 5.2 and higher) includes /proc.  And it's 
useless to monitor this virtual file system.   So I changed my df command to:

# The sed stuff is to make sure lines are not split into two.
df -Ik | grep -v "^/proc" | sed -e '/^[^        ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
}'

This is a bug in the hobbitclient-aix.sh script.
  
Hi

it should be even better to use this command :

df -Ik | grep "^/dev" | [...]


-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis
list Jeff Newman · Mon, 6 Feb 2006 10:35:35 -0600 ·
I had to add a "| grep -v :/" to not check NFS mounted filesystems.
quoted from Frédéric Mangeant

On 2/6/06, Frédéric Mangeant <user-b6ea1d850181@xymon.invalid> wrote:
Stef Coene a écrit :
Hi,

The command df on AIX (I think 5.2 and higher) includes /proc.  And it's
useless to monitor this virtual file system.   So I changed my df
command to:

# The sed stuff is to make sure lines are not split into two.
df -Ik | grep -v "^/proc" | sed -e '/^[^        ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
}'

This is a bug in the hobbitclient-aix.sh script.
Hi

it should be even better to use this command :

df -Ik | grep "^/dev" | [...]


--

Frédéric Mangeant

Steria EDC Sophia-Antipolis

list Stef Coene · Mon, 6 Feb 2006 19:34:25 +0100 ·
quoted from Frédéric Mangeant
On Monday 06 February 2006 10:20, Frédéric Mangeant wrote:
Stef Coene a écrit :
Hi,

The command df on AIX (I think 5.2 and higher) includes /proc.  And it's
useless to monitor this virtual file system.   So I changed my df command
to:

# The sed stuff is to make sure lines are not split into two.
df -Ik | grep -v "^/proc" | sed -e '/^[^        ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
}'

This is a bug in the hobbitclient-aix.sh script.
Hi

it should be even better to use this command :

df -Ik | grep "^/dev" | [...]
That also fixes the problem with nfs mounted file systems.
On the other hand, I'm not a fan of filtering like this.  I'm more a fan of 
"monitoring eveything and exclude what you don't want to monitor".


Stef