Hi Michael,
Thanks for the prompt reply and your insight.
I misunderstood that files added to /mnt/kd _replace_ and do not _add
to_ an autogenerated file. Zabbix agent continues to work fine after
renaming zabbix_agentd.userparams.conf => zabbix_agentd.conf.
Apparently, either file name in /mnt/kd does the same thing.
Best wishes,
Dan
On Tuesday, 25-03-2025 at 19:14 Michael Knill wrote:
Hi Dan
We use Zabbix extensively with Astlinux and it has become a critical
part of our infrastructure.
Just updating zabbix_agentd.userparams.conf should be all that you
need to edit. We use PSK so we have updated the init file to add this
but should not be necessary normally.
In Astlinux, normally autogenerated files added to /mnt/kd will
replace and not add to an autogenerated file as part of the init
process so yes this would be expected behaviour.
Regards
Michael Knill
From: Dan Ryson
Date: Wednesday, 26 March 2025 at 3:02 am
To: AstLinux Users Mailing List
Subject: [Astlinux-users] Zabbix Agent User Parameters
Team AstLinux,
I recently tried to enable Zabbix and a custom Zabbix Agent user
parameter to diagnose a fleeting, intermittent networking problem.
The AstLinux documentation (here [1]) was a great start. However, I
ran into trouble while trying to "include" a custom user parameter
using added file /mnt/kd/zabbix_agentd.userparams.conf as suggested by
the instructions. That file contained a single line starting with
"UserParameter=".
After some troubleshooting, I found a comment in
/usr/bin/zabbix_agentd.conf explaining to edit
/mnt/kd/zabbix_agentd.conf instead. (Note the missing "userparams"
part.) Much to my surprise, using that file name prevented the
zabbix_agent from starting. It wasn't until I put the whole
configuration (including Server, ListenPort, etc.) into
/mnt/kd/zabbix_agentd.conf that the agent began working. The custom
UserParameter, added as the last line, is also working.
Is this the expected behavior? Or is there something that I can do
to allow the auto-generated web parameters to be used by zabbix agent
- while adding the UserParameter via a separate file as suggested by
the documentation?
Thanks for any insight.
Dan
Links:
------
[1] https://doc.astlinux-project.org/userdoc:tt_zabbix_monitoring
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].