hpcugent/VSC-tools — pull request #26 by piojo (2012-11-16 19:56:10+00:00)
Title: Add a class for printing reliably Nagios test results

As discussed in some remote team meeting, it's a PITA to do Nagios checks and find out that the performance data is being printed wrongly and the graphs are bogus.

I have added a new class for addressing this. It's just a `dict` with Nagios-compatible stringification.

Basic usage wold be:

```python
n = NagiosResult('hello, world')
n = NagiosResult('hello, world', performance=1, performance_critical=10)
```

When printing `n`, Nagios and pnp4nagios will understand the performance data and display correct graphs.

It is compatible with the `NagiosReporter` class, BTW.