Checking Bacula with Nagios

Reynier Pérez Mira rperezm at uci.cu
Wed Sep 23 04:18:42 CEST 2009


Jon Angliss wrote:
> On Tue, 22 Sep 2009 18:27:46 -0400, Reynier Pérez Mira
> <rperezm at uci.cu> wrote:
> 
> 
> What happens if you run the command as the user nrpe runs as? What do
> you get back? Any errors?  What happens when you run with env -i?
> 
> # su - nagios
> # env -i
> # /usr/local/nagios/libexec/check_bacula.pl -H 24 -w 2 -c 1 -j
> SP_SVEXPBD01-FD
> 
> This assumes nagios is the user your nrpe runs as.

I get this error:

install_driver(pgsql) failed: Can't locate DBD/pgsql.pm in @INC (@INC 
contains: /etc/perl /usr/local/lib/perl/5.10.0 
/usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 
/usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at 
(eval 3) line 3.
Perhaps the DBD::pgsql perl module hasn't been fully installed,
or perhaps the capitalisation of 'pgsql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql.
  at /usr/local/nagios/libexec/check_bacula.pl line 137

How I can install this driver?
Cheers


------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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/devconf
_______________________________________________
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