Test
"; $db = new SQLite3('../webcron.db'); $res = $db->querySingle("SELECT COUNT(job_id) FROM job_history;"); echo "Job History Entries: $res
"; $res = $db->querySingle("SELECT COUNT(log_id) FROM logs;"); echo "Log Entries: $res
"; ?>
Log Statistics (This Week)
Level
# of occurances
query("SELECT * FROM log_statistics_last_7_days;"); while ($row = $res->fetchArray()){ echo "
"; echo "
{$row['log_level_name']}
{$row['count']}
"; echo "
"; } ?>
Script Failures (Last 10)
Date/Time
Script
Exit Code
query("SELECT * FROM last_ten_failed_jobs;"); while ($row = $res->fetchArray()){ echo "
"; echo "
{$row['job_timestamp']}
{$row['job_source']}
{$row['job_exit_code']}
"; echo "
"; } ?>
Jobs Run (Last 10)
Date/Time
Script
Exit Code
Job Result
query("SELECT * FROM job_history ORDER BY job_timestamp DESC LIMIT 10;"); while ($row = $res->fetchArray()){ echo "
"; echo "
{$row['job_timestamp']}
{$row['job_source']}
{$row['job_exit_code']}
{$row['job_result']}
"; echo "
"; } ?>