[ZBXNEXT-5671] Create zabbix_js utility Created: 2019 Sep 10  Updated: 2024 Apr 10  Resolved: 2020 Jan 29

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: 4.4.5rc1, 5.0.0alpha2, 5.0 (plan)

Type: New Feature Request Priority: Trivial
Reporter: Andris Zeila Assignee: Andris Zeila
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team A
Sprint: Sprint 57 (Oct 2019), Sprint 58 (Nov 2019), Sprint 59 (Dec 2019), Sprint 60 (Jan 2020)
Story Points: 1

 Description   

Create zabbix_js utility for embedded script testing. This utility must execute user script with a string parameter and print the result.

Supported parameters:

  • -s <filename> - the filename of script to execute. If '-' specified as filename the script will be read from stdin
  • -i <filename> - the filename of input parameter. If '-' specified as filename the input will be read from stdin
  • -p <parameter> - the input parameter (to specify parameter from command line without using files)
  • -l <parameter> - the log level (Zabbix log level value)
  • -t <parameter> - the timeout

In the case of compilation of execution errors zabbix_js must print the error in stderr and exit with exit code 1. Otherwise zabbix_es must print the value returned from script.

Any logging must be also written to stderr.



 Comments   
Comment by Andris Zeila [ 2020 Jan 06 ]

Released ZBXNEXT-5671 in:

  • pre-4.4.5rc1 fa43a87b45
  • pre-5.0.0alpha1 2da0c6383f
Comment by Alexander Vladishev [ 2020 Jan 29 ]

Updated documentation:

Generated at Wed Apr 02 11:54:56 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.