Few questions....

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

Few questions....

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Few questions....

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

Re: Few questions....

Post 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 :)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Few questions....

Post by slansing »

Yes, we include a wide variety of templates with XI :).
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

Re: Few questions....

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Few questions....

Post 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."
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

Re: Few questions....

Post 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.
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

Re: Few questions....

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Few questions....

Post 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.
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

Re: Few questions....

Post 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.
Locked