Ad Widget

Collapse

How can I start a script on the agent side?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nicolas.rabine
    Junior Member
    • Jan 2010
    • 7

    #1

    How can I start a script on the agent side?

    Hello,

    I want Zabbix for an "External check" item to start an external script on the agent side, but instead, Zabbix is trying to start the script on the server side. I have the following error :

    Script /etc/zabbix/externalscripts/script_perso2 returned nothing.

    The key of my item is : script_perso[]
    And the agent configuration file has the following entry : UserParameter=script_perso,D:\Linkbynet\Scripts\Za bbix\test.bat

    Could you please tell me what to do for Zabbix to start the script on the agent side instead of trying to start it on the server side?

    Thanks in advance.

    Best regards,

    Nicolas Rabine
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Originally posted by nicolas.rabine
    The key of my item is : script_perso[]
    And the agent configuration file has the following entry : UserParameter=script_perso,D:\Linkbynet\Scripts\Za bbix\test.bat

    Could you please tell me what to do for Zabbix to start the script on the agent side instead of trying to start it on the server side?
    Replace "External check" by "Zabbix agent" in item configuration.

    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • nicolas.rabine
      Junior Member
      • Jan 2010
      • 7

      #3
      Thanks a lot Alixen!

      Nico

      Comment

      Working...