Checking Bacula with Nagios

Jon Angliss jon at netdork.net
Wed Sep 23 02:41:31 CEST 2009


On Tue, 22 Sep 2009 18:27:46 -0400, Reynier Pérez Mira
<rperezm at uci.cu> wrote:

>Hi every:
>I need to check Bacula status over Nagios. For that I follow the steps 
>explained here: http://wiki.bacula.org/doku.php?id=nagios_active_checks. 
>After get NRPE working I get this error in my Nagios:
>NRPE: Unable to read output.
>
>The NRPE configuration on Bacula Server is this one:
>command[check_bacula_baculaserver_dir]=/usr/local/nagios/libexec/check_bacula.pl 
>-H 24 -w 2 -c 1 -j SP_SVEXPBD01-FD
>
>And the NRPE command in Nagios config is this:
>#Check Bacula
>define service{
>	use 		       local-service
>         host_name              10.128.50.11
>         service_description    Check Bacula Job
>         check_command          check_nrpe!check_bacula_baculaserver_dir
>}
>
>Can any tell me where the problem is?

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.
-- 
Jonathan Angliss
<jon at netdork.net>


------------------------------------------------------------------------------
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