Skip to content
Jeroen edited this page Oct 25, 2016 · 1 revision

Welcome to the Nimator wiki!

First up: note that the Getting Started section in the readme might be what you're looking for. This project is small, and the Wiki might be limited in places. Refer to the readme and the source code when in doubt, or Contact Us if you have questions.

To repeat some of the info in the readme: Nimator is a light-weight framework for creating monitoring applications, where you write your own system checks in C#. The code for a simple check could be as small as this:

public Task<ICheckResult> RunAsync()
{
    var level = File.Exists($"{folder}/important-file-{DateTime.Now.ToString("yyyy-MM-dd")}.txt")
        ? NotificationLevel.Okay
        : NotificationLevel.Error;

    return Task.FromResult<ICheckResult>(new CheckResult(ShortName, level));
}

This example main function (RunAsync()) in an ICheck will check if a certain file exists on disk (e.g was a certain log file written yet today?). If you can write the above kind of code, you can write monitoring checks!

Clone this wiki locally