Hi all
I’m having some issues getting my formulas syntax correct and I was hoping someone could help me out. I pull my servers entire mail log in to Zabbix as an item want search for several different strings and count the occurrence of each( and graph it naturally
) . I would like to avoid pulling each item like this log[/var/log/mail.log,string] as I would prefer for the Zabbix server to do the work.
I have setup a log item like this log[/var/log/mail.log]
And attempted to setup a calculated item like this
count("template_a:log[\"/var/log/mail.log \"].str(\"\")"string,60)
and this
count("template_a:log[/var/log/mail.log].str(string)",60)
but the item gives an error, “ Cannot evaluate function [count(60)]: item [template:log[/var/log/mail.log].str(string)] not found
Can anybody point out my mistake/s or give me a better way to do this.
Thanks in advance
Thys
I’m having some issues getting my formulas syntax correct and I was hoping someone could help me out. I pull my servers entire mail log in to Zabbix as an item want search for several different strings and count the occurrence of each( and graph it naturally
) . I would like to avoid pulling each item like this log[/var/log/mail.log,string] as I would prefer for the Zabbix server to do the work. I have setup a log item like this log[/var/log/mail.log]
And attempted to setup a calculated item like this
count("template_a:log[\"/var/log/mail.log \"].str(\"\")"string,60)
and this
count("template_a:log[/var/log/mail.log].str(string)",60)
but the item gives an error, “ Cannot evaluate function [count(60)]: item [template:log[/var/log/mail.log].str(string)] not found
Can anybody point out my mistake/s or give me a better way to do this.
Thanks in advance
Thys
Comment