Perl event-based monitoring infrastructure