MySQL-plugin : how to use it ??
jonas kellens
jonas.kellens at telenet.be
Sat Oct 31 16:37:03 CET 2009
This is the output when placing the perl-files
in /usr/local/nagios/libexec/ :
bash-3.2# /usr/local/nagios/libexec/check_mysql_threads --help
bash: /usr/local/nagios/libexec/check_mysql_threads: No such file or
directory
bash-3.2# /usr/local/nagios/libexec/check_mysql_threads.pl
Can't locate utils.pm in @INC (@INC contains:
nagios/plugins /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/nagios/libexec/check_mysql_threads.pl line 26.
BEGIN failed--compilation aborted
at /usr/local/nagios/libexec/check_mysql_threads.pl line 26.
bash-3.2# perl /usr/local/nagios/libexec/check_mysql_threads.pl
Can't locate utils.pm in @INC (@INC contains:
nagios/plugins /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/nagios/libexec/check_mysql_threads.pl line 26.
BEGIN failed--compilation aborted
at /usr/local/nagios/libexec/check_mysql_threads.pl line 26.
Jonas.
On Sat, 2009-10-31 at 11:14 -0400, James Pratt wrote:
>
> It appears as though build.sh is trying to build you an RPM file from the source, which is a RedHat package type - you will need the rpm , and other rpm-build utilities in order to get this to compile by using that build script.
>
> From the looks of it above, you may be able to just copy the *.pl files over to /usr/local/nagios/libexec (or wherever your plugin folder lives), and try to use them in your commands.cfg - unless of course there is something specific placed into them from the build.sh script.
>
>
> Regards,
> Jamie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091031/ffb1eae5/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list