1. Templates - how do I use them? What are they meant for. I was sure I can put specific settings and then assign this templated to nexxessary services/hosts.
2. Auto discovery - Is there a way automaticly add to Nagios specific monitoring? Let me explain myself. lets say I have a server, I added another hard drive, can it be automatically added to Nagios?
3. How can I hide/remove warning notifications on screen? What can I do if I want to see only critical alerts on the monitor?
Thanks in advance.
Few questions....
Re: Few questions....
Templates can save you time. I would recommend getting familiarized with the document below. It is a Nagios Core document but it applies to Nagios XI as well.1. Templates - how do I use them? What are they meant for. I was sure I can put specific settings and then assign this templated to nexxessary services/hosts.
http://nagios.sourceforge.net/docs/3_0/ ... tance.html
I don't believe this is possible. Auto discovery finds services, running on tcp ports, etc. It's not going to add hard drives.2. Auto discovery - Is there a way automaticly add to Nagios specific monitoring? Let me explain myself. lets say I have a server, I added another hard drive, can it be automatically added to Nagios?
You can probably append an extra parameter to the end of the URL. For example, if you click on the "All Service Problems" menu on the left, you will be using the following URL:3. How can I hide/remove warning notifications on screen? What can I do if I want to see only critical alerts on the monitor?
http://x.x.x.x/nagiosxi/includes/compon ... ustypes=28
If you change it to this:
http://x.x.x.x/nagiosxi/includes/compon ... ustypes=16
you will view ONLY services in CRITICAL state.
To read more on how to use bitwise operations and status.cgi in Nagios, read the article below:
http://roshamboot.org/main/guide-nagios-statuscgi/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Few questions....
Thanks,lmiltchev wrote:Templates can save you time. I would recommend getting familiarized with the document below. It is a Nagios Core document but it applies to Nagios XI as well.1. Templates - how do I use them? What are they meant for. I was sure I can put specific settings and then assign this templated to nexxessary services/hosts.
http://nagios.sourceforge.net/docs/3_0/ ... tance.html
I don't believe this is possible. Auto discovery finds services, running on tcp ports, etc. It's not going to add hard drives.2. Auto discovery - Is there a way automaticly add to Nagios specific monitoring? Let me explain myself. lets say I have a server, I added another hard drive, can it be automatically added to Nagios?
You can probably append an extra parameter to the end of the URL. For example, if you click on the "All Service Problems" menu on the left, you will be using the following URL:3. How can I hide/remove warning notifications on screen? What can I do if I want to see only critical alerts on the monitor?
http://x.x.x.x/nagiosxi/includes/compon ... ustypes=28
If you change it to this:
http://x.x.x.x/nagiosxi/includes/compon ... ustypes=16
you will view ONLY services in CRITICAL state.
To read more on how to use bitwise operations and status.cgi in Nagios, read the article below:
http://roshamboot.org/main/guide-nagios-statuscgi/
All the answers helped me expect the first one regarding templates, its for CORE. I'm using now NagiosXI, there are built in templates
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Few questions....
Yes, we include a wide variety of templates with XI
.
Re: Few questions....
slansing wrote:Yes, we include a wide variety of templates with XI.
Yeah I know, the point is that I have no clue why they don't work.
If you check guide on youtube - http://www.youtube.com/watch?v=Al_Gfp87M88 these are the templates I'm talking about.
I don't know why they don't work. If I take now the generic-template for example, I change the settings and then I want to assign these settings to a service, how do I know they were assigned?
I still see only my visual settings on the service and not the settings that I gave to the template.
God, I hope you understood me with my compllicated explanation
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Few questions....
Any settings you do not manually apply to a service (for example) and are set in the template, should carry over. I don't believe you will be visibly shown in the CCM that those configuration options are being applied through the template, but for instance, if you applied a check_interval, or a check command through the template and it did not apply correctly, your apply configuration would fail out and you would then know that those "required" configuration options were not set. You can of course also look at the object in your configuration page within the CCM and check if the template is applied under "templates."
Re: Few questions....
Thanks I will check that and update you.slansing wrote:Any settings you do not manually apply to a service (for example) and are set in the template, should carry over. I don't believe you will be visibly shown in the CCM that those configuration options are being applied through the template, but for instance, if you applied a check_interval, or a check command through the template and it did not apply correctly, your apply configuration would fail out and you would then know that those "required" configuration options were not set. You can of course also look at the object in your configuration page within the CCM and check if the template is applied under "templates."
Re: Few questions....
I just tried and it didn't work. Tried it with two ways.
1) Created a completely new template - Inside the template clicked on "Manage Hosts" and added the wanted host.
Results: Didn't see any changes or a new check.
2) The same new template mentioned above, went to a specific service, clicked on "Manage Templates", picked up my template and applied the changes.
Results: No changes.
3) Opened a specific service, cleared inside everything and only assigned the templae.
Results: Nothing changed.
1) Created a completely new template - Inside the template clicked on "Manage Hosts" and added the wanted host.
Results: Didn't see any changes or a new check.
2) The same new template mentioned above, went to a specific service, clicked on "Manage Templates", picked up my template and applied the changes.
Results: No changes.
3) Opened a specific service, cleared inside everything and only assigned the templae.
Results: Nothing changed.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Few questions....
By no changes do you mean it properly "picked up your template?" And is working as expected? Templates themselves won't create a new host, or service automatically, they are simply a way to group configuration options and share those same options amongst other hosts/services. They can also be used to mass change these options over multiple hosts/services who share the template.
Re: Few questions....
slansing wrote:By no changes do you mean it properly "picked up your template?" And is working as expected? Templates themselves won't create a new host, or service automatically, they are simply a way to group configuration options and share those same options amongst other hosts/services. They can also be used to mass change these options over multiple hosts/services who share the template.
No, I mean they are not working as expected. Non of the settings in my template were applied to the service.