difference between, active check, passive check, ping, etc..

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: difference between, active check, passive check, ping, e

Post by linuxnag »

Are any of these using templates from your past setup? My guess would be yes, as you were likely doing checks there, this information should have been imported, and if it was not, you can run an import again on those files without causing issues for items that were already done.
Not an option. But, that's fine.
Should I enable "active checks" for each service and add my contact
and make the notification interval "60", then select the proper host(s)?
Or
Should I do this from the hosts and leave services alone?
Just assign hosts to service. Nothing else.
If they are truely not on, I would honestly go the route of adding the generic template to all of them, enabling active checks on both templates, and adding your email there. This will be by far the fastest and cleanest way to do this. Just a note on the notification interval, I would set it to notify immediately and then yes a 30-60 min interval for any notifications after the initial one is generally suggested.
Ok, so I will do just that. I will create a host template, enable active checks. notify interval, etc..
AND I will create a service template (or two) with similar settings.

How do I run/push the host template to all current hosts ?
Same for services.
No worries on the confusion, nagios is a pretty big and diverse system, there's a lot to learn!
One word: Sisyphus. One day I'll get that rock over the top, I hope...
Let me just emphasize that you guys have been absolutely fantastic.
...and patient :) Thank you!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: difference between, active check, passive check, ping, e

Post by sreinhardt »

Probably the easiest route, is to use the bulk modification tool from enterprise features, provided you are still within trial licensing it should be available to you.

Thanks for the compliment! Just make sure to watch out for the boulder. :D
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.
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: difference between, active check, passive check, ping, e

Post by linuxnag »

One more question:

Under bulk options, "Change a single config" I dont see
"Notification options".

All my hosts/services have nothing checked for this option.

How do I change it, in bulk ?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: difference between, active check, passive check, ping, e

Post by sreinhardt »

Unfortunately some items are not available via bulk mod, you may have to modify by hand, or if you can add a template via bulk mod just apply the notification settings to the template and the template via bulk mod. One other route if you really need to. You can always take your configs out of the /usr/local/nagios/etc/[hosts\services] folders, modify as needed, and add them to the import directory and go through import steps minus config prep tool. This will cause the changes you made to be imported without otherwise effecting the objects and some find this to be a very nice way to automate large changes. It's totally up to you though.
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.
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: difference between, active check, passive check, ping, e

Post by linuxnag »

As far as I can tell from reading the documentation,

From "Service Management", "Alert Settings" tab,
Leaving All the "Notification Options" and
"Notifications Enabled" unchecked has the same effect
as checking all the "Notification Options" and checking "On"
"Notificatios Enabled"

Is this correct?

Does this also apply to Host settings?

If this is true this would save me much time.

Side question?
It seems that I should be able to do this from a MySQL command.
Although I realize that this might be dangerous.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: difference between, active check, passive check, ping, e

Post by lmiltchev »

I wouldn't recommend using MySQL commands! You have to do all of the modifications via the CCM.

Most of the time, under the "Alert Settings" tab, you would have "Notification enabled" = skip. This means, nagios will use the settings from the template that is assigned to this host/service. You can view the template that is in use by clicking on the "Manage Templates" under the "Common Settings" tab.

Note: You may have a few layers of templates in use.

If you modify notification options on host/service level, the local settings will override the settings in the template.

You can modify the notification interval, notification period, and notifications enabled in bulk via the "Bulk Modifications Tool->Change A Single Config Option". In addition to this, you can go to Admin->Notification Management, where you can modify some other notification options.

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: difference between, active check, passive check, ping, e

Post by linuxnag »

Yeah, I figured that using mysql would not be safe.

However, going back to my question:

If there are no templates associated with a service,

As far as I can tell from reading the documentation,
From "Service Management", "Alert Settings" tab,
Leaving All the "Notification Options" and
"Notifications Enabled" unchecked has the same effect
as checking all the "Notification Options" and checking "On"
"Notificatios Enabled"

Is this correct?

Does this also apply to Host settings? (again no templates)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: difference between, active check, passive check, ping, e

Post by lmiltchev »

Leaving All the "Notification Options" and
"Notifications Enabled" unchecked
Can you elaborate on the "Notifications Enabled" unchecked? Something has to be checked - it's a radio button. Did you mean leaving it on "skip"?

Basically, if you have "skip" selected, this means the notifications will be enabled by default if there is no template in use.

There is no "skip" button for "Notification options", but if you don't select any (w, c, u, etc.), all of them should be enabled. You can check what you have in the "/usr/local/nagios/var/objects.cache" for this host/service. Most probably you have:

Code: Select all

notification_options   a
notifications_enabled   1
Be sure to check out our Knowledgebase for helpful articles and solutions!
linuxnag
Posts: 53
Joined: Tue Nov 12, 2013 4:05 pm

Re: difference between, active check, passive check, ping, e

Post by linuxnag »

Sorry about the confusing post.
You are right. The "Skip" option was checked.

I checked the cache and it agrees.

So, this has been a very informative Q&A for me.
It has cleared up many questions.

I can't thank you enough for your patience and support.

GKH
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: difference between, active check, passive check, ping, e

Post by slansing »

Awesome! Well if you have any further questions don't hesitate to open a new thread! We will lock this one for now.
Locked