Ad Widget

Collapse

Can't change ExternalScripts parameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • docent
    Junior Member
    • Oct 2010
    • 26

    #1

    Can't change ExternalScripts parameter

    Hi!
    I have Zabbix 5.0.5.
    I'v changed parameters AlertScriptsPath and ExternalScripts in configuration file zabbix_server.conf to /etc/zabbix/alertscripts and /etc/zabbix/externalscripts respectively, but Zabbix still trying to open external scripts from the directory /usr/lib/zabbix/externalscripts. Alert scripts open from new path /etc/zabbix/alertscripts.
    Code:
    ### Option: AlertScriptsPath
    # Full path to location of custom alert scripts.
    # Default depends on compilation options.
    # To see the default path run command "zabbix_server --help".
    #
    # Mandatory: no
    # Default:
    # AlertScriptsPath=${datadir}/zabbix/alertscripts
    
    #AlertScriptsPath=/usr/lib/zabbix/alertscripts
    AlertScriptsPath=/etc/zabbix/alertscripts
    
    ### Option: ExternalScripts
    # Full path to location of external scripts.
    # Default depends on compilation options.
    # To see the default path run command "zabbix_server --help".
    #
    # Mandatory: no
    # Default:
    # ExternalScripts=${datadir}/zabbix/externalscripts
    
    #ExternalScripts=/usr/lib/zabbix/externalscripts
    ExternalScripts=/etc/zabbix/externalscripts
    Click image for larger version

Name:	error.png
Views:	383
Size:	4.2 KB
ID:	412677
    Last edited by docent; 09-11-2020, 18:17.
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Maybe you have specified ExternalScripts option multiple times?
    Code:
    $ grep ExternalScripts /etc/zabbix/zabbix_server.conf

    Comment

    • docent
      Junior Member
      • Oct 2010
      • 26

      #3
      root@zbxa:/etc/zabbix# grep ExternalScripts /etc/zabbix/zabbix_server.conf
      ### Option: ExternalScripts
      # ExternalScripts=${datadir}/zabbix/externalscripts
      #ExternalScripts=/usr/lib/zabbix/externalscripts
      ExternalScripts=/etc/zabbix/externalscripts

      Comment

      • docent
        Junior Member
        • Oct 2010
        • 26

        #4
        Sorry
        I found mistake.
        The proxy has been configured on this host

        Comment

        Working...