#!/bin/sh

# Shell script for plugins for SCC.
# Copyright (C) 2001-2004 Open Challenge B.V.
# Copyright (C) 2004-2005 OpenEyeT Professional Services.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# Contact information: www.OpenEyeT.nl/scc/index.html 

# SCC-release:	1.6.26
# file-version:	$Revision: 1.40 $


ProgName=${0##*/};			export ProgName

# NOTICE
# When you use this program to create a user module, copy it to the
# directory /opt/scc/bin/scc_modules using the naming format for the
# user modules: scc_9999_u_NAME. Where 9999 is a four-digit number used
# to order the execution of the modules and NAME is the readable name.

SCC_BIN=/opt/scc/bin
SCC_TOP=/var/opt/scc
export SCC_BIN SCC_TOP

. ${SCC_BIN}/scc_modules/scc_utils

export SCC_DATA=${SCC_TOP}/data
export SCC_TMP=${SCC_TOP}/tmp
export SCC_CONF=/etc/opt/scc/conf

# Start the code for the plugin.

# Notice:
# - all output lines should start with "fix:" or "var:"
# - the generated classifications can contain at most 5 levels.
# - refer to scc_utils for the functions that are provided.

# Availabe for use are the following files:
#	${SCC_PROC_FILE}	all processes at the moment scc-collect started
#	${TMP1_FILE}		empty, temporary file
#	${TMP2_FILE}		empty, temporary file
#	${TMP3_FILE}		empty, temporary file
#	${SCC_KEEP_CONFIG}	file with data from previous run
#	${SCC_KEEP_NEW}		file with data to keep for next run
#	Some scc-data is determined by means of path-names of running
#	processes. To avoid changes in the logbook when the these processes
#	are inactive, we store this process data in the keep-file. When the
#	processes are inactive, we use the data from the keep-file. After using
#	it, we have to add this data to ${SCC_KEEP_NEW} for the next run of scc.

# Availabe for use are the following environment variables:
#	SCC_MODULE		name of the current module
#	OS_NAME			name of the OS: HP-UX SunOS, Linux, AIX
#	HOSTNAME		hostname (without domain)
#	IS_NIS_MASTER		0/1 indicator for a NIS master-server
#	NIS_DATA_DIR		source directory for NIS-maps
#	HPUX_KERNEL		path of the HP-UX kernel
#	MAX_SYS_ACCOUNT_ID	max uid for system-users

exit 0
