Closed gsg-git closed 9 months ago
I experimented a litte with the file and if i uncomment everything but the name and description and add it at the end the error is still at line 1 - whick confuses me a lot now - the error is the same when i create a new file. I use notepad++ and the codec is UTF 8
Hello @gsg-git.
if this is service template, then there is a missing variable definition register 0
.
I agree with @n5047c, but I'll also recommend that you start a thread on our Support Forums, as there are more community members over there who will be able to help you.
@n5047c Thank you! Its an old template copy from Nagios core 3.0.6 we have not updated for way too long. I tried to copy the config into a newer version 4 first then the last 3 and got an error with the config which doesnt lead to ans logical sense. The script told there where an issue at a line where just old commented out entrys where - i hope this could be helpful and i con finally continue. It took me for a test to add the config files to the least nagios 3 version at least a week of fixing without progress. I think i contact the forum how i could manage in the best timeconsuming way my project.
Thank you!
Hello! I am trying to use older nagios config files and the last problem the test skript has with an single service template file and its the same error if i add a name or a host group or both. I have no idea whant the problem could be. Heres the code:
Full Error: Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/gs-cfg/__passiv.cfg', starting on line 1)
Thank you for any hint!