0

We are using Zabbix for services monitoring.

There are some essential monitoring configured. I want to have timeline of version strings of my service along with this monitorings. That would give me opportunity to see that upgrading to this version altered overall error-count.

Is it possible?

1

2 Answers 2

2

Yes, it's possible.

You can pass arbitrary data from your Zabbix agent to the Zabbix server by using "UserParameter" fields in zabbix_server.conf, i.e. agent configuration file.

General syntax is:

UserParameter=section[id], command

For example, let's assume you want to monitor how many users are logged in. You would use:

UserParameter=sys[num_users], who | wc -l

(I assume you know how to configure the Zabbix server to receive this data, it's pretty straightforward - just create a new item, bind it to a template and connect a template to a server or server group).

If you want to monitor some file for a specific string, just use grep, sed, cut, tr and other standard Unix tools. If you need more complex things, just write a shell script.

Sign up to request clarification or add additional context in comments.

Comments

0

Update to Igor's answer:

UserParameter is declared client-side in zabbix_agentd.conf or zabbix_agent.conf (depending on whether you're using the daemon or inetd version), not zabbix_server.conf.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.