I want to install an nagios plugin on an linux host, this is one client machine, there is no nagios installation in.
On this machine is a mysql installation and I want to get an SQL query direktly from this host, to my monitoring server as an inventored check.
So on, I have put the plugin: check_mysql_query.pl
into this directory: /usr/lib/nagios/plugins. Now the monitoring host can find the check, but it isn’t working…
When I startet the check on my comand line, I getting this error:
Can’t locate HariSekhonUtils.pm in @INC (you may need to install the HariSekhonUtils module) (@INC contains: ./lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at ./check_mysql_query.pl line 34.
BEGIN failed–compilation aborted at ./check_mysql_query.pl line 34.
Now, I have found this modul HariSekhonUtils.pm on git and puted the zip file on the host:
But I cant installing it… I get some errors, after I used make:
fatal: Not a git repository (or any of the parent directories): .git
Makefile:77: recipe for target ‘submodules’ failed
make: *** [submodules] Error 128
make: Leaving directory ‘/root/lib-Perl’
Makefile:55: recipe for target ‘build’ failed
make: *** [build] Error 2
Does anyone has an idea, what I’m doing wrong on this?