I don't know, is it a bug or is it a feature.
I want to monitor a logfile which is not a simple phrase. So I wrote a little Shell-Script und put it to the agent config as a UserParameter.
If the script found the expression it returns the matched lines, if not it returns nothing.
But if a UserParameter returns nothing it will be mark as an unsupported item.
And this is poor.
Because the script is only running every 10 minutes - i think it's the interval for unsupported items to check whether they are ok. The normal update interval is set to 30 seconds.
In my opinion in this case the item should not marked as unsupported.
Now I can modify my script to return every time a string but than I have a lot of useless data in the db for this item.
Who has an idea to solve this? Is there an other way to put the results of the script to the zabbix item? Perhaps Zabbix sender will be a way but then I need a cronjob outside of zabbix.
Any ideas are welcome...

I want to monitor a logfile which is not a simple phrase. So I wrote a little Shell-Script und put it to the agent config as a UserParameter.
If the script found the expression it returns the matched lines, if not it returns nothing.
But if a UserParameter returns nothing it will be mark as an unsupported item.
And this is poor.

Because the script is only running every 10 minutes - i think it's the interval for unsupported items to check whether they are ok. The normal update interval is set to 30 seconds.
In my opinion in this case the item should not marked as unsupported.
Now I can modify my script to return every time a string but than I have a lot of useless data in the db for this item.
Who has an idea to solve this? Is there an other way to put the results of the script to the zabbix item? Perhaps Zabbix sender will be a way but then I need a cronjob outside of zabbix.
Any ideas are welcome...
Comment