Random Project

Works but

Works fine at commandline but failed when run by Nagios with an ePN (embedded Perl Nagios) error. Editing the script and removing __END__ and everything below fixed this and now works perfectly.