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)

Open Hand For more examples, see Samples.

 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2008-03-27.   This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.   Copyright © 1998-2008 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
non-search links
script macro