Ad Widget

Collapse

Zabbix User Parameter not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Darky777
    Junior Member
    • Jun 2024
    • 1

    #1

    Zabbix User Parameter not working

    Hi,

    I'm new to Zabbix, and I'm trying to set up monitoring of log files. Currently we are using Nagios with check_logfiles.exe program, and it would be great if I could also use this program with Zabbix, to keep all the config files and specifications regarding monitoring of those files.
    I'm using Zabbix 6.0.32 version with Agent 2 on Windows Server 2019.

    In the zabbix_agent2.conf file I added this line:

    UserParameter=log.check, check_logfiles.exe -f logfiles.conf

    There are in fact check_logfiles.exe and logfiles.conf files in zabbix root folder (C:\Program Files\Zabbix Agent 2).

    I created new item and trigger for specific host, but I keep getting error 'check_logfiles.exe' is not recognized as an internal or external command,operable program or batch file.
    When I manually run "check_logfiles.exe -f logfiles.conf" in cmd, it works normally. Not sure what I'm doing wrong.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    You may need to specify the full path to the check_logfiles.exe command in your UserParameter.

    Make sure you restart the agent2 service after you modify the config file.

    Comment

    Working...