[Off list for noise mitigation.] Thanks for the tip, Lonnie.
I'm now in pretty good shape after a day of tinkering and testing. However, I checked this and no zabbix files appear. Zabbix is a very useful tool! Best wishes, Dan On Wednesday, 26-03-2025 at 12:21 Lonnie Abelbeck wrote: Hi Dan, Just a tip, when things are not acting as expected while editing using the CLI, issue the "show-union" command: # show-union -- example output -- /mnt/asturw/stat/var/www/admin/.htpasswd /mnt/asturw/etc/passwd- /mnt/asturw/etc/passwd /mnt/asturw/etc/rc.modules /mnt/asturw/etc/shadow /mnt/asturw/etc/shadow- /mnt/asturw/etc/udev/rules.d/70-persistent-net.rules -- Your show-union files may differ, but if there are files with 'zabbix' in them, that is a sign of overwritten init.d scripts, symlinks or such. Lonnie > On Mar 26, 2025, at 9:58 AM, Dan Ryson wrote: > > Hi Lonnie and Team AstLinux, > > After reviewing the zabbix init.d script, it's apparent that the provided documentation and code is perfect. Specifically, "additional" parameters in /mnt/kd/zabbix_agentd.userparams.conf are included. > > I've repeated my prior steps but can't repeat the problem that I thought I observed. Please file this one under USER ERROR. > > Thank you for the guidance. I also appreciate going the extra mile to check the script. Apologies for the confusion. > > Dan > > On Wednesday, 26-03-2025 at 8:41 Lonnie Abelbeck wrote: > 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 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 > > 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) 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._______________________________________________ > 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.
_______________________________________________ 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.