Get last Results from: verify, gc and prune via SSH

Hy Fabian!

Oh sorry, i forgot, that PBS has also a API for searching.

One other question:
Is it possible to run this command as a unprivileged user?
Our Monitoring is running with user nagios, this user doesn't have persmission to read that list

Is it possible to give the user readaccess to thos logs? Currently I'm not able to write a script what reads this via API -> sorry


Result if i start command as nagios
Code:
proxmox-backup-manager task list --all --output-format json-pretty
Password for "root@pam":
 
Hy!

For Monitoring PVE we are using check_pve.py. I will try to adop this for PBS
First Problem ist solved: Ticketcookie have to be renamed to

PBSAuthCookie
 
Hello

So api requests are now ok, but with my API URL i get only the last view days from tasks-list.
If I check the Task Section in PBS GUI (https://node:8007/#pbsServerAdministration:tasks) there are many more tasks

Is there something wrong in my api-request?
Is it possible to send searchcriteria, so only verify from one storage ist listet?


API URL: (also not showing all tasks when access via normal browser)

https://node:8007/api2/json/nodes/slbkpt88/tasks/

kr
Roland
 
by default it only shows the last 50 tasks - that can be changed with the 'limit' parameter. see the API docs for more details ;)
 
sorry, i have to learn a lot about api's

maybe someone needs the Url with filter and sample no limit

Code:
https://node:8007/api2/json/nodes/node/tasks/?typefilter=verificationjob&store=storage&limit=0

thanks
Roland
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!