/[ps-trend]/cron.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /cron.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 18 - (show annotations)
Sun Jul 19 18:58:41 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: application/x-sh
File size: 329 byte(s)
updated cron collector to save vmstat -s and meminfo

1 #!/bin/sh
2
3 time=`date +%H%M`
4 cd /srv/ps-trend
5 dir=`date +%Y-%m-%d`
6 d="ps/$dir"
7 test -d $d || mkdir -p $d
8 COLUMNS=256 vzps -eo veid,pid,ppid,ni,user,rss,sz,vsz,time,stat,f,command > $d/$time
9
10 d="vmstat/$dir"
11 test -d $d || mkdir -p $d
12 vmstat -s > $d/$time
13
14 d="meminfo/$dir"
15 test -d $d || mkdir -p $d
16 cat /proc/meminfo > $d/$time
17

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26