#PEAR_Config 0.9 a:12:{s:7:"php_dir";s:67:"//pear/php";s:8:"data_dir";s:68:"//pear/data";s:7:"www_dir";s:67:"//pear/www";s:7:"cfg_dir";s:67:"//pear/cfg";s:7:"ext_dir";s:67:"//pear/ext";s:7:"doc_dir";s:68:"//pear/docs";s:8:"test_dir";s:69:"//pear/tests";s:9:"cache_dir";s:69:"//pear/cache";s:12:"download_dir";s:72:"//pear/download";s:8:"temp_dir";s:68:"//pear/temp";s:7:"bin_dir";s:63:"//pear";s:7:"man_dir";s:67:"//pear/man";}
|
Server IP : 99.192.176.69 / Your IP : 216.73.217.68 Web Server : Apache System : Linux platinumpuzzy2.eosdns.net 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64 User : bbwcamhouse ( 1000) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0555) : /../etc/python/../python/../python/../python/../python/../python/../lsm/../../../../bin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
#!/bin/bash
# load sysconfig atop
[ -f /etc/sysconfig/atop ] && . /etc/sysconfig/atop
# Current Day format
[ -z $CURDAY ] && CURDAY=`date +%Y%m%d`
# Log files path
[ -z $LOGPATH ] && LOGPATH=/var/log/atop
# Binaries path
[ -z $BINPATH ] && BINPATH=/usr/bin
# PID File
[ -z $PIDFILE ] && PIDFILE=/var/run/atop.pid
# interval (default 10 minutes)
[ -z $INTERVAL ] && INTERVAL=600
start_atop() {
# start atop for all processes with interval of $INTERVAL
# (by default 10) minutes
$BINPATH/atop -a -w $LOGPATH/atop_$CURDAY $INTERVAL > $LOGPATH/atop.log 2>&1 &
echo $! > $PIDFILE
}
# verify if atop still runs for daily logging
#
if [ -f $PIDFILE ]; then
PID=`cat $PIDFILE`
if [ -s $PIDFILE ] && ps -p $PID | grep 'atop$' > /dev/null
then
kill -USR1 $PID # take final sample
sleep 3
kill -TERM $PID
rm $PIDFILE
sleep 1
else
exit 1
fi
fi
start_atop
exit 0