What is multistatsd
This is a simple perl daemon. It's main purpose is to parse the logs of crond and suexec on the fly.
After parsing each line, it stores information about the user's executions and cputime in its own memory. Then each hour it commits this information to the Database and clears its memory.
If the daemon is not running, usage information is not collected.
The Multistats daemon will gather data for the 3 different sections available for you under Hive for the 1H local-interface on your machine:
- CPU Stats
- Memory Usage Stats
- I/O Stats
Here the things you have to configure are:
db = DBI:Pg:database=cpustats;host=localhost;port=5432 dbuser = cpustats_local dbpass = r2ad486a36ff2a3811a11dfd5c8fe611 logfile = /usr/local/1h/var/log/cpustats.log pidfile = /usr/local/1h/var/run/cpustatsd.pid statslog =/usr/local/apache/logs/suexec_log timestamp_file = /tmp/cpustats.updated