Code

Output service only if description is set
authorSven Velt <sven@velt.de>
Fri, 18 Dec 2009 14:50:07 +0000 (15:50 +0100)
committerSven Velt <sven@velt.de>
Fri, 18 Dec 2009 14:50:07 +0000 (15:50 +0100)
nagixsc_xml2cfg.py

index 844dc42bf52ae97b8f7a6852fe9d58d011c26479..3bb18574e5c37aa93a421afc37afc258b365abc6 100755 (executable)
@@ -73,6 +73,6 @@ for check in checks:
 
                print HOSTTEMPL % check
 
-       print SERVICETEMPL % check
-
+       if check['service_description']:
+               print SERVICETEMPL % check