Is there a possibility to monitor duplicati via prometheus? The log file Duplicati writes contains a lot of information, what is missing are simple statements, backup successful, backup failed. We have a multisystem environment, Mac Linux and Windows. We want to find out centrally if a backup has been written and the status. How do we get the logs that are written in the database? In the webui I can view the logs.
Thanks
Welcome to the Duplicati Forum, @w3bservice. Glad you’re here!
There are a couple of different options for you to get central reporting of Duplicati backup jobs. The first is dupReport, which is a Python system that grabs your result emails from Duplicati jobs and creates status reports from them. The second is duplicati-monitoring.com, which is a hosted web service that collects http status reports from your backup jobs and formats them into nice reports. Either one of those should be able to give you what you’re looking for.
I don’t think capability exists now. Can you do integration? Duplicati offers reporting options to pass basic information. JSON is a machine-friendly option. After that, the third-party reporting systems extend ability.
dupReport can actually feed Apprise that does push notifications into a lot of other systems. Prometheus seems to prefer pull, but there’s seemingly an option for push. Duplicati scripting options may help there.
how can I read the parameter %PARSEDRESULT% via shell?
What OS is this? You show what looks like Windows batch file syntax but wrong exact variable name.
If Windows, try %DUPLICATI_PARSED_RESULT%. If Linux, maybe $DUPLICATI_PARSED_RESULT.
Other syntaxes are possible. It’s just an environment variable, so read the docs for whatever shell it is.
Two underscores after DUPLICATI
%DUPLICATI__PARSED_RESULT%
or $DUPLICATI__PARSED_RESULT
I am using the latter successfully
Hello everyone, I was searching some days ago prometheus exporter for duplicati and also did not found, so i’m developing an exporter, so if you are interested you can check GitHub - AleixoLucas42/duplicati-promethes-exporter: A simple prometheus exporter for Duplicati backup
The last couple of days I have been getting emails from Duplicati Monitoring indicating that there has been a problem with one of my backups.
However upon investigating I am not able to determine what it means by abnormality. As far as I can tell nothing went wrong with the backup. The Duplicati UI itself shows nothing. The Duplicati Monitoring UI doesn’t show anything either. No errors, no warnings. Unqualified success.
The version of Duplicati running the job is 2.0.8.1.
Is there a way I can tell why this message is being emitted?
Edit: I’ve just had a thought, though I’m not sure if there’s truth to it. The machine in question is a laptop. The backup is scheduled to run at 1:00PM, but often the machine is not powered on and the backup is delayed until later in the afternoon/evening. Could this “lateness” be the cause of the message?
The message was developed very early in the development phase where we did not have much information to report, so the message is fairly empty.
We will update the message with more information (like the machine/backup id + name) and the reason for the message.
But yes, it could certainly be the delay that triggers it. We will add some adjustment values to the abnormality detector so you can adjust if you expect more fluctuation than we estimate.
I made sure I had the laptop powered on today so it could run “on schedule” and I didn’t receive the abnormality report when the job ran. It appears that indeed could have been the issue.