table of contents
meminfolog(8) | ClusterTools2 | meminfolog(8) |
NAME¶
meminfolog - log the meminfo with timestamp
SYNOPSIS¶
meminfolog [ logfile ]
DESCRIPTION¶
meminfolog logs the meminfo with timestamp. Basically the script puts the output of "date +%F %T" in front of each line for the output of "cat /proc/meminfo".
EXAMPLES¶
- To run meminfolog every 10 minutes, the crontab entry could look like this:
-
-01-56/10 * * * * root /usr/sbin/meminfolog /var/log/meminfo.log - To rotate and compress the log from time to time, the logrotate entry could look like this:
-
/var/log/meminfo.log {
compress
dateext
maxage 365
rotate 99
size +2M
notifempty
missingok
copytruncate
}
EXIT STATUS¶
0 Successful program execution.
>0 Usage, syntax or execution errors.
FILES¶
- /usr/sbin/meminfolog
- the script itself.
- /var/log/meminfo.log
- the default logfile.
- /etc/cron.d/ClusterTools2
- the cron entry.
- /etc/logrotate.d/ClusterTools2
- the logrotate entry.
BUGS¶
Feedback is welcome, please mail to feedback@suse.com
SEE ALSO¶
proc(5), vmstat(8), crontab(5), logrotate(8), ClusterTools2(7)
COPYRIGHT¶
(c) 2011-2019 L.Pinne, Germany.
meminfolog comes with ABSOLUTELY NO WARRANTY.
For details see the GNU General Public License at
http://www.gnu.org/licenses/gpl.html
01 Nov 2019 |