i've just copied that script to my server and ran perl -c on it and it definately complains when a module (which I know isn't installed) is missing...
[root@localhost libexec]# perl -c nagios-reporter
Can't locate Date/Manip.pm in @INC
...so that would indicate everything is generally in place on your system.
Maybe this will help:
Perl ERROR: Can't call method "mail" on an undefined value at smtp.pl line 10.
As confusing at it sounds, this means your smtp object has not been sucessfully constructed. I know the error message reads more like a problem with the "mail" method, but it is actually because the SMTP obj was not initialized.
$smtp_test = Net::SMTP->new('smtp.mail.com',
Timeout => 30,
Debug => 1,)|| print "ERROR creating SMTP obj: $! \n";
print "SMTP obj created.";
If you see "ERROR createing SMTP obj" then you know the SMTP object is not created correctly.
Some times, this is because the SMTP package was not installed right, some times, it may because the SMTP protocal is blocked, sometimes it means something else is wrong.[/blockquote]
[blog.alantan.com/2007/02/perl-er ... il-on.html](http://blog.alantan.com/2007/02/perl-error-cant-call-method-mail-on.html)