Ad Widget

Collapse

use external scripts on managed host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GastonLux
    Junior Member
    • Jul 2022
    • 2

    #1

    use external scripts on managed host

    Hi, i'm a brandnew Zabbix user, trying to use external scripts.

    I've managed to get an external script running on the zabbix server, by creating an item for Host zabbix-server and creating a test script in zabbix-server:/usr/lib/zabbix/externalscripts

    When i create a similar item for another host (Host A), that is managed by zabbix-server, the executed script is still the one on zabbix-server, not the one on Host A.
    On Host A i created the same /usr/lib/zabbix/externalscripts directory, assuming that the item for Host A would run the scripts in that directory.

    Maybe i got the concept of external scripts wrong and they always (have to) run on the managing zabbix server and not on the managed hosts ??

    Gaston
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    External checks are run in the server (or proxy): https://www.zabbix.com/documentation...types/external

    If you want an item to execute something on the monitored host (using the Zabbix agent), see UserParameter: https://www.zabbix.com/documentation...userparameters

    Markku

    Comment

    • GastonLux
      Junior Member
      • Jul 2022
      • 2

      #3
      The use of UserParameter via zabbix_agent is what i was looking for.

      Thanks a lot

      Comment

      Working...