xymon

Check-in [bdbc1d063e]
Login

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

Overview
Comment:FreeBSD client: Updates from Mark Felder git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.13@7213 44351d6e-118b-4698-b696-ce33095ecaa4
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | origin/4.3.13
Files: files | file ages | folders
SHA3-256: bdbc1d063ef239f574a6d381d50be116edf0e0da45f28ef9403f0598956d23f2
User & Date: storner@users.sf.net 2013-07-24 14:52:08
Context
2013-07-25
15:30
xymondfetch: Avoid C_CLIENT / C_SERVER name confusion git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.13@7216 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 16ea74ff02 user: storner@users.sf.net tags: trunk, origin/4.3.13
2013-07-24
14:52
FreeBSD client: Updates from Mark Felder git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.13@7213 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: bdbc1d063e user: storner@users.sf.net tags: trunk, origin/4.3.13
09:00
New 4.3.13 branch git-svn-id: http://svn.code.sf.net/p/xymon/code/branches/4.3.13@7212 44351d6e-118b-4698-b696-ce33095ecaa4 check-in: 2bc83f2a5d user: storner@users.sf.net tags: trunk, origin/4.3.13
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to client/freebsd-meminfo.c.

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

int main(int argc, char *argv[])
{
	int hw_physmem[] = { CTL_HW, HW_PHYSMEM };
	unsigned long physmem;

	int hw_pagesize[] = { CTL_HW, HW_PAGESIZE };
	unsigned long pagesize;

	int vm_vmtotal[] = { CTL_VM, VM_METER };
	struct vmtotal vmdata;

	size_t len;
	int result;








|







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

int main(int argc, char *argv[])
{
	int hw_physmem[] = { CTL_HW, HW_PHYSMEM };
	unsigned long physmem;

	int hw_pagesize[] = { CTL_HW, HW_PAGESIZE };
	int pagesize;

	int vm_vmtotal[] = { CTL_VM, VM_METER };
	struct vmtotal vmdata;

	size_t len;
	int result;

Changes to client/xymonclient-freebsd.sh.

47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
echo "[route]"
netstat -rn
echo "[ifstat]"
netstat -i -b -n | egrep -v "^lo|<Link"
echo "[netstat]"
netstat -s
echo "[ports]"
(netstat -na -f inet; netstat -na -f inet6) | grep "^tcp"
echo "[ps]"
# Dont use "args". "command" works also in FreeBSD 4.x.
ps -ax -ww -o pid,ppid,user,start,state,pri,pcpu,cputime,pmem,rss,vsz,command

# $TOP must be set, the install utility should do that for us if it exists.
if test "$TOP" != ""
then







|







47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
echo "[route]"
netstat -rn
echo "[ifstat]"
netstat -i -b -n | egrep -v "^lo|<Link"
echo "[netstat]"
netstat -s
echo "[ports]"
(netstat -Wna -f inet; netstat -Wna -f inet6) | grep "^tcp"
echo "[ps]"
# Dont use "args". "command" works also in FreeBSD 4.x.
ps -ax -ww -o pid,ppid,user,start,state,pri,pcpu,cputime,pmem,rss,vsz,command

# $TOP must be set, the install utility should do that for us if it exists.
if test "$TOP" != ""
then

Changes to xymond/client/freebsd.c.

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

	sprintf(fromline, "\nStatus message received from %s\n", sender);

	splitmsg(clientdata);

	timestr = getdata("date");
	uptimestr = getdata("uptime");
	clockstr = getdata("clockstr");
	msgcachestr = getdata("msgcache");
	whostr = getdata("who");
	psstr = getdata("ps");
	topstr = getdata("top");
	dfstr = getdata("df");
	inodestr = getdata("inode");
	meminfostr = getdata("meminfo");







|







43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

	sprintf(fromline, "\nStatus message received from %s\n", sender);

	splitmsg(clientdata);

	timestr = getdata("date");
	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");