xymon

Check-in [0602f14233]
Login

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

Overview
Comment: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
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | origin/4.3.10
Files: files | file ages | folders
SHA3-256: 0602f142339f16ca298d46b09d846f17f75dd5fdc523485c1b425c4f48864870
User & Date: storner@users.sf.net 2012-08-02 10:59:33
Context
2012-08-02
11:20
lib/Makefile and build/Makefile.rules dont need to add "-I." to CFLAGS - causes problems on OSX git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.10@7154 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 54def66580 user: storner@users.sf.net tags: trunk, origin/4.3.10
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to client/xymonclient-darwin.sh.

56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
netstat -ibn | egrep -v "^lo|<Link"
echo "[ports]"
netstat -an|grep "^tcp"
echo "[ps]"
ps -ax -ww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rss,vsz,command

# $TOP must be set, the install utility should do that for us if it exists.
if test "$TOP" != ""
then
    if test -x "$TOP"
    then
        echo "[top]"
	$TOP -l 1 -n 20
    fi
fi

exit








|

|


|





56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
netstat -ibn | egrep -v "^lo|<Link"
echo "[ports]"
netstat -an|grep "^tcp"
echo "[ps]"
ps -ax -ww -o pid,ppid,user,start,state,pri,pcpu,time,pmem,rss,vsz,command

# $TOP must be set, the install utility should do that for us if it exists.
if test "$TOP" != "" -a "$AWK" != ""
then
    if test -x "$TOP" -a -x "$AWK"
    then
        echo "[top]"
	$TOP -l 2 -n 20 -o cpu | $AWK '/^Processes:/ {toprun++} toprun == 2'
    fi
fi

exit