Page 2 of 2
Re: difference between, active check, passive check, ping, e
Posted: Fri Jan 31, 2014 1:35 pm
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!
Re: difference between, active check, passive check, ping, e
Posted: Fri Jan 31, 2014 2:27 pm
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.

Re: difference between, active check, passive check, ping, e
Posted: Fri Jan 31, 2014 3:20 pm
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 ?
Re: difference between, active check, passive check, ping, e
Posted: Mon Feb 03, 2014 10:46 am
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.
Re: difference between, active check, passive check, ping, e
Posted: Tue Feb 04, 2014 1:47 pm
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.
Re: difference between, active check, passive check, ping, e
Posted: Tue Feb 04, 2014 2:37 pm
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.
Re: difference between, active check, passive check, ping, e
Posted: Tue Feb 04, 2014 2:50 pm
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)
Re: difference between, active check, passive check, ping, e
Posted: Tue Feb 04, 2014 3:55 pm
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
Re: difference between, active check, passive check, ping, e
Posted: Tue Feb 04, 2014 4:13 pm
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
Re: difference between, active check, passive check, ping, e
Posted: Tue Feb 04, 2014 4:15 pm
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.