-#!/usr/local/bin/perl
+#!/usr/bin/perl
#
# This object represents an event that has happened that a record should be
# kept for. The current case is when a service changes state (color change).
# History:
# (1) Cleaned up (Ed July 31, 1997);
+# $Id: History.pm,v 1.5 2000/12/15 21:01:10 sljohnson Exp $
+
package Spong::History;
use Spong::HistoryService;
my( $min, $hour ) = (localtime($self->time()))[1,2];
my $shost = $main::HOSTS{$self->host()}->{'display_name'};
+ $shost = $self->host() if $main::HISTORY_FQDN;
$shost = (split( /\./, $self->host() ))[0] unless $shost;
print $self->color(), " "x(7-length($self->color()));
my $other = $self->other();
my $time = $self->time();
+ $shost = $self->host() if $main::HISTORY_FQDN;
$shost = (split( /\./, $self->host() ))[0] unless $shost;
print "<tr><td width=5% align=left valign=top>";