[Nagiosplug-help] scan_log plugin missing some bits?

Ayotunde Itayemi Itayemi.A at ng.celtel.com
Wed Sep 26 21:18:59 CEST 2007


Hi Gerhard,
I am testing the plugin. Minor typo on the website (7x24 instead of
24x7)
You also need to convert the actual check_logfiles script into UNIX
format
(usually Windows can handle it but it may not work vice versa)

root at InterProd # /usr/local/nagios/libexec/check_logfiles -f
/usr/local/nagios/libexec/check_logfiles.cfg
Illegal character \015 (carriage return) at
/usr/local/nagios/libexec/check_logfiles line 3.
(Maybe you didn't strip carriage returns after a network transfer?)

For some reason I couldn't get it to work with the default perl package
that comes with Solaris 9
With /usr/bin/perl (v5.6.1) I get:
root at InterProd # /usr/local/nagios/libexec/check_logfiles -f
/usr/local/nagios/libexec/check_logfiles.cfg
Can't locate Net/Domain.pm in @INC (@INC contains:
/usr/perl5/5.6.1/lib/sun4-solaris-64int /usr/perl5/5.6.1/lib
/usr/perl5/site_perl/5.6.1/sun4-solaris-64int /usr/perl5/site_perl/5.6.1
/usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
/usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at
/usr/local/nagios/libexec/check_logfiles line 12.
BEGIN failed--compilation aborted at
/usr/local/nagios/libexec/check_logfiles line 12.

With /usr/local/bin/perl (5.004_04) I get:
root at InterProd # /usr/local/nagios/libexec/check_logfiles -f
/usr/local/nagios/libexec/check_logfiles.cfg
Can't locate Data/Dumper.pm in @INC (@INC contains:
/usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5
/usr/local/lib/perl5/site_perl/sun4-solaris
/usr/local/lib/perl5/site_perl .) at
/usr/local/nagios/libexec/check_logfiles line 10.
BEGIN failed--compilation aborted at
/usr/local/nagios/libexec/check_logfiles line 10.

Fortunately it worked with VERITAS perl (v5.8.6)
/opt/VRTSperl/bin/perl

Still setting it up. I hope it works well.
Thanks!
 


-----Original Message-----
From: Gerhard Lausser [mailto:Gerhard.Lausser at consol.de] 
Sent: Tuesday, September 25, 2007 10:37 PM
To: Ayotunde Itayemi; nagiosplug-help at lists.sourceforge.net
Subject: AW: [Nagiosplug-help] scan_log plugin missing some bits?

Hi,
> that many be invoked by that one) Also is this the best script for 
> scanning /var/adm/messages file on Solaris for error messages (e.g., 
> disk going offline, disk bad sectors,
allow me some advertising ;-) check_logfiles might not be the best of
all scripts, but it's used by a lot of people to scan their logfiles for
interesting patterns. Besides simple scanning it allows to execute
scripts (or perl code) if a pattern match occured. Since the last
release it is also possible to neutralize already found critical
patterns by so called ok patterns.
So if there is a message "help: backup needs a tape" which initially
counts as a critical error, a following message "cleared: robot inserted
tape"
resets the counter and the plugin does not generate a notification.
Find more examples on
http://www.consol.com/opensource/nagios/check-logfiles

Greetings from munich,
Gerhard





More information about the Help mailing list