Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

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

 
 
 

Contributors

Languages