Ad Widget

Collapse

external check - strange behavior

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alfiere
    Member
    • May 2008
    • 51

    #1

    external check - strange behavior

    Hi all,

    I remember to have used external check with success some time ago.
    but now, with a fresh 16.1 version, I notice a strange behavior:

    I created a simple "uname -a" script which I saved in the Zabbix server in /etc/zabbix/externalscripts
    The problem is that all the items created for different servers show values related with the zabbix server. In this case, all the item shows the 'uname' of Zabbix server.

    Seems that zabbix is not able to associate the external check item to the right hostname.


    Any tips?
    Thanks a lot.
    Alf
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    ExternalScripts are run from zabbix_server with the given parameters.

    So "uname -a" is always executed on zabbix_server.

    If you want to run client/agent side scripts, you should use "UserParameter=...." in the agent's config file.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Zabbix always executes external checks on Zabbix server side. You may want to use user parameters in order to extend functionality of the agents. It makes little sense in this case because uname and hostname are already supported by the agents.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • alfiere
        Member
        • May 2008
        • 51

        #4
        Thanks a lot for the answers.

        'uname -a' was just an example, I need to execute a custom script.

        As suggested I;m going to follow the UserParameter road.

        Cheers,
        Alf

        Comment

        Working...