[Nagiosplug-help] scan_log plugin missing some bits?

Ralph.Grothe at itdz-berlin.de Ralph.Grothe at itdz-berlin.de
Tue Sep 25 13:57:00 CEST 2007


Hi,

the utils.* stubs should be part of the official nagios plugins.
They are the recommended way for plugin authors
to provide a standard "lib" (probably a bit too much of a nomen)
for check return codes and state names etc.

 
$ wget -Y 1 -q -nd -O -
http://downloads.sourceforge.net/nagiosplug/nagios-plugins-1.4.9.
tar.gz|gzip -dc|tar tvf -|grep plugins/utils
-rw-r--r-- 1000 1000   10983 Jan 28 22:46:41 2007
nagios-plugins-1.4.9/plugins/utils.c
-rw-r--r-- 1000 1000    5068 Jan 28 22:46:41 2007
nagios-plugins-1.4.9/plugins/utils.h


They even come for various scripting languages as e.g. Perl and
Python modules
in prepackaged RPMs (e.g. for RHEL5)

$ rpm -ql nagios-plugins|grep utils
/usr/lib/nagios/plugins/utils.pm
/usr/lib/nagios/plugins/utils.py
/usr/lib/nagios/plugins/utils.pyc
/usr/lib/nagios/plugins/utils.sh
/usr/lib/perl5/vendor_perl/5.8.8/utils.pm

So I would think you may find them in your $USER1$ dir
(provided you stuck to this macro convention for your plugins
dir)


As for checks of logfiles like Solaris' messages etc.
I rather prefer the Perl script check_log2.pl which should be in
the contrib subdir of the
official plugins.
But this is a matter of personal taste and affection for Perl.

$ wget -Y 1 -q -nd -O -
http://downloads.sourceforge.net/nagiosplug/nagios-plugins-1.4.9.
tar.gz|gzip -dc|tar tvf -|grep check_log
-rwxr-xr-x 1000 1000    6050 Feb 01 06:33:07 2007
nagios-plugins-1.4.9/plugins-scripts/check_log.sh
-rw-r--r-- 1000 1000    6677 Dec 16 19:41:45 2005
nagios-plugins-1.4.9/contrib/check_log2.pl


> -----Original Message-----
> From: nagiosplug-help-bounces at lists.sourceforge.net
> [mailto:nagiosplug-help-bounces at lists.sourceforge.net]On Behalf
Of
> Ayotunde Itayemi
> Sent: Tuesday, September 25, 2007 11:44 AM
> To: nagiosplug-help at lists.sourceforge.net
> Subject: [Nagiosplug-help] scan_log plugin missing some bits?
> Importance: High
> 
> 
> Hi All,
> 
> I have tried to use scan_log plugin by Sergei Haramundanis but
running
> it manually fails.
> I noticed that the script calls another script by the name of
utils.sh
> Where can I find this other script (and any others 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, link offline, full filesystens etc)?
> Thanks.
> 
> Ayotunde Itayemi
> 08022225919 | Business Systems | IT Technical Support | IS |
Technical
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to
/dev/null
> 




More information about the Help mailing list