Open Banzai292 opened 3 years ago
Hi,
thanks for your feedback. And Sorry for the Late Reply..
Anyway, the check_borgmatic seems to run as it should in your local shell. In the output it says "Critical" last backup is 6 days old, so borgmatic can read the data?!
client$>/usr/lib/nagios/plugins/check_borgmatic.py -w 86400 -c 185400
CRITICAL - **last borgmatic backup: 2021-03-19 11:36:52** (age: 6 ....
Which OS is running on your client? Debian/Ubuntu/CentOS?
Can you please run sudo borgmatic --list --successful --last 1 --json
with your nagios user on the client and post the output?
Best regards, Chris
Hello,
This message comes when querying via NRPE from the Nagios server.
The call on the client (with or without sudo):
Other NRPE calls work:
nrpe.cfg:
A change to:
results in
NRPE: Unable to read output
/etc/sudoers.d/nagios_borgmatic:
nagios ALL= NOPASSWD:/usr/local/bin/borgmatic --list --successful --last 1 --json
I also tried the --nagios option with no success!