Nagios check_bareos
=====================
-
Add Nagios Console configuration Create file /etc/bacula/nagios-console.conf OR /etc/bareos/nagios-console.conf with content of
Console { Name = nagios Password = "" } Director { Name = director DIRport = 9101 address = 127.0.0.1 Password = "" }
-
Add restricted user to bareos/bacula director.conf
Console { Name = nagios Password = "" CatalogACL = MyCatalog CommandACL = status, .status, list JobACL = all }
-
Copy this script to '/usr/local/nagios/libexec/check_bareos.pl'
-
Add 'check_bareos' command to nrep.cfg
echo "command[check_bareos]=/usr/local/nagios/libexec/check_bareos.pl
- Now add a nagios nrpe service check with parameter "-j "