[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace.php]: The /e modifier is no longer supported, use preg_replace_callback instead
forum.nconf.org • View topic - Escalations (Service / Advanced Services / Hosts)

Escalations (Service / Advanced Services / Hosts)

User / Community contributed content: modifications, patches, extensions, modules, scripts etc.

Re: Escalations (Service / Advanced Services / Hosts)

Postby jsmegerman » Mon Apr 22, 2013 16:19

I just added this to my NConf setup (I haven't tried it yet, but from what I've read that seems to be working pretty well for others), and I noticed 2 things with the SQL statements that can/should be changed:

1) The second insert (into ConfigAttrs) has several rows duplicated (254-256), which obviously doesn't work.

2) Since the first item in each row is the autoindexed primary key, you should insert them with NULL instead of assigning a number. That way, it won't matter if there are any differences in the number in a particular instance of NConf, it'll just add them sequentially with the next available numbers.

Thanks for making this available - assuming it works the way I want it to, it'll be a huge help! :)

ETA: After playing around with them a little, they look like they should work just fine. The one other change I recommend is adding hostgroups to the host-escalation class, and make host and hostgroup not required (icinga at least can handle hostescalations not associated with any hosts, and it's MUCH easier to put host escalations on hostgroups rather than individual hosts :)). Thanks again!
jsmegerman
NConf rookie
NConf rookie
 
Posts: 17
Joined: Tue Mar 12, 2013 18:50

Re: Escalations (Service / Advanced Services / Hosts)

Postby jsmegerman » Wed Apr 24, 2013 18:05

jsmegerman
NConf rookie
NConf rookie
 
Posts: 17
Joined: Tue Mar 12, 2013 18:50

Re: Escalations (Service / Advanced Services / Hosts)

Postby JDB4 » Thu Aug 22, 2013 19:16

Hi, Wondering if anyone can help me out here, was all set to put Nagios live this morning until I discovered nconf had no escalations. I've followed the steps here, inserted the sql statements. Everything looks ok sql wise. I didnt do the php changes as I am not doing. the advanced escalations.
Problem is when I create the host or service escalations and deploy the config, escalation.cfg does not get created. Do I need to create an empty copy first? Also noescalation attributes appear, do I need to put them in manually?
Thanks
JDB4
 

Previous

Return to Contributions

Who is online

Users browsing this forum: No registered users and 1 guest

cron