Page 1 of 2

Few questions....

Posted: Sun Feb 02, 2014 1:47 pm
by reincarne
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.

Re: Few questions....

Posted: Mon Feb 03, 2014 1:09 pm
by lmiltchev
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.
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.

http://nagios.sourceforge.net/docs/3_0/ ... tance.html
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?
I don't believe this is possible. Auto discovery finds services, running on tcp ports, etc. It's not going to add hard drives.
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?
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:

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/

Re: Few questions....

Posted: Wed Feb 05, 2014 7:32 am
by reincarne
lmiltchev wrote:
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.
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.

http://nagios.sourceforge.net/docs/3_0/ ... tance.html
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?
I don't believe this is possible. Auto discovery finds services, running on tcp ports, etc. It's not going to add hard drives.
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?
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:

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/
Thanks,
All the answers helped me expect the first one regarding templates, its for CORE. I'm using now NagiosXI, there are built in templates :)

Re: Few questions....

Posted: Wed Feb 05, 2014 10:19 am
by slansing
Yes, we include a wide variety of templates with XI :).

Re: Few questions....

Posted: Sun Feb 09, 2014 2:24 am
by reincarne
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 :D

Re: Few questions....

Posted: Mon Feb 10, 2014 11:48 am
by slansing
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....

Posted: Tue Feb 11, 2014 2:40 am
by reincarne
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."
Thanks I will check that and update you.

Re: Few questions....

Posted: Tue Feb 11, 2014 4:19 am
by reincarne
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.

Re: Few questions....

Posted: Tue Feb 11, 2014 11:01 am
by slansing
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....

Posted: Wed Feb 12, 2014 7:12 am
by reincarne
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.