Host groups and templates
Re: Host groups and templates
Excuse me for not replying anymore, I had a 2-week springbreak and forget to tell this here.
There is no mysql.log, only a mysqld.log. When I execute the command it says 'loaded 0 events'. Is this what you need to know?
There is no mysql.log, only a mysqld.log. When I execute the command it says 'loaded 0 events'. Is this what you need to know?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Host groups and templates
Can you go through and run the following commands, let us know what the outcome is from your end from running them, and if they had any effect, thanks!:
Code: Select all
service nagios stop
killall -9 nagios
service ndo2db stop
service ndo2db start
service nagios startRe: Host groups and templates
Sadly, they did not had any effect...
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Host groups and templates
Can you pm one of us a copy of your latest snapshot please? It would really help to see how this has been implemented opposed to just theoretical.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Host groups and templates
You mysqld log should be more verbose than that. Lets try it again (use code wraps):
And lets also check the status of mysqld:
And make sure only 1 parent exists:
Code: Select all
tail -25 /var/log/mysqld.logCode: Select all
service mysqld statusCode: Select all
ps -aef | grep mysqldFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Host groups and templates
I've send a snapshot to sreinhardt.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Host groups and templates
Looking at your configs, I can see that they are from today\last night, however I don't see the penta host or service template defined on any host or service that I have checked. It also does not appear to be on the groups created. Could you provide 2-3 specific examples of ones that this should be defined for.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Host groups and templates
I added the Penta Switches template to MW Switches Template, which has the MW Switches hostgroup defined.
I have not defined any template directly to a host or service. When I do this it works, but this shouldn't be necessary I've been told here?
I have not defined any template directly to a host or service. When I do this it works, but this shouldn't be necessary I've been told here?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Host groups and templates
I worked through this, and it took a moment to realize what is wrong. While you can and it is suggested to stack templates, and the effects of stacking should show in all hosts\services that use them. The issue comes from the logic of applying a hostgroup to a template, then applying the hosts to the hostgroup and expecting it to inherit.
What is actually happening, the template is told to apply the defined hostgroup to everything that uses the template, not for the hostgroup to inherit checks and settings from the templates. So instead you need to apply the settings such as host groups and other templates the a template, then apply this template directly to the host or service and all groups and other settings will trickle down. Does that make sense, I understand its a tricky topic.
What is actually happening, the template is told to apply the defined hostgroup to everything that uses the template, not for the hostgroup to inherit checks and settings from the templates. So instead you need to apply the settings such as host groups and other templates the a template, then apply this template directly to the host or service and all groups and other settings will trickle down. Does that make sense, I understand its a tricky topic.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Host groups and templates
I think I understand you, it means I have to go to each and every host and define a template, right?
As said, if I do this, it works. The only drawback is if I ever need to apply a different template to a bunch of hosts, it will take quite a bit of time (as I don't have the bulk modification option).
Thanks a lot for your time and effort sreinhardt!
As said, if I do this, it works. The only drawback is if I ever need to apply a different template to a bunch of hosts, it will take quite a bit of time (as I don't have the bulk modification option).
Thanks a lot for your time and effort sreinhardt!