found the problem...
nagios ALL=(root) NOPASSWD:/usr/bin/barman need to apear after the definitions of the groups. as described in: http://askubuntu.com/questions/504652/a ... oesnt-work
thanks alot for those who were trying to assist!!!
Search found 5 matches
- Mon Mar 07, 2016 8:48 am
- Forum: Open Source Nagios Projects
- Topic: barman plugin
- Replies: 9
- Views: 3923
- Mon Mar 07, 2016 5:32 am
- Forum: Open Source Nagios Projects
- Topic: barman plugin
- Replies: 9
- Views: 3923
Re: barman plugin
sorry for late response: when i logged in as root i get the following:
/usr/lib/nagios/plugins/check-barman.rb -a backups_available -s angus -w 5 -c 6
1 backups available
su -l nagios -c '/usr/lib/nagios/plugins/check-barman.rb -a backups_available -s angus -w 5 -c 6'
no output
/usr/lib/nagios/plugins/check-barman.rb -a backups_available -s angus -w 5 -c 6
1 backups available
su -l nagios -c '/usr/lib/nagios/plugins/check-barman.rb -a backups_available -s angus -w 5 -c 6'
no output
- Wed Mar 02, 2016 1:38 am
- Forum: Open Source Nagios Projects
- Topic: barman plugin
- Replies: 9
- Views: 3923
Re: barman plugin
i tryed both options: command[check_barman]=sudo /usr/bin/barman check --nagios angus and command[check_barman]=sudo /usr/lib/nagios/plugins/check-barman.rb -a backups_available -s angus -w 5 -c 6 (and also without the sudo). i also tried the advise of adding * to sudoers file (nagios ALL=NOPASSWD:/...
- Tue Mar 01, 2016 2:20 pm
- Forum: Open Source Nagios Projects
- Topic: barman plugin
- Replies: 9
- Views: 3923
Re: barman plugin
actually i moved to work directly on barman (barman check --nagios angus) and still same thing happening, also without sudo (when executing it directly with sudo account, its working fine) sudo -U nagios -l Matching Defaults entries for nagios on localhost: env_reset, mail_badpass, secure_path=/usr/...
- Tue Mar 01, 2016 9:24 am
- Forum: Open Source Nagios Projects
- Topic: barman plugin
- Replies: 9
- Views: 3923
barman plugin
hi, whenver i use barman plugin, the NRPE respond with "NRPE: Unable to read output". i was adding nagios to sudo without password for this script, and when i execute the command in command line (from root), it apears fine: sudo /usr/lib/nagios/plugins/check-barman.rb -a backups_available ...