Hi Dan,

Reference here [1], zabbix init.d script.

If "/mnt/kd/zabbix_agentd.conf" exists, then the complete agent config must be 
defined there.

If "/mnt/kd/zabbix_agentd.userparams.conf" is defined, and no 
"/mnt/kd/zabbix_agentd.conf", then an autogenerated entry:
--
Include=/mnt/kd/zabbix_agentd.userparams.conf
--
will be included in the autogenerated config.

Lonnie

[1] 
https://github.com/astlinux-project/astlinux/blob/1e27e446214c991eab6ce88f18549ce2c48b57c3/package/zabbix/zabbix.init#L116



> On Mar 26, 2025, at 7:04 AM, Dan Ryson <d...@ryson.org> wrote:
> 
> 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 <d...@ryson.org>
> Date: Wednesday, 26 March 2025 at 3:02 am
> To: AstLinux Users Mailing List <astlinux-users@lists.sourceforge.net>
> 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) 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​ _______________________________________________
> Astlinux-users mailing list
> Astlinux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
> 
> Donations to support AstLinux are graciously accepted via PayPal to 
> pay...@krisk.org.




_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to