Page 1 of 1

please help how to test: check_bacula_lastbackup.pl

Posted: Sat Jun 20, 2020 4:50 pm
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

Re: please help how to test: check_bacula_lastbackup.pl

Posted: Mon Jul 06, 2020 3:35 pm
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

Re: please help how to test: check_bacula_lastbackup.pl

Posted: Mon Jul 13, 2020 9:48 am
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