Hi all,
I have written an application that allows to add users automatically by using the Zabbix API.
I would like the user to be able to see its screens in the dashboard in the favorite screen window when she logs in.
Therefore I would like to add favorite screen programmatically using the API or some other method.
Unfortunately, I have not been able to find anything in the API to do this.
However, I have seen that favorite screens are stored on the 'profiles' table of the database.
I tried to insert a record on this table by using 'web.favorite.screenids' as 'idx' field.
However, Zabbix tries to use the profileid that I have used to insert other records, thus obtaining a DUPLICATE error.
Is there any way to do this correctly, without incurring in errors?
Thanks in advance.
I have written an application that allows to add users automatically by using the Zabbix API.
I would like the user to be able to see its screens in the dashboard in the favorite screen window when she logs in.
Therefore I would like to add favorite screen programmatically using the API or some other method.
Unfortunately, I have not been able to find anything in the API to do this.
However, I have seen that favorite screens are stored on the 'profiles' table of the database.
I tried to insert a record on this table by using 'web.favorite.screenids' as 'idx' field.
However, Zabbix tries to use the profileid that I have used to insert other records, thus obtaining a DUPLICATE error.
Is there any way to do this correctly, without incurring in errors?
Thanks in advance.