Git Product home page Git Product logo

Comments (5)

EstebanMonge avatar EstebanMonge commented on July 26, 2024

Hello I can reproduce the problem.

When a HostGroup is empty the parsing fails!!!

from nagiosvshell.

chrislaskey avatar chrislaskey commented on July 26, 2024

I'm having some trouble reproducing the problem on my end. Can you post your Nagios configuration for the host that is causing the error? Make sure to censor any important information first!

Thanks Esteban, really appreciate all of your feedback!

from nagiosvshell.

EstebanMonge avatar EstebanMonge commented on July 26, 2024

OK... I will to try to explain.

We have several HostGroups:
infraestructura
integracion
linux-servers

All of these hostgroups contains almost one host. If I created a empty hostgroup (without members)... for example:
empty-hostgroup

And restart the nagios service... the problems appears, the hostgrups.cfg content:

define hostgroup {
hostgroup_name empty-hostgroup
alias Empty
register 1
}

define hostgroup {
hostgroup_name infraestructura
alias Infraestructura
members infrahappyserver1,infrahappyserver2,infrahappyserver3,infrahappyserver4,infrahappyserver4,infrahappyserver5
register 1
}

define hostgroup {
hostgroup_name integracion
alias Integracion
members happyintegratedserver1,happyintegratedserver2,happyintegratedserver3,happyintegratedserver4,happyintegratedserver4
register 1
}

define hostgroup {
hostgroup_name linux-servers
alias Linux Servers
members NagiosCoreHappyServer
register 1
}

If I delete the empty-hostgroup. Problem resolved, the content of hostgroups.cfg file:
define hostgroup {
hostgroup_name infraestructura
alias Infraestructura
members infrahappyserver1,infrahappyserver2,infrahappyserver3,infrahappyserver4,infrahappyserver4,infrahappyserver5
register 1
}

define hostgroup {
hostgroup_name integracion
alias Integracion
members happyintegratedserver1,happyintegratedserver2,happyintegratedserver3,happyintegratedserver4,happyintegratedserver4
register 1
}

define hostgroup {
hostgroup_name linux-servers
alias Linux Servers
members NagiosCoreHappyServer
register 1
}

from nagiosvshell.

chrislaskey avatar chrislaskey commented on July 26, 2024

Thanks for the additional information, it was a big help identifying the issue.

Release v2.0.0-414 (eca71f3) should fix empty hostgroups and servicegroups. Let me know how it works on your end!

from nagiosvshell.

hedenface avatar hedenface commented on July 26, 2024

Looks like this was fixed! Closing the issue. Re-open if you think otherwise.

from nagiosvshell.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.