please help how to test: check_bacula_lastbackup.pl

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

please help how to test: check_bacula_lastbackup.pl

Postby Auel » Sat Jun 20, 2020 4:50 pm

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
Auel
 
Posts: 6
Joined: Wed Feb 19, 2020 7:37 am

Re: please help how to test: check_bacula_lastbackup.pl

Postby scottwilkerson » Mon Jul 06, 2020 3:35 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 18640
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: please help how to test: check_bacula_lastbackup.pl

Postby Auel » Mon Jul 13, 2020 9:48 am

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
Auel
 
Posts: 6
Joined: Wed Feb 19, 2020 7:37 am


Return to Community Support

Who is online

Users browsing this forum: Google [Bot] and 28 guests