"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "client/xymonclient-linux.sh" between
xymon-4.3.29.tar.gz and xymon-4.3.30.tar.gz

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

xymonclient-linux.sh  (xymon-4.3.29):xymonclient-linux.sh  (xymon-4.3.30)
skipping to change at line 12 skipping to change at line 12
#----------------------------------------------------------------------------# #----------------------------------------------------------------------------#
# Linux client for Xymon # # Linux client for Xymon #
# # # #
# 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. #
# # # #
#----------------------------------------------------------------------------# #----------------------------------------------------------------------------#
# #
# $Id: xymonclient-linux.sh 7707 2015-10-19 22:34:59Z jccleaver $ # $Id: xymonclient-linux.sh 8097 2019-09-02 19:10:26Z jccleaver $
echo "[date]" echo "[date]"
date date
echo "[uname]" echo "[uname]"
uname -rsmn uname -rsmn
echo "[osversion]" echo "[osversion]"
if [ -x /bin/lsb_release ]; then if [ -x /bin/lsb_release ]; then
/bin/lsb_release -r -i -s | xargs echo /bin/lsb_release -r -i -s | xargs echo
/bin/lsb_release -a 2>/dev/null /bin/lsb_release -a 2>/dev/null
elif [ -x /usr/bin/lsb_release ]; then elif [ -x /usr/bin/lsb_release ]; then
skipping to change at line 70 skipping to change at line 70
mount mount
echo "[free]" echo "[free]"
free free
echo "[ifconfig]" echo "[ifconfig]"
/sbin/ifconfig 2>/dev/null /sbin/ifconfig 2>/dev/null
echo "[route]" echo "[route]"
netstat -rn netstat -rn
echo "[netstat]" echo "[netstat]"
netstat -s netstat -s
echo "[ports]" echo "[ports]"
# Bug in RedHat's netstat spews annoying error messages. # For some reason, the option for Wide/unTrimmed display of IPs
netstat -antu 2>/dev/null # changed in netstat versions and no one provided backwards compat,
# so exactly ONE of these should work successfully:
netstat -antuW 2>/dev/null
netstat -antuT 2>/dev/null
echo "[ifstat]" echo "[ifstat]"
/sbin/ifconfig 2>/dev/null /sbin/ifconfig 2>/dev/null
# Report mdstat data if it exists # Report mdstat data if it exists
if test -r /proc/mdstat; then echo "[mdstat]"; cat /proc/mdstat; fi if test -r /proc/mdstat; then echo "[mdstat]"; cat /proc/mdstat; fi
echo "[ps]" echo "[ps]"
ps -Aww f -o pid,ppid,user,start,state,pri,pcpu,time:12,pmem,rsz:10,vsz:10,cmd ps -Aww f -o pid,ppid,user,start,state,pri,pcpu,time:12,pmem,rsz:10,vsz:10,cmd
# $TOP must be set, the install utility should do that for us if it exists. # $TOP must be set, the install utility should do that for us if it exists.
if test "$TOP" != "" if test "$TOP" != ""
then then
 End of changes. 2 change blocks. 
3 lines changed or deleted 6 lines changed or added

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