Configuration changes not taking effect after restart of Nagios
Deborah Martin
Deborah.Martin at kognitio.com
Thu Apr 25 18:40:30 CEST 2013
Thanks, I’ve just tried that and it hasn’t made any difference. Somehow the sms group still creeps in. I’ve grepped all the config files to ensure everything is as it should be. Somehow, something is causing the configuration to pick up the old config. I’ve stopped nagios, deleted the suggested files, restarted nagios.
I’ve even taken the service escalation out of the config – now that works – I can see it’s missing when I look at the configuration for service escalations for that particular node.
When I add the escalation back in, it just doesn’t pick it up correctly.
Here are the definitions of sorts with customer related stuff removed :-
define host{
use generic-host
host_name hostname-a
alias hostname-a ; Lowercase
address 172.18.5.41
hostgroups APP ; Uppercase
contact_groups app-group,oracle-group,it-helpdesk-group
check_command check_ping!100.0,20%!500.0,60%
check_interval 1 ;
check_period 24x7
notification_interval 5
notification_period 24x7
check_period 24x7
}
define hostescalation{
host_name hostname-a
first_notification 2
last_notification 2
notification_interval 2
escalation_options d ; Only escalate when in DOWN state
escalation_period oncall
contact_groups apps-sms-oncall-group, app-group, oracle-group,it-helpdesk-group
}
define hostescalation{
host_name hostname-a
first_notification 3
last_notification 3
notification_interval 2
escalation_options d ; Only escalate when in DOWN state
escalation_period oncall
contact_groups app-group,oracle-group,it-helpdesk-group
}
define service{
use generic-service
active_checks_enabled 1 ; Active service check enabled
host_name hostname-a
normal_check_interval 5
service_description Oracle Data check for hostname-a ; AP ports for external app only
servicegroups apps
check_command check_nrpe_oracle_data
contact_groups app-group,oracle-group
max_check_attempts 1;
notification_interval 10;
check_interval 5;
retry_check_interval 1;
notification_period MonSun
notification_options u,c,r ; CHG2 Added warnings for this check only
}
## Escalation ONE:
define serviceescalation {
host_name hostname-a;
service_description Oracle Data check for hostname-a ;
first_notification 2
last_notification 0
notification_interval 30
escalation_options u,c,r ;
escalation_period oracle-oncall ; Only escalate during oncall periods
contact_groups app-group,oracle-group
}
define servicegroup{
servicegroup_name apps
alias 3rd Party Application monitoring
}
define contactgroup{
contactgroup_name app-group
alias Application Administrators
members app-admin
}
define contact{
contact_name app-admin
alias app-admin
contactgroups app-group
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email support at kognitio.com
}
define contactgroup{
contactgroup_name oracle-group
alias Oracle Administrators
members person-a, person-b
}
define contact{
contact_name person-a
alias perona-a
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email person-a at kognitio.com
}
define contact{
contact_name person-b
alias person-b
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email person-b at kognitio.com
}
define timeperiod{
timeperiod_name oracle-oncall
alias Oracle Oncall Hours
sunday 00:00-24:00
monday 08:00-09:00,17:30-20:00
tuesday 08:00-09:00,17:30-20:00
wednesday 08:00-09:00,17:30-20:00
thursday 08:00-09:00,17:30-20:00
friday 08:00-09:00,17:30-20:00
saturday 08:00-20:00
}
Maybe I’ve done something with the above config that is causing this but for the life of me I can’t see it!
Regards,
Deborah
Deborah Martin
Kognitio Analytical Platform Support
______________________________________________________________________
Direct +44 1344 788670 Switch +44 1344 300770 | Deborah.martin at kognitio.com
______________________________________________________________________
[Description: Description: cid:image006.jpg at 01CD1C86.AAF068D0]<http://www.kognitio.com/>
www.kognitio.com<http://www.kognitio.com/>
[Description: Description: Description: Description: Description: Description: Facebook]<http://www.facebook.com/pages/Kognitio/259254109883> [Description: Description: Description: Description: Description: Description: Twitter] <http://www.twitter.com/kognitio> [Description: Description: Description: Description: Description: Description: Youtube] <http://www.youtube.com/kognitiowx2> [Description: Description: Description: Description: Description: Description: LinkedIn] <http://www.linkedin.com/companies/kognitio> [Description: Description: Description: Description: Description: Description: Blog] <http://kognitio.blogspot.com/>
From: davor grgicevic [mailto:dgrgicevic at gmail.com]
Sent: 24 April 2013 17:03
To: Nagios Users List
Subject: Re: [Nagios-users] Configuration changes not taking effect after restart of Nagios
Hi Deobrah
try following:
stop nagios
erase objects.cache, status.dat and retention.dat
start nagios
Best,
On Wed, Apr 24, 2013 at 1:38 PM, Deborah Martin <Deborah.Martin at kognitio.com<mailto:Deborah.Martin at kognitio.com>> wrote:
Hi,
I’m using Nagios 3.4.4 on SLES 11 SP2. This has been running for around two months.
Recently I needed to change the configuration for a service escalation to remove a contact group that would get sms alerts. I restarted Nagios and everything ran fine.
However, it’s been reported that recently, the team that shouldn’t be getting the sms alerts are still getting them. When I look at the Configuration for service escalations, I can now see two entries for the same escalation, one which is the new , with the sms contact group removed and one with the old config which has the sms contact group included. But when I look at the actual .cfg file for the service escalation definition, there is not mention of the sms group anymore. I’ve checked, and re-checked and still I can’t see why this has happened.
I’ve even stopped Nagios for a short while and restarted it from scratch and this still doesn’t make any difference.
Has anyone else see any oddities like this where config changes don’t seem to take effect after a restart of Nagios ?
Is there a “cache” file I can remove from the configuration forcing nagios to recreate it from scratch so that reads the rest of the .cfg files properly ?
Any pointers / ideas on where I go from here would be really appreciated.
Regards,
Deborah
Deborah Martin
Kognitio Analytical Platform Support
______________________________________________________________________
Direct +44 1344 788670<tel:%2B44%201344%20788670> Switch +44 1344 300770<tel:%2B44%201344%20300770> | Deborah.martin at kognitio.com<mailto:Deborah.martin at kognitio.com>
______________________________________________________________________
[Description: Description: cid:image006.jpg at 01CD1C86.AAF068D0]<http://www.kognitio.com/>
www.kognitio.com<http://www.kognitio.com/>
[Description: Description: Description: Description: Description: Description: Facebook]<http://www.facebook.com/pages/Kognitio/259254109883> [Description: Description: Description: Description: Description: Description: Twitter] <http://www.twitter.com/kognitio> [Description: Description: Description: Description: Description: Description: Youtube] <http://www.youtube.com/kognitiowx2> [Description: Description: Description: Description: Description: Description: LinkedIn] <http://www.linkedin.com/companies/kognitio> [Description: Description: Description: Description: Description: Description: Blog] <http://kognitio.blogspot.com/>
This e-mail and any files transmitted with it are strictly confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited.
Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net<mailto:Nagios-users at lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Davor Grgicevic
This e-mail and any files transmitted with it are strictly confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited.
Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130425/4dd57650/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2286 bytes
Desc: image001.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130425/4dd57650/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 521 bytes
Desc: image002.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130425/4dd57650/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 506 bytes
Desc: image003.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130425/4dd57650/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 1732 bytes
Desc: image004.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130425/4dd57650/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 580 bytes
Desc: image005.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130425/4dd57650/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 644 bytes
Desc: image006.jpg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130425/4dd57650/attachment-0005.jpg>
-------------- next part --------------
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list