please help how to test: check_bacula_lastbackup.pl

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Auel
Posts: 6
Joined: Wed Feb 19, 2020 7:37 am

please help how to test: check_bacula_lastbackup.pl

Post by Auel »

Hello everyone,

I am trying to see the status of my last backups of bareos with nagios, I have downloaded this plugins and what I created in:/usr/local/nagios/libexec/

I have given him the necessary permits and I have assigned him to nagios.

but there is no information on how to test the plugins, someone could tell me how to test the plugins. If someone uses other plugins and knows how to use it, tell me something.

My configuration

define service{
use generic-service
host_name Backups-Bareos
service_description Check Bacula Last Backup
contact_groups admins
check_command check_bacula_last_backup!bareos-fd
notifications_enabled 1
}

define command{
command_name check_bacula_last_backup
command_line $USER1$/check_bacula_lastbackup.pl -client $ARG1$
}

My result:
Check Bacula Last Backup
CRITICAL 06-21-2020 17:01:21 0d 0h 47m 34s 3/3 (No output on stdout) stderr: /usr/local/nagios/libexec/check_bacula_lastbackup.pl: 10: /usr/local/nagios/libexec/check_bacula_lastbackup.pl: use: not found

plugin links:
https://exchange.nagios.org/directory/P ... 2806657786


Thank you
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: please help how to test: check_bacula_lastbackup.pl

Post by scottwilkerson »

What do you get if you just run this from the CLI

Code: Select all

/usr/local/nagios/libexec/check_bacula_lastbackup.pl -client bareos-fd
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Auel
Posts: 6
Joined: Wed Feb 19, 2020 7:37 am

Re: please help how to test: check_bacula_lastbackup.pl

Post by Auel »

Hallo,

when running the plugins this is what comes out:

./check_bacula_lastbackup.pl -client bareos-fd

sh: 1: /usr/sbin/bconsole: not found

CRITICAL: Unable to find a valid backup for bareos-fd
Locked