running "barman check all --nagios" from nrpe

616 views
Skip to first unread message

Chris Withers

unread,
Jun 26, 2015, 1:32:06 PM6/26/15
to pgba...@googlegroups.com
Hi All,

Attempting to run "barman check all --nagios" from nrpe I hit the problem that it needs to be run as the barman user or root.

What's the canonical way to have nrpe run "barman check all"? 

Chris

MP

unread,
Jul 9, 2015, 8:04:57 AM7/9/15
to pgba...@googlegroups.com
Try sudo.

Anyway, interesting parameter "--nagios" is missing in documentation, if i read it correctly.

Dne pátek 26. června 2015 19:32:06 UTC+2 Chris Withers napsal(a):

Tommaso Sangiorgi

unread,
Nov 10, 2015, 5:50:38 AM11/10/15
to Barman, Backup and Recovery Manager for PostgreSQL
Hi Chris,
I use it on a Debian 8 with Icinga.

Add a line like this (using visudo) in /etc/sudoers

nagios ALL= NOPASSWD:/usr/lib/nagios/plugins/icinga_check_barman_pg1


in the nrpe.cfg

# check barman on pg1

command[check_barman_pg1]=sudo /usr/lib/nagios/plugins/./icinga_check_barman_pg1


define a service on Icinga like this

check_command                   check_nrpe_1arg!check_barman_pg1


At present NRPE 2.15 with command args was disabled because considered a security risk.

Reply all
Reply to author
Forward
0 new messages