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