Scripts for `Logwatch` for process CUPS logs. --------------------------------------------- Quick instal: - Copy all files to /etc/logwatch/ or create and install rpm package... :) Example output report: --------------------- CUPS accounting Begin ------------------------ Daily Usage Date %Requests Pages ----------------------------------------- 21/07/06 20 21 Queue Heuristic Queue %Requests %Pages Pages -------------------------------------------------------------- hplaserjet4350dtn 85.00 85.71 18 hp4250ndt 10.00 9.52 2 Hp1300 5.00 4.76 1 Queue-User Queue Pages -------------------------------------------------------------- Hp1300 |- root 1 hp4250ndt |- root 2 hplaserjet4350dtn |- root 10 |- printbot 7 |- gosha 1 Heuristic JobSize %Requests --------------------------- 1. 0-10 100.00 Heuristic Copies %Requests --------------------------- 1. single 100.00 Billing Heuristic Billing Pages -------------------------------------------------------------- - 192.168.108.127 1 |- gosha 1 - localhost 20 |- root 13 |- printbot 7 PrinterAccounting Username Requests Pages Pages/Request -------------------------------------------------------- root 13 13 1 printbot 6 7 2 gosha 1 1 1 Hour Usage Hour Requests --------------------- 09 0 10 0 11 1 12 7 13 4 14 0 15 8 16 0 17 0 18 0 ---------------------- CUPS accounting End ------------------------- --------------------- CUPS http access Begin ------------------------ 1.82 MB transferred in 476 responses (1xx 0, 2xx 442, 3xx 0, 4xx 34, 5xx 0) 307 Content pages (0.16 MB), 169 Other (1.66 MB) Requests with error response codes 401 Unauthorized /admin: 8 Time(s) /admin/: 14 Time(s) /admin/?op=config-printer&printer_name=Hp1300: 1 Time(s) /admin/?op=config-printer&printer_name=hp4250ndt: 2 Time(s) /admin/?op=config-printer&printer_name=hplaserjet4350dtn: 4 Time(s) /admin/?op=delete-printer&printer_name=hp4250ndt: 1 Time(s) /admin/?op=modify-printer&printer_name=hp4250ndt: 2 Time(s) /admin/?op=modify-printer&printer_name=hplaserjet4350dtn: 1 Time(s) /admin/?op=modify-printer&printer_name=ost: 1 Time(s) ---------------------- CUPS http access End ------------------------- --------------------- CUPS errors Begin ------------------------ Errors E [Job 53] Connection failed with error NT_STATUS_UNSUCCESSFUL : 1 times E IsAuthorized: pam_authenticate() returned 7 (Authentication failure)! : 1 times E [Job 53] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: Connection failed with error NT_STATUS_UNSUCCESSFUL : 331 times ---------------------- CUPS errors End ------------------------- Based on: PrintAnalyzer (C) 1999 - 2003 by Thies Moeller Okunev Igor gosha@prv.mts-nn.ru