xymon

Check-in [23264531c1]
Login

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

Overview
Comment:Xymon client / backend: inode check for Mac OSX git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.10@7151 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: 23264531c1a5542237d81739e830945eea6c599a61abeeb4e798ff68fe41af79
User & Date: storner@users.sf.net 2012-08-02 09:09:12
Context
2012-08-02
10:59
OSX client: TOP update from Francois Claire git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.10@7153 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 0602f14233 user: storner@users.sf.net tags: trunk, origin/4.3.10
09:09
Xymon client / backend: inode check for Mac OSX git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.10@7151 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 23264531c1 user: storner@users.sf.net tags: trunk, origin/4.3.10
2012-08-01
16:30
Install docs: Add information about Mac OSX via Mac Ports git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.10@7150 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 57e2253da9 user: storner@users.sf.net tags: trunk, origin/4.3.10
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to client/xymonclient-darwin.sh.

16
17
18
19
20
21
22


23
24
25







26
27
28











29
30
31
32
33
34
35
date
echo "[uname]"
uname -a
echo "[uptime]"
uptime
echo "[who]"
who


echo "[df]"
# The sed stuff is to make sure lines are not split into two.
df -H -t nonfs,nullfs,cd9660,procfs,volfs,devfs,fdesc | sed -e '/^[^ 	][^ 	]*$/{







N
s/[ 	]*\n[ 	]*/ /
}'











echo "[mount]"
mount
echo "[meminfo]"
vm_stat
echo "[ifconfig]"
ifconfig -a
echo "[route]"







>
>

<
<
>
>
>
>
>
>
>
|
<
<
>
>
>
>
>
>
>
>
>
>
>







16
17
18
19
20
21
22
23
24
25


26
27
28
29
30
31
32
33


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
date
echo "[uname]"
uname -a
echo "[uptime]"
uptime
echo "[who]"
who

FILESYSTEMS=`mount | grep -v nobrowse | awk '{print $3}'`
echo "[df]"


set $FILESYSTEMS
(df -H $1; shift
 while test $# -gt 0
 do
   df -H $1 | tail -1
   shift
 done) | column -t -s " " | sed -e 's!Mounted *on!Mounted on!'



echo "[inode]"
set $FILESYSTEMS
(df -i $1; shift
 while test $# -gt 0
 do
   df -H $1 | tail -1
   shift
 done) | awk '
NR<2{printf "%-20s %10s %10s %10s %10s %s\n", $1, "itotal", $6, $7, $8, $9} 
(NR>=2 && $6>0) {printf "%-20s %10d %10d %10d %10s %s\n", $1, $6+$7, $6, $7, $8, $9}'

echo "[mount]"
mount
echo "[meminfo]"
vm_stat
echo "[ifconfig]"
ifconfig -a
echo "[route]"

Changes to xymond/analysis.cfg.5.

96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
"filesystem" is the mount-point where the filesystem is mounted, e.g.
"/usr" or "/home". A filesystem-name that begins with "%" is interpreted
as a Perl-compatible regular expression; e.g. "%^/oracle.*/" will match
any filesystem whose mountpoint begins with "/oracle".

"INODE" works identical to "DISK", but uses the count of i-nodes in
the filesystem instead of the amount of disk space. NB: inode monitoring
currently (rel. 4.3.10) only works for Linux, Solaris, FreeBSD and OpenBSD
clients.
.sp
Defaults DISK: warnlevel=90%, paniclevel=95%
.BR
Defaults INODE: warnlevel=70%, paniclevel=90%


.SH MEMORY STATUS COLUMN SETTINGS







|
|







96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
"filesystem" is the mount-point where the filesystem is mounted, e.g.
"/usr" or "/home". A filesystem-name that begins with "%" is interpreted
as a Perl-compatible regular expression; e.g. "%^/oracle.*/" will match
any filesystem whose mountpoint begins with "/oracle".

"INODE" works identical to "DISK", but uses the count of i-nodes in
the filesystem instead of the amount of disk space. NB: inode monitoring
currently (rel. 4.3.10) only works for Linux, Solaris, FreeBSD, OpenBSD
and Mac OSX clients.
.sp
Defaults DISK: warnlevel=90%, paniclevel=95%
.BR
Defaults INODE: warnlevel=70%, paniclevel=90%


.SH MEMORY STATUS COLUMN SETTINGS

Changes to xymond/client/darwin.c.

20
21
22
23
24
25
26

27
28
29
30
31
32
33
..
40
41
42
43
44
45
46

47
48
49
50
51
52
53
54
55

56
57
58
59
60
61
62
	char *uptimestr;
	char *clockstr;
	char *msgcachestr;
	char *whostr;
	char *psstr;
	char *topstr;
	char *dfstr;

	char *meminfostr;
	char *msgsstr;
	char *netstatstr;
	char *ifstatstr;
	char *portsstr;

	char fromline[1024];
................................................................................
	uptimestr = getdata("uptime");
	clockstr = getdata("clock");
	msgcachestr = getdata("msgcache");
	whostr = getdata("who");
	psstr = getdata("ps");
	topstr = getdata("top");
	dfstr = getdata("df");

	meminfostr = getdata("meminfo");
	msgsstr = getdata("msgs");
	netstatstr = getdata("netstat");
	ifstatstr = getdata("ifstat");
	portsstr = getdata("ports");

	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, "Avail", "Capacity", "Mounted", dfstr);

	unix_procs_report(hostname, clienttype, os, hinfo, fromline, timestr, "COMMAND", NULL, 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);








>







 







>









>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
..
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
	char *uptimestr;
	char *clockstr;
	char *msgcachestr;
	char *whostr;
	char *psstr;
	char *topstr;
	char *dfstr;
	char *inodestr;
	char *meminfostr;
	char *msgsstr;
	char *netstatstr;
	char *ifstatstr;
	char *portsstr;

	char fromline[1024];
................................................................................
	uptimestr = getdata("uptime");
	clockstr = getdata("clock");
	msgcachestr = getdata("msgcache");
	whostr = getdata("who");
	psstr = getdata("ps");
	topstr = getdata("top");
	dfstr = getdata("df");
	inodestr = getdata("inode");
	meminfostr = getdata("meminfo");
	msgsstr = getdata("msgs");
	netstatstr = getdata("netstat");
	ifstatstr = getdata("ifstat");
	portsstr = getdata("ports");

	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, "Avail", "Capacity", "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", NULL, 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);

Changes to xymond/etcfiles/analysis.cfg.

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#    LOAD   : Changes the "cpu" status according to the system load.
#    CLOCK  : Changes the "cpu" status if the client system clock is
#             not synchronized with the clock of the Xymon server.
#    DISK   : Changes the "disk" status, depending on the amount of space
#             used of filesystems.
#    INODE  : Changes the "inode" status, depending on the number of inodes
#             used in filesystems.
#             NB: Only works for Linux, Solaris, FreeBSD and OpenBSD clients.
#    MEMPHYS: Changes the "memory" status, based on the percentage of real
#             memory used.
#    MEMACT : Changes the "memory" status, based on the percentage of "actual"
#             memory used. Note: Not all systems report an "actual" value.
#    MEMSWAP: Changes the "memory" status, based on the percentage of swap
#             space used.
#    PROC   : Changes the "procs" status according to which processes were found







|







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#    LOAD   : Changes the "cpu" status according to the system load.
#    CLOCK  : Changes the "cpu" status if the client system clock is
#             not synchronized with the clock of the Xymon server.
#    DISK   : Changes the "disk" status, depending on the amount of space
#             used of filesystems.
#    INODE  : Changes the "inode" status, depending on the number of inodes
#             used in filesystems.
#             NB: Only works for Linux, Solaris, FreeBSD, OpenBSD and Mac OSX clients.
#    MEMPHYS: Changes the "memory" status, based on the percentage of real
#             memory used.
#    MEMACT : Changes the "memory" status, based on the percentage of "actual"
#             memory used. Note: Not all systems report an "actual" value.
#    MEMSWAP: Changes the "memory" status, based on the percentage of swap
#             space used.
#    PROC   : Changes the "procs" status according to which processes were found