#linux #nagios #system-information #pseudo-fs

bin+lib tabin-plugins

Libs for building nagios-compatible check scripts, some scripts, and some libs to read from /proc and /sys on Linux

4 releases

Uses old Rust 2015

0.3.1 Apr 24, 2018
0.3.0 Apr 18, 2018
0.2.3 Apr 5, 2016
0.2.0 Dec 12, 2015

#606 in Unix APIs

BSD-3-Clause

200KB
4.5K SLoC

Tābin Plugins

Build Status

This crate contains some utilities for building nagios-compatible check scripts, some utilities for reading and dealing with system information on Linux, and several implementations of check scripts.

Library docs

See src/bin for the scripts that exist. You can see all their --help messages in the script docs.

The utilities are pretty stable, but the linux system information should probably be moved into something like procinfo-rs, although the implementation here appears to be more complete and type safe than any of the other options out there.


lib.rs:

Utitilty for writing nagios-style check scripts/plugins

There are three things:

  • The Status enum for representing health status
  • The procfs module, which contains rusty representations of some files from /proc
  • A few scripts in the bin directory, which contain actual nagios-compatible scripts

TODOs include

  • Nice logging, including some standard formats -- json and human would be nice
  • Some way of easily standardizing command-line args
  • Much of the code is hideous, and should not be

Dependencies

~24–34MB
~609K SLoC