Code

Small syntax fix
authorSven Velt <sven@velt.de>
Wed, 17 Feb 2010 15:50:34 +0000 (16:50 +0100)
committerSven Velt <sven@velt.de>
Wed, 17 Feb 2010 15:50:34 +0000 (16:50 +0100)
nagixsc_http2nagios.py

index 4c23fe50d908cf549b6df4e25cfaab5a5bf82956..b0e6fd266e3522e07136c7158d1078cbad5410df 100755 (executable)
@@ -111,11 +111,11 @@ class HTTP2NagiosHandler(MyHTTPRequestHandler):
                                self.wfile.write('Wrote %s check results, %s failed' % (count_services, count_failed))
                                return
                        else:
-                               http_error(500, 'Could not write all %s check results' % count_services)
+                               self.http_error(501, 'Could not write all %s check results' % count_services)
                                return
 
                else:
-                       http_error(500, 'Nag(IX)SC - No data received')
+                       self.http_error(502, 'Nag(IX)SC - No data received')
                        return