Skip to content

A small library that provides types to parse and operate on a Nagios-compatible range

License

Notifications You must be signed in to change notification settings

puetzp/nagios-range

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nagios-range

This is a very small Rust library that simply parses a Nagios range as defined in the Nagios development guidelines.

Example

use nagios_range::{NagiosRange, Error};

fn main() -> Result<(), Error>{
    let range = NagiosRange::from("@~:10");
    assert!(range.is_ok());
    assert!(range?.checks_inside());
    assert!(range?.start_is_infinite());
    assert!(range?.check(5.0));
}

About

A small library that provides types to parse and operate on a Nagios-compatible range

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages