Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including node-red-contrib-zabbix-sender with all npm packages installed. Try it out:

var nodeRedContribZabbixSender = require("node-red-contrib-zabbix-sender")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

node-red-contrib-zabbix-sender v0.1.0

Node-RED node to send data to Zabbix server

Node-Red-Zabbix-Sender

About

Send your data to Zabbix using the Zabbix trapper protocol. This node is the wrapper around node-zabbix-sender library.

Usage

To send simple item data, send message with following payload:

msg.payload = [
    "webserver",
    "httpd.running",
    0
]

You can set default hostname in node settings, then you can send just item name and value:

msg.payload = [
    "httpd.running",
    0
]

You can also send multiple items at once, just construct payload as array of arrays:

msg.payload = [
    [
        "dbserver",
        "mysql.ping",
        1
    ],
    [
        "webserver",
        "httpd.running",
        0
    ]
]

License

Code released under the MIT License. Zabbix logo is used under Zabbix Trademark and Logo Usage Policy.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free