Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-10010

Zabbix Server does not log failing Javascripts

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      I have a script or Type Webhook with some javascript written.

      I´ve been debugging some javascript code and it took me some time until i found a single random character in the was causing the issue.

      It was causing an Uncaught SyntaxError which therefor didn´t fire anything script at all, this error is also not logged anywhere if i am not putting a try & catch around the whole function.

       

       

      It would be good if Javascript syntax errors would be logged in the zabbix server logfile. Currently the are only workarounds possible to see if a script is fired at all:

      • Either it works and does what its supposed to do
      • Put console.log at the start of the function to confirm there are no syntax errors
      • copy & paste the whole function into a nodejs or something similar and hope for the best

      If the Script fails with SyntaxError no information is displayed whatsoever.

            Unassigned Unassigned
            zarkosunaric Zarko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: