Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/curasystems/zabbix_sender
Simple node.js zabbix agent sender wrapper (agent for windows and smartos included others welcome)
https://github.com/curasystems/zabbix_sender
Last synced: 3 months ago
JSON representation
Simple node.js zabbix agent sender wrapper (agent for windows and smartos included others welcome)
- Host: GitHub
- URL: https://github.com/curasystems/zabbix_sender
- Owner: curasystems
- License: mit
- Created: 2013-09-03T08:52:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-03T12:30:33.000Z (over 11 years ago)
- Last Synced: 2024-04-26T10:41:52.116Z (10 months ago)
- Language: JavaScript
- Size: 227 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-repos - curasystems/zabbix_sender - Simple node.js zabbix agent sender wrapper (agent for windows and smartos included others welcome) (JavaScript)
README
zabbix_sender
=============Simple node.js zabbix agent sender wrapper (agent for windows and smartos included others welcome)
# Zabbix-Sender to send information to a Zabbix-Server
You just need your items and the zabbix_agentd.conf path.
Server information and Port is read out of the zabbix agent config.### Usage and example
```
// npm module
// var ZabbixSender = require('zabbix_sender');
// git cloned
var ZabbixSender = require('./index');var configPath = 'C:\\zabbix\\zabbix_agentd.conf';
var itemsToSend = {
'item.key': 'value',
'why.dont': 1000,
'error.message': 'example error message',
'another.key': false
};// With config file of zabbix_agent
var sender = new ZabbixSender(configPath);
sender.send(itemsToSend);// Without config file you need to specify zabbixHost and monitoredHostName (host name as defined in zabbix!)
var zabbixHost = '127.0.0.1';
var zabbixPort = 10051;
var monitoredHostName = 'HOSTNAME';var sender = new ZabbixSender(zabbixHost, zabbixPort, monitoredHostName);
sender.send(itemsToSend);
```