Skip to content

Horsewiththeosteohondrose/node-zabbix-sender

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zabbix-sender

A zabbix_sender wrapper.

Install

npm install zabbix-sender

Usage

var ZabbixSender = require('zabbix-sender');
var sender       = new ZabbixSender();

sender.send({
  'valueA': 1,
  'nested': {
    'valueB': 2,
  }
}, function(err) {
  if (err) throw err;

  console.log('Wrote keys to zabbix');
});

Nested properties

Nested properties are represented as flat strings. The join Character can be defined via the "joinString" option.

Configuration options

The ZabbixSender constructor takes an object which has the following defaults:

  • config: The configuration file to use. Default: /etc/zabbix/zabbix_agentd.conf
  • bin: The path to the zabbix_sender program. Default: /usr/bin/zabbix_sender
  • hostname: The hostname to report to zebbix. Default: - (zabbix default)
  • server: The zabbix server (IP or hostname) to use. Default: (zabbix default)
  • port: The zabbix server port to use. Default: (zabbix default)
  • debug: If set to true, the binary will not be called. Default : false
  • logger: A bunyan-compatible logger object. Default: (a logger which discards all output).
  • joinString: String for concatenating nested object properties. Default: .

License

zappix-sender is licensed under the MIT license.

About

Its a node - zabbix - sender

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%