Search found 8 matches
- Wed Mar 23, 2016 7:22 am
- Forum: Open Source Nagios Projects
- Topic: Allow service notifications when host status is DOWN
- Replies: 19
- Views: 7583
Re: Allow service notifications when host status is DOWN
Thanks Eric, I never though about the API :) We do have nagrestconf installed and we are going to use that to setup services. hosts etc And yes, it can also be used to get the configuration values in json just like you mentioned with the nagios API. Thank you all for the help on this, thread can be ...
- Wed Mar 23, 2016 5:07 am
- Forum: Open Source Nagios Projects
- Topic: Allow service notifications when host status is DOWN
- Replies: 19
- Views: 7583
Re: Allow service notifications when host status is DOWN
Actually I found the answer to the problem, you cannot use contact macros for service event handlers. The only way I found to pass over contacts is by using the $CONTACTGROUPMEMBERS:customer1group$ on-demand macro, however for this the contact group name needs to be hardcoded in the event handler co...
- Wed Mar 23, 2016 12:10 am
- Forum: Open Source Nagios Projects
- Topic: Allow service notifications when host status is DOWN
- Replies: 19
- Views: 7583
Re: Allow service notifications when host status is DOWN
Just one last question, I was testing the event handlers in an attempt to replicate the default nagios notification. So I added the following in the configuration: Command: define command { command_name event-notify command_line $USER1$/eventhandlers/event-notify $SERVICESTATE$ $SERVICESTATETYPE$ $S...
- Sun Mar 20, 2016 3:45 am
- Forum: Open Source Nagios Projects
- Topic: Allow service notifications when host status is DOWN
- Replies: 19
- Views: 7583
Re: Allow service notifications when host status is DOWN
In addition to what tgriep said, I dug into the notification code and found this: https://github.com/NagiosEnterprises/nagioscore/blob/master/base/notifications.c#L567 I could have sworn as well that service notifications could go out when the host is down, but we must have been collectively mistak...
- Fri Mar 18, 2016 12:14 am
- Forum: Open Source Nagios Projects
- Topic: Allow service notifications when host status is DOWN
- Replies: 19
- Views: 7583
Re: Allow service notifications when host status is DOWN
Hi, here it is. Thanks. log_file=/var/log/nagios/nagios.log object_cache_file=/var/nagiosramdisk/objects.cache precached_object_file=/var/log/nagios/objects.precache resource_file=/etc/nagios/private/resource.cfg status_file=/var/nagiosramdisk/status.dat status_update_interval=10 nagios_user=nagios ...
- Thu Mar 17, 2016 10:56 am
- Forum: Open Source Nagios Projects
- Topic: Allow service notifications when host status is DOWN
- Replies: 19
- Views: 7583
Re: Allow service notifications when host status is DOWN
You can do this a couple of ways, but event handlers come to mind, as they fire every time a service check is completed. Rather than notifying through Nagios directly, you could write a service event handler that always notifies when something is not in an OK state, since service checks are perform...
- Thu Mar 17, 2016 2:11 am
- Forum: Open Source Nagios Projects
- Topic: Allow service notifications when host status is DOWN
- Replies: 19
- Views: 7583
Re: Allow service notifications when host status is DOWN
Hello, Here are the host and service definitions. Also all other hosts/services have the same behavior probably because all were added the same way. define host { host_name xxx.xxx.com alias xxx.xxx.com address xx.xx.xx.xx check_period 24x7 check_command check-host-alive!500,50%!1000,100%!xx.xx.xx.x...
- Wed Mar 16, 2016 4:43 am
- Forum: Open Source Nagios Projects
- Topic: Allow service notifications when host status is DOWN
- Replies: 19
- Views: 7583
Allow service notifications when host status is DOWN
Hello, I'm working on Nagios Core 4.0.8 running on a Centos 7 machine and I noticed that service notifications are not sent in case the host is in a down state. I know this is logical to have, however in case our setup requires precise service notifications regardless of the host state can this be c...