Top Log
In this example, we log output from the top (display tasks) command.
The TopLog script shown below does its work silently, and sends no alert messages.
The script follows.
TopLog // for special monitoring of a flakey machine, // or possibly for security purposes init status =piktstatus level =piktlevel task "Log top output" input proc "=top -b -d 1 -n 1" rule =output_alarm_log($inlin)
For more examples, see Samples.