Bugfix verdict

Fixed bugs in nagios.py with rests.