PIKT

Samples: objects.cfg

PIKT Logo
Home FAQ News Intro Samples Tutorial Reference Software Authors Licensing SiteSearch


In this sample objects.cfg configuration file, we specify monitored objects data sets--things we want PIKT to report on and perhaps fix.  For ease of management, we have modularized this file into various #include files.

///////////////////////////////////////////////////////////////////////////////
// 
// PIKT objects.cfg -- monitored objects data sets
// 
///////////////////////////////////////////////////////////////////////////////
// 
// (please see the comments prefacing the sample macros.cfg about
// configuration file complexity and parse error debugging)
// 
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#if piktmaster
#  include <objects/hosts_objects.cfg>
#endif

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/files_pikt_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

DirsSystem

#include <objects/dirs_system_suse_objects.cfg>
#include <objects/dirs_system_redhat_objects.cfg>
#include <objects/dirs_system_debian_objects.cfg>
#include <objects/dirs_system_solaris_objects.cfg>
#include <objects/dirs_system_aix_objects.cfg>
#include <objects/dirs_system_local_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

FilesSystem

#include <objects/files_system_suse_objects.cfg>
#include <objects/files_system_redhat_objects.cfg>
#include <objects/files_system_debian_objects.cfg>
#include <objects/files_system_solaris_objects.cfg>
#include <objects/files_system_aix_objects.cfg>
#include <objects/files_system_local_objects.cfg>

#if solaris | linux
        =pikt_conf              -rw-r-----      640     root    root
        =piktd_conf             -rw-r-----      640     root    root
        =alerts                 -rw-r-----      640     root    root
        =piktd_lok              -rw-r-----      640     root    root
        =piktc_svc_lok          -rw-r-----      640     root    root
#endif

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

DevsSystem      // where do we begin?  where do we end?  is there an end?
                // note that we could include major/minor # info here, too

#include <objects/devs_system_solaris_objects.cfg>

#include <objects/devs_system_linux_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

ProcessesSystem

#include <objects/process_system_suse_objects.cfg>
#include <objects/process_system_redhat_objects.cfg>
#include <objects/process_system_debian_objects.cfg>
#include <objects/process_system_solaris_objects.cfg>
#include <objects/process_system_aix_objects.cfg>
#include <objects/process_system_local_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/diskcaps_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/dirs_filestat_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/logs_system_objects.cfg>
#include <objects/logs_pikt_objects.cfg>
#include <objects/logs_local_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/files_unwanted_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/patches_system_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/fileages_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/per_user_process_counts_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/process_times_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/security_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

DirsTmp
        /tmp
        /var/tmp

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#include <objects/dirs_user_objects.cfg>

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#if piktmaster

IPAddrs
#verbatim <objects/ipaddrs_objects.cfg>
          [for sys in `/pikt/bin/piktc -L -H pvtsys`;
           do /usr/ucb/echo -n "$sys ";
           /usr/bin/ypmatch $sys hosts | /usr/bin/cut -f1;
           done]

#endif  // piktmaster

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

#if piktweb

#include <objects/pikt/dictionary_objects.cfg>

#endif

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install all objects to all systems with, for example:
# piktc -iv +O all +H all                     [or: ... -H downsys]

[For more examples, see Samples.]


Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software | Authors | Licensing | SiteSearch
Links | SiteIndex | Pikt-Users | Pikt-Workers | Contribute | ContactUs | Top of Page
Page best viewed at 1024x768.   Page last updated 2005-06-22.
This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund.  All rights reserved.

Computer Books at Amazon.com

Learning Red Hat Enterprise Linux and Fedora
Learning Red Hat Enterprise Linux and Fedora

Linux Kernel Development
Linux Kernel Development

Linux All-in-One Desk Reference For Dummies
Linux All-in-One Desk Reference For Dummies

Understanding the Linux Kernel
Understanding the Linux Kernel

Red Hat Linux Firewalls
Red Hat Linux Firewalls