"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xymond/client/aix.c" between
xymon-4.3.28.tar.gz and xymon-4.3.29.tar.gz

About: Xymon is a system for monitoring servers, applications and networks (like Big Brother; former name "hobbit").

aix.c  (xymon-4.3.28):aix.c  (xymon-4.3.29)
skipping to change at line 13 skipping to change at line 13
/* */ /* */
/* Client backend module for AIX */ /* Client backend module for AIX */
/* */ /* */
/* Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> */ /* Copyright (C) 2005-2011 Henrik Storner <henrik@hswn.dk> */
/* */ /* */
/* This program is released under the GNU General Public License (GPL), */ /* This program is released under the GNU General Public License (GPL), */
/* version 2. See the file "COPYING" for details. */ /* version 2. See the file "COPYING" for details. */
/* */ /* */
/*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/
static char aix_rcsid[] = "$Id: aix.c 7886 2016-02-02 20:16:19Z jccleaver $"; static char aix_rcsid[] = "$Id: aix.c 8066 2019-05-03 22:42:00Z jccleaver $";
void handle_aix_client(char *hostname, char *clienttype, enum ostype_t os, void handle_aix_client(char *hostname, char *clienttype, enum ostype_t os,
void *hinfo, char *sender, time_t timestamp, void *hinfo, char *sender, time_t timestamp,
char *clientdata) char *clientdata)
{ {
char *timestr; char *timestr;
char *uptimestr; char *uptimestr;
char *clockstr; char *clockstr;
char *msgcachestr; char *msgcachestr;
char *whostr; char *whostr;
skipping to change at line 79 skipping to change at line 79
file_report(hostname, clienttype, os, hinfo, fromline, timestr); file_report(hostname, clienttype, os, hinfo, fromline, timestr);
linecount_report(hostname, clienttype, os, hinfo, fromline, timestr); linecount_report(hostname, clienttype, os, hinfo, fromline, timestr);
deltacount_report(hostname, clienttype, os, hinfo, fromline, timestr); deltacount_report(hostname, clienttype, os, hinfo, fromline, timestr);
unix_ifstat_report(hostname, clienttype, os, hinfo, fromline, timestr, if statstr); unix_ifstat_report(hostname, clienttype, os, hinfo, fromline, timestr, if statstr);
unix_netstat_report(hostname, clienttype, os, hinfo, fromline, timestr, n etstatstr); unix_netstat_report(hostname, clienttype, os, hinfo, fromline, timestr, n etstatstr);
unix_vmstat_report(hostname, clienttype, os, hinfo, fromline, timestr, vm statstr); unix_vmstat_report(hostname, clienttype, os, hinfo, fromline, timestr, vm statstr);
if (realmemstr && freememstr && swapmemstr) { if (realmemstr && freememstr && swapmemstr) {
long memphystotal = 0, memphysfree = 0, memswaptotal = 0, memswap pct = 0; long memphystotal = 0, memphysfree = 0, memswaptotal = 0, memswap pct = 0;
long memacttotal = 0, memactused = 0;
char *p; char *p;
if (strncmp(realmemstr, "realmem ", 8) == 0) memphystotal = atol( realmemstr+8) / 1024L; if (strncmp(realmemstr, "realmem ", 8) == 0) memphystotal = atol( realmemstr+8) / 1024L;
if (sscanf(freememstr, "%*d %*d %*d %ld", &memphysfree) == 1) mem physfree /= 256L; if (sscanf(freememstr, "%*d %*d %*d %ld", &memphysfree) == 1) mem physfree /= 256L;
if (sscanf(freememstr, "%*d %*d %ld", &memactused) == 1) memactus ed /= 256;
p = strchr(swapmemstr, '\n'); if (p) p++; p = strchr(swapmemstr, '\n'); if (p) p++;
if (p && (sscanf(p, " %ldMB %ld%%", &memswaptotal, &memswappct) ! = 2)) { if (p && (sscanf(p, " %ldMB %ld%%", &memswaptotal, &memswappct) ! = 2)) {
memswaptotal = memswappct = -1L; memswaptotal = memswappct = -1L;
} }
memacttotal = memphystotal;
unix_memory_report(hostname, clienttype, os, hinfo, fromline, tim estr, unix_memory_report(hostname, clienttype, os, hinfo, fromline, tim estr,
memphystotal, (memphystotal - memphysfree), memphystotal, (memphystotal - memphysfree),
-1L, -1L, memacttotal, memactused,
memswaptotal, ((memswaptotal * memswappct) / 100L )); memswaptotal, ((memswaptotal * memswappct) / 100L ));
} }
splitmsg_done(); splitmsg_done();
} }
 End of changes. 5 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)