ConSol-Monitoring / omd

OMD - Open Monitoring Distribution Labs Edition.
http://omd.consol.de
GNU General Public License v2.0
171 stars 35 forks source link

Thruk - Config Parse Errors with comments #81

Closed matrix1000 closed 5 years ago

matrix1000 commented 5 years ago

Hi,

I get a problem with commented out lines in the Web Config Tool from Thruk.

For an example: duplicate attribute address in ‘address 192.168.0.12’ in [TEST.cfg:7] File: /omd/sites/somthing/etc/naemon/conf.d/network/TEST.cfg Content:

# define host{                                                                                                                                                                                                                              
#        host_name       test-switch                                                                                                                                                                                                          
#        use             switch_campus                                                                                                                                                                                                        
#        alias           test                                                                                                                                                                                                       
#        address         192.168.0.11                                                                                                                                                                                                         
#        address         192.168.0.12                                                                                                                                                                                                         
# }      

Version: Thruk Monitoring Webinterface Version 2.28 OMD 3.00-labs-edition Core: naemon

sni commented 5 years ago

fix in Thruk: https://github.com/sni/Thruk/commit/36c336e2926a27080d4ddcb9155d61a9556949b4

thanks for reporting this.