Nagios Plugins 1.4 Error : Help!


#1

I have been following the instructions on this site http://nagios.sourceforge.net/docs/2_0/installing.html

And now ready to start the Installing The Plugins section

Here are the results after the command make check

Making check in intl make[1]: Entering directory `/tmp/nagios/nagios-plugins-1.4/intl' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/tmp/nagios/nagios-plugins-1.4/intl' Making check in lib make[1]: Entering directory `/tmp/nagios/nagios-plugins-1.4/lib' make check-am make[2]: Entering directory `/tmp/nagios/nagios-plugins-1.4/lib' make[2]: Nothing to be done for `check-am'. make[2]: Leaving directory `/tmp/nagios/nagios-plugins-1.4/lib' make[1]: Leaving directory `/tmp/nagios/nagios-plugins-1.4/lib' Making check in plugins make[1]: Entering directory `/tmp/nagios/nagios-plugins-1.4/plugins' make check-TESTS make[2]: Entering directory `/tmp/nagios/nagios-plugins-1.4/plugins' 1..6 # Running under perl version 5.008005 for linux # Current time local: Tue Feb 8 18:31:28 2005 # Current time GMT: Tue Feb 8 18:31:28 2005 # Using Test.pm version 1.25 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 PASS: t/check_disk.t FAIL: t/check_dns.t FAIL: t/check_fping.t FAIL: t/check_ftp.t FAIL: t/check_hpjd.t FAIL: t/check_http.t FAIL: t/check_imap.t 1..4 # Running under perl version 5.008005 for linux # Current time local: Tue Feb 8 18:31:28 2005 # Current time GMT: Tue Feb 8 18:31:28 2005 # Using Test.pm version 1.25 ok 1 ok 2 ok 3 ok 4 PASS: t/check_load.t FAIL: t/check_mysql.t FAIL: t/check_ping.t FAIL: t/check_pop.t FAIL: t/check_procs.t FAIL: t/check_smtp.t FAIL: t/check_snmp.t FAIL: t/check_swap.t FAIL: t/check_tcp.t FAIL: t/check_time.t FAIL: t/check_udp.t FAIL: t/check_users.t FAIL: t/check_vsz.t ===================== 18 of 20 tests failed ===================== make[2]: Leaving directory `/tmp/nagios/nagios-plugins-1.4/plugins' make[1]: Leaving directory `/tmp/nagios/nagios-plugins-1.4/plugins'

Here are the results after the command make install

Making install in po make[1]: Entering directory `/tmp/nagios/nagios-plugins-1.4/po' rm -f fr.gmo && : -c --statistics -o fr.gmo fr.po mv: cannot stat `t-fr.gmo': No such file or directory make[1]: *** [fr.gmo] Error 1 make[1]: Leaving directory `/tmp/nagios/nagios-plugins-1.4/po' make: *** [install-recursive] Error 1

I have been trying for 2 days now to find out what the problem is.

I’m running this on Linux SuSE 9.2 : Kernel 2.6.8-24.11
Appreciate any help on this. I’m new to Linux and proud to have gone this far as a newbie :stuck_out_tongue:

Thanks in advance

Cagen
Edited ]


#2

I have been able to resolve the second issue which seemed like the process was looking for a file that did not exist.

So I created a zero length file with the name fr.gmo.
Ran the make install command again with success.

I’m still having problems with the first issue which comes from running the make check command

When I run make check now. I get this

**
Can’t locate Cache.pm in @INC (@INC contains: … … /usr/lib/perl5/5.8.5/i586-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at ./t/check_vsz.t line 4.
BEGIN failed–compilation aborted at ./t/check_vsz.t line 4.
FAIL: t/check_vsz.t

18 of 20 tests failed

make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory /tmp/nagios/nagios-plugins-1.4/plugins' make[1]: *** [check-am] Error 2 make[1]: Leaving directory/tmp/nagios/nagios-plugins-1.4/plugins’
make: *** [check-recursive] Error 1
**


#3

Your solution using the zero length file sounds like a mistake. I’m not a programmer and since you are a linuz newbie, you may want to start over with “make clean”.
I too ran make check and get tons of errors, so I’m not confident that the check even works. I ran make install and it completes ok. So I suggest you run ./configure again after you run make clean, and look closely at what configure complains about.


#4

What am I missin here?
Perl is installed already

**Can’t locate Cache.pm in @INC (@INC contains: … … /usr/lib/perl5/5.8.5/i586-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at ./t/check_vsz.t line 4.
BEGIN failed–compilation aborted at ./t/check_vsz.t line 4.
FAIL: t/check_vsz.t

18 of 20 tests failed

make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory /tmp/nagios/nagios-plugins-1.4/plugins' make[1]: *** [check-am] Error 2 make[1]: Leaving directory/tmp/nagios/nagios-plugins-1.4/plugins’
make: *** [check-recursive] Error 1**


#5

same here… make check gives errors but make install works fine and the programs are ok… almost…
I’m missing check_snmp for which i don’t even see the object file in the plugins directory. Am i missing some readme file?

Thanks, Luca


#6

[quote=“luca”]I’m missing check_snmp for which i don’t even see the object file in the plugins directory. Am i missing some readme file?

Thanks, Luca[/quote]

Got this fixed, missing snmp on the machine… ./configure could give some more “readable” output :smiley:

Luca


#7

Hey Luca

Which module did you install to fix this?

Cagen
Edited Wed Feb 16 2005, 12:45PM ]


#8

using Debian a simple
apt-get install snmp
fixed it :slight_smile:

check net-snmp.sourceforge.net for further info :slight_smile:

Hope it helps.

Luca


#9

Cagen, I don’t think you should dwell on the “make check” errors. As luca said, make install seems to work just fine, and the ~/libexec/ directory seems to have all the plugins he needs. If any are missing, it’s due to not have the lib’s on the machine you compiled the plugins on. i.e. mysql, snmp, etc.

Do you still need my .cfg files since it appears you have made it past installing nagios and have moved on to plugins?


#10

Ok - I fixed this issue ages ago.

Welcome back Jakkedup :slight_smile:
Just got back from hols did ya? :wink:


#11

Thx, but how did you fix it? I’m sure it would help anyone else who might have the same trouble.


#12

I am having the same trouble … How did you fix it?


#13

From reading the thread, it appears that there where a few problems he had. Some where not having the libraries installed, the starting one, was the make check command, which none of us get working. But apparently, it doesn’t matter much since the make install works, the plugins work, etc.

So, what exactly is your trouble?