2.4 KiB
2.4 KiB
System Monitoring as a Service
Expose several system properties and logs.
How to run it
$ kapow server SystemMonitor.pow
How to consume it
List files and directories
$ curl -s http://localhost:8080/file/var/log/cups
total 60
drwxr-xr-x 2 root root 4096 Dec 2 06:54 .
drwxr-xr-x 15 root root 4096 Jan 27 07:34 ..
-rw-r--r-- 1 root cups 0 Dec 2 06:54 access_log
-rw-r--r-- 1 root cups 125 Dec 1 19:12 access_log.1
-rw-r--r-- 1 root cups 254 Nov 23 12:17 access_log.2
-rw-r--r-- 1 root cups 125 Sep 8 14:41 access_log.3
-rw-r--r-- 1 root cups 634 May 1 2019 access_log.4
-rw-r--r-- 1 root cups 0 Sep 9 2018 error_log
-rw-r--r-- 1 root cups 17312 Sep 3 2018 error_log.1
-rw-r--r-- 1 root cups 0 Dec 2 06:54 page_log
-rw-r--r-- 1 root cups 128 Dec 1 19:12 page_log.1
-rw-r--r-- 1 root cups 188 Nov 23 12:17 page_log.2
-rw-r--r-- 1 root cups 108 Sep 8 14:41 page_log.3
-rw-r--r-- 1 root cups 465 May 1 2019 page_log.4