Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'formulaid' tag is missing in keepalived template #97

Open
DiogoCruz40 opened this issue May 6, 2022 · 1 comment
Open

'formulaid' tag is missing in keepalived template #97

DiogoCruz40 opened this issue May 6, 2022 · 1 comment

Comments

@DiogoCruz40
Copy link

DiogoCruz40 commented May 6, 2022

When importing template keepalived to zabbix, it fails.
Says:
Invalid tag "/zabbix_export/templates/template(1)/discovery_rules/discovery_rule(1)/filter/conditions/condition(1)": the tag "formulaid" is missing.

@DiogoCruz40 DiogoCruz40 changed the title 'formulaid' tag is missing 'formulaid' tag is missing in keepalived template May 6, 2022
@stephankn
Copy link
Collaborator

Hello @DiogoCruz40 ,
that is quite sad to hear. Parts of this repository holds older templates which are sort of unmaintained. The keepalived is one of them.
I keep the PostgreSQL one maintained, as I can test it. For keepalived I have no such testing possibility.

The problem you are facing is caused by a problem of Zabbix itself where it fails to import very old templates:
https://support.zabbix.com/browse/ZBX-19968

Besides waiting for Zabbix to fix the import bug, one solution would be if you or someone would update the template to a more recent LTS version of Zabbix.

Maybe simply either removing the formula tag or specifying as empty will make it work. Given that the template contains only two items, re-creating them in Zabbix 5.0 and exporting the template might be easier.

If someone provides a working template, I am happy to merge it in. I could only do a blind fix without verification which I do not want to do.

For this specific case: It runs a discovery rule on key keepalived.addr.discovery[/etc/keepalived/keepalived.conf]. With this it creates items for each discovered address with key keepalived.addr.availability[{#KADDR}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants