my $logfacility = "auth"; my $loglevel = "notice"; openlog("HP-Alert","cons",$logfacility); syslog ($loglevel,"Blocked all connects from %s due to %d connections!", $connectdata[2], $alerts); closelog;