I'm not sure to have 100% understood what you're looking for, if it is 
about finished jobs (then search in the database is fine) or actually 
running, planned and so on, which are only known by the director and are 
lost if there's a crash.


On Monday, August 21, 2023 at 11:10:06 AM UTC+2 Guy Van Sanden wrote:

> Can I get the status of jobs from the database directly?
> I'm rebuilding my Zabbix template to monitor bareos jobs, but that part is 
> missing.
>
> I have this currently
>
> jobquery = "select distinct name from job where type = 'B' and clientid in 
> (select clientid from client where jobretention <> 0);"
> -> gets the jobs
>
> for job in jobs:
>   statusquery = ("select * from job where name = '%s' order by endtime 
> desc" %(job['name']))
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/eb0cc08c-471e-4cdc-b5a6-2b9f53cac0fbn%40googlegroups.com.

Reply via email to