Page 1 of 2
monitoring not running every 5 minutes
Posted: Fri Sep 09, 2016 2:23 pm
by iroy
During configuration wizard steps, at step for "Monitoring Settings" have specified that "Under normal circumstances" monitor the host and service(s) every 5 minutes.
However, nagios is not creating alerts every 10 minutes even when services are down, disk space is low, etc.
Attached are settings that I see under "Core Config Manager" and "Services" and "Total Processes".
What do i need to change?
Thanks in advance.
Re: monitoring not running every 5 minutes
Posted: Mon Sep 12, 2016 8:52 am
by eloyd
So many things could be going on here, but I'll bet whatever template you're using for this service check doesn't have notifications enabled. Since you don't specifically turn on notifications on the service check you've posted here, then it will never notify.
But you don't actually say if it's notifying or not, and your subject is that monitoring is not running every 5 minutes. So I'm only a little confused about what you're actually asking.
If it's "I don't get notifications when things are down" then likely it's because notifications are not on for this service, nor for any service templates that it is inheriting.
Re: monitoring not running every 5 minutes
Posted: Mon Sep 12, 2016 12:06 pm
by lmiltchev
@iroy, can you show us the actual service config, along with the configs of the template(s) this service is using?
Re: monitoring not running every 5 minutes
Posted: Mon Sep 12, 2016 2:38 pm
by iroy
thanks all.
how can i show you the actual service config, along with the configs of the template(s) this service is using
Re: monitoring not running every 5 minutes
Posted: Mon Sep 12, 2016 3:49 pm
by iroy
Wrt eloyd's - If it's "I don't get notifications when things are down" then likely it's because notifications are not on for this service, nor for any service templates that it is inheriting.
In the files attached, for the localhost (see comment of file), can you pls check - "check settings" and "alert settings" - and tell me what I'm doing wrong.
For "alert settings" tab and "Notifications enabled" what should it be set to - "on", "off", "skip", "null"
Re: monitoring not running every 5 minutes
Posted: Mon Sep 12, 2016 4:04 pm
by eloyd
Sadly, nothing was attached. Can you go back and edit your post to attach the file(s)?
Re: monitoring not running every 5 minutes
Posted: Mon Sep 12, 2016 4:43 pm
by lmiltchev
iroy, you can rename the configs with a *.txt extension, and upload them or simply copy/paste the text in code wraps.
Re: monitoring not running every 5 minutes
Posted: Mon Sep 12, 2016 5:33 pm
by gormank
I'd ask if you get the 1st notification after the alert at ~10 minutes? If so, I'd set the notification interval to 10-15 minutes, or whatever you like and the notification delay to some value. Note that the alerts are always there, and email/texts are notifications.
I'd also use host and service templates, so this sort of thing can be defined in one place rather than repeatedly.
Re: monitoring not running every 5 minutes
Posted: Mon Sep 12, 2016 6:34 pm
by iroy
thanks all for help.
From one server I want to run "ping other_server".
Associated config is attached.
thanks in advance.
Re: monitoring not running every 5 minutes
Posted: Tue Sep 13, 2016 10:39 am
by eloyd
These service checks use templates which do not have notifications enabled. You'll need to either turn them on on the "Alert Settings" page of the service templates or on the services themselves. I recommend the service template called xiwizard_generic_service, which is the base template used for all XI wizards.