Ad Widget

Collapse

ExternalScripts directive

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mike smith
    Junior Member
    • Jun 2012
    • 18

    #1

    ExternalScripts directive

    i originally installed zabbix 2.0.4 as a test and then migrated that installation to another piece of hardware. everything has been running fine until i went to create a new external script today.

    old system datadir=/home/zabbix
    new system datadir=/usr/local/etc/zabbix2

    all my working scripts were from the old system and following a forum post here, i believe i backed up a few mysql tables and imported on the new hardware. then i manually copied my externalscripts to the new externalscripts directory and everything worked fine.

    today i created a new external script, and went to create an item to use it. zabbix errors out and complains that the script can't be found in the old system path.

    i manually hardcoded ExternalScripts to the new system path in zabbix_server.conf, restarted zabbix_server and apache, re-enabled the item, it errors out with the same message. deleted the item and recreated it, same thing.

    looking at existing ExternalCheck items, they show the correct, new system path. why is it NOT picking up my ExternalScripts correctly?
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Just to be sure... when you hardcoded the new path for ExternalScripts value below, you removed the comment (#) or created a new line, right?

    In zabbix_server.conf:

    ### Option: ExternalScripts
    # Full path to location of external scripts.
    # Default depends on compilation options.
    #
    # Mandatory: no
    # Default:
    # ExternalScripts=${datadir}/zabbix/externalscripts

    Comment

    • mike smith
      Junior Member
      • Jun 2012
      • 18

      #3
      man i wish it was that simple yes, i uncommented it.

      zabbix_server.conf:ExternalScripts=/usr/local/etc/zabbix2/zabbix/externalscripts

      Comment

      • mike smith
        Junior Member
        • Jun 2012
        • 18

        #4
        i'm an idiot...

        the item is on a proxy...

        Comment

        Working...