Skip to content

Xymon sample perl worker that puts memory stats into an Influx db

Notifications You must be signed in to change notification settings

voiprodrigo/InfluxXymond

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

InfluxXymond

Xymon sample perl worker that puts memory stats into an Influx db

Even though I still like the default xymon rrd graphs, some people don't. Grafana is really good at displaying graphs and can read InfluxDB databases. Xymon's native rrd databases are a time series db, just like InfluxDB.

Grafana has alerting capabilities but is nowhere nearly as powerful as Xymon when it comes to real monitoring. Dashboard-wise, grafana wins hands-down.

Remember, this is just an example. I'll be learning Google's Go language while giving a refresh of Xymon a go (no pun intented).

How does it work?

Xymon has a xymond_channel http://xymon.sourceforge.net/xymon/help/manpages/man8/xymond_channel.8.html interface that hooks into one of xymond's channels (status, data, ..) and puts this out to a worker module. Doesn't sound very complicated and it really isn't. You can write a very simple script that grabs stdin and prints it to stdout:

#!/usr/bin/perl while (<>){ print $_; }

call it maybe print_stdin.pl and use it like so: ./xymond_channel --channel=status ./print_stdin.pl

Apart from some parsing and storing it in a database, that's it.

The things you need:

  • Xymon, of course
  • influxdb
  • perl

About

Xymon sample perl worker that puts memory stats into an Influx db

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%