Opened 12 years ago

Closed 12 years ago

#150 closed defect (fixed)

geen hybrids in nagios - script ..../genesis/tools/yaml2nag.py

Reported by: huub Owned by: nobody
Priority: major Milestone: WL-9.0-RELEASE
Keywords: Cc:
Resource needed to fix:

Description

Het script dat de nagios configuratiefile genereert uit de yaml configuratiefiles kent kennelijk nog geen 'hybrids'.
genesis/tools/yaml2nag.py

Change History (1)

comment:1 by rick, 12 years ago

Resolution: fixed
Status: newclosed

Is eigenlijk beheer/monitoring, maar als we toch bezig zijn:

rvdzwet@bunty tools]$ svn diff
Index: yaml2nag.py
===================================================================
--- yaml2nag.py	(revision 10694)
+++ yaml2nag.py	(working copy)
@@ -41,7 +41,7 @@
       continue
 
     hostgroups = []
-    if datadump['nodetype'] == 'CNode':
+    if datadump['nodetype'] in ['CNode', 'Hybrid']:
       datadump['use'] = 'host-pnp'
       hostgroups.append('nodes-7-2')
 
[rvdzwet@bunty tools]$ svn ci yaml2nag.py
Sending        yaml2nag.py
Transmitting file data .
Committed revision 10695.
Note: See TracTickets for help on using tickets.