#
# $Id: HotSaNICmod.pm,v 1.21 2004/02/27 09:21:47 bernisys Exp $
#
package HotSaNICmod;
use HotSaNICparser;
use RRDs;
my $MODNAME;
my %MODARGS;
($VERSION = '$Revision: 1.21 $') =~ s/.*(\d+\.\d+).*/$1/;
######################################################################
#
# control function to make sure that a module is running only once
#
# Usage:
# dupe_control($what,$module-name,$message);
#
# $what:
# start -> call this method at the head of a module to touch the
# dupe-detection checkfile.
# stop -> remove checkfile and exit normally.
# warn -> print $message as warning and continue execution.
# die -> remove checkfile and stop process with error.
#
# The given message will be preceded with a timestamp (in seconds
# since 1970) and the module-name:
#
#