Finally got Nagios 1.2 working but with a few problems.
- How do I get the two servers to be a member of any host groups!
- How do I once and for all resolve this pain? “Can’t locate Cache.pm in @INC”
What are my options here?
I’ve been installing stuff on my Linux server and no joy…
This is getting rather frustrating…
After 2 weeks of installing and re-installing. I’m forever hitting a brick wall…
Consider this a continuation of another similar topic I started http://www.meulie.net/forum_viewtopic.php?21.232
**Trying to install the Plugins
Command: make check**
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_imap.t line 4.
BEGIN failed–compilation aborted at ./t/check_imap.t line 4.
FAIL: t/check_imap.t
1…4
Running under perl version 5.008005 for linux
Current time local: Wed Feb 16 09:23:30 2005
Current time GMT: Wed Feb 16 09:23:30 2005
Using Test.pm version 1.25
ok 1
ok 2
ok 3
ok 4
PASS: t/check_load.t
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_mysql.t line 5.
BEGIN failed–compilation aborted at ./t/check_mysql.t line 5.
FAIL: t/check_mysql.t
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_ping.t line 4.
…
FAIL: t/check_vsz.t
18 of 20 tests failed
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory /home/michael/nagios-plugins-1.4/plugins' make[1]: *** [check-am] Error 2 make[1]: Leaving directory
/home/michael/nagios-plugins-1.4/plugins’
make: *** [check-recursive] Error 1
**Running Nagios 1.2 after compiling the Plugins
Command: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg**
Nagios 1.2
Copyright © 1999-2004 Ethan Galstad ([email protected])
Last Modified: 02-02-2004
License: GPL
Reading configuration data…
Running pre-flight check on configuration data…
Checking services…
Checked 15 services.
Checking hosts…
Warning: Host ‘Barney’ is not a member of any host groups!
Warning: Host ‘Duckula’ is not a member of any host groups!
Checked 3 hosts.
Checking host groups…
Checked 1 host groups.
Checking contacts…
Checked 1 contacts.
Checking contact groups…
Checked 1 contact groups.
Checking service escalations…
Checked 0 service escalations.
Checking host group escalations…
Checked 0 host group escalations.
Checking service dependencies…
Checked 0 service dependencies.
Checking host escalations…
Checked 0 host escalations.
Checking host dependencies…
Checked 0 host dependencies.
Checking commands…
Checked 8 commands.
Checking time periods…
Checked 1 time periods.
Checking for circular paths between hosts…
Checking for circular service execution dependencies…
Checking global event handlers…
Checking obsessive compulsive service processor command…
Checking misc settings…
Total Warnings: 2
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
MrBurns:/home/michael/nagios-plugins-1.4 # /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
Nagios 1.2
Copyright © 1999-2004 Ethan Galstad ([email protected])
Last Modified: 02-02-2004
License: GPL
Nagios 1.2 starting… (PID=6386)
Warning: Host ‘Barney’ is not a member of any host groups!
Warning: Host ‘Duckula’ is not a member of any host groups!
sh: /usr/local/nagios/libexec/check_load: No such file or directory
Warning: Return code of 127 for check of service ‘Current Load’ on host ‘Barney’ was out of bounds. Make sure the plugin you’re trying to run actually exists.
sh: /usr/local/nagios/libexec/check_load: No such file or directory
:x
Edited ]