Ad Widget

Collapse

External Script MySQL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AndrejusSa
    Junior Member
    • Dec 2017
    • 1

    #1

    External Script MySQL

    HI,
    OS: Ubuntu 16.04, xenial
    Mysql 6.3
    Zabbix default instalation;
    Main user for zabbix: zabbix

    should execute script, when remote web site down.

    node js script with argument (./dbin.js www.site.com ), which connects to same DB as zabbix, different schema, selecting data from one table and fill other table.

    If I run scrip as zabbix user in xterm, its OK, everythin is done.
    If I set as external script in Configuration\Actions\my Action->Operations->edit: Run remote script on current host->
    Operation tipe: Remote command
    Target list: Current host
    Execute on: zabbix server
    Commands: ./home/user/nodejs/DBin.js www.mywebsite.com

    Script shows that executed, but no data added to DB table

    Please, help, thank You
Working...