xymon

Check-in [d1a600746a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:AIX inode check: Missed header change when switching to SYSV df command git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.10@7159 44351d6e-118b-4698-b696-ce33095ecaa4
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | origin/4.3.10
Files: files | file ages | folders
SHA3-256: d1a600746a99d99b1c7d6ccac457772352c0f598ce42af7d7dcc3d97fe378fae
User & Date: storner@users.sf.net 2012-08-02 20:46:47
Context
2012-08-03
09:50
Version number update for 4.3.10 git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.10@7161 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: d7aad87ef2 user: storner@users.sf.net tags: trunk, origin/4.3.10
2012-08-02
20:46
AIX inode check: Missed header change when switching to SYSV df command git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.10@7159 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: d1a600746a user: storner@users.sf.net tags: trunk, origin/4.3.10
20:36
inode check for AIX, based on IBM documentation of AIX df command at http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds2%2Fdf.htm git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.10@7157 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 05a28d189a user: storner@users.sf.net tags: trunk, origin/4.3.10
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to client/xymonclient-aix.sh.

24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
df -Ik | sed -e '/^[^ 	][^ 	]*$/{
N
s/[ 	]*\n[ 	]*/ /
}'

echo "[inode]"
/usr/sysv/bin/df -i | sed -e 's!Mount Dir!Mount_Dir!' | awk '
NR<2 { printf "%-20s %10s %10s %10s %10s %s\n", $2, $5, $3, $4, $6, $1 }
NR>=2 && $5>0 { printf "%-20s %10d %10d %10d %10s %s\n", $2, $5, $3, $4, $6, $1}
'

echo "[mount]"
mount
echo "[realmem]"
lsattr -El sys0 -a realmem







|







24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
df -Ik | sed -e '/^[^ 	][^ 	]*$/{
N
s/[ 	]*\n[ 	]*/ /
}'

echo "[inode]"
/usr/sysv/bin/df -i | sed -e 's!Mount Dir!Mount_Dir!' | awk '
NR<2 { printf "%-20s %10s %10s %10s %10s %s\n", $2, $5, $3, $4, $6, "Mounted on" }
NR>=2 && $5>0 { printf "%-20s %10d %10d %10d %10s %s\n", $2, $5, $3, $4, $6, $1}
'

echo "[mount]"
mount
echo "[realmem]"
lsattr -El sys0 -a realmem

Changes to xymond/client/aix.c.

57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
	realmemstr = getdata("realmem");
	freememstr = getdata("freemem");
	swapmemstr = getdata("swap");

	unix_cpu_report(hostname, clienttype, os, hinfo, fromline, timestr, uptimestr, clockstr, msgcachestr, 
			whostr, 0, psstr, 0, topstr);
	unix_disk_report(hostname, clienttype, os, hinfo, fromline, timestr, "Free", "%Used", "Mounted", dfstr);
	unix_inode_report(hostname, clienttype, os, hinfo, fromline, timestr, "Ifree", "%Iused", "Mounted", inodestr);
	unix_procs_report(hostname, clienttype, os, hinfo, fromline, timestr, "COMMAND", "CMD", psstr);
	unix_ports_report(hostname, clienttype, os, hinfo, fromline, timestr, 3, 4, 5, portsstr);

	msgs_report(hostname, clienttype, os, hinfo, fromline, timestr, msgsstr);
	file_report(hostname, clienttype, os, hinfo, fromline, timestr);
	linecount_report(hostname, clienttype, os, hinfo, fromline, timestr);








|







57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
	realmemstr = getdata("realmem");
	freememstr = getdata("freemem");
	swapmemstr = getdata("swap");

	unix_cpu_report(hostname, clienttype, os, hinfo, fromline, timestr, uptimestr, clockstr, msgcachestr, 
			whostr, 0, psstr, 0, topstr);
	unix_disk_report(hostname, clienttype, os, hinfo, fromline, timestr, "Free", "%Used", "Mounted", dfstr);
	unix_inode_report(hostname, clienttype, os, hinfo, fromline, timestr, "avail", "%iused", "Mounted", inodestr);
	unix_procs_report(hostname, clienttype, os, hinfo, fromline, timestr, "COMMAND", "CMD", psstr);
	unix_ports_report(hostname, clienttype, os, hinfo, fromline, timestr, 3, 4, 5, portsstr);

	msgs_report(hostname, clienttype, os, hinfo, fromline, timestr, msgsstr);
	file_report(hostname, clienttype, os, hinfo, fromline, timestr);
	linecount_report(hostname, clienttype, os, hinfo, fromline, timestr);