[icinga-users] Dependency design advice for a lot of clusters service?

2016-08-12 Thread hasan akgöz
Hello Guys, I'm using quite a big icinga2 configuration (about 3000 services), without any dependencies. This results in a huge mess of notifications when something goes wrong. I try to look for best practices with Icinga2 Dependencies, but all I find on the web is basic understanding with a singl

Re: [icinga-users] Metric graphing with Icinga 2

2016-08-12 Thread Michael Martin
Thanks for the pointers. The debug log shows this for the missing metrics: [2016-08-11 17:47:48 -0500] warning/GraphiteWriter: Ignoring invalid perfdata value: in=0.00B/s;1024.00;1024.00;0.00 [2016-08-11 17:47:48 -0500] warning/GraphiteWriter: Ignoring invalid perfdata

Re: [icinga-users] Using check_multi with Icinga2

2016-08-12 Thread Michael Martinez
On Thu, Aug 11, 2016 at 11:53 PM, Michael Friedrich wrote: > That as such won’t work since the custom attributes values are computed at > config compile time. You are looking for runtime calculated values - which is > why you need to turn the custom attribute values into a function. > > Somethin

Re: [icinga-users] Metric graphing with Icinga 2

2016-08-12 Thread Michael Martin
Yes, the "B/s" string in the performance data was tripping up Graphite. I removed that, and all is working as expected now. Thanks for your help. On 08/12/2016 01:49 AM, Michael Friedrich wrote: Hi, On 12 Aug 2016, at 00:56, Michael Martin wrote: I have just now implemented graphite/grafan

Re: [icinga-users] Using check_multi with Icinga2

2016-08-12 Thread Gunnar Beutner
You’re going to have to move the attribute declaration _into_ the apply rule: apply Service "clusterx" { vars.elb["x"] = [ "xx.ap-northeast-1.compute.amazonaws.com" , "xy.ap-northeast-1.compute.amazonaws.com" ] if (!vars.elb["x"] { log("Array not defined") } ...

Re: [icinga-users] Using check_multi with Icinga2

2016-08-12 Thread Michael Martinez
On Fri, Aug 12, 2016 at 12:32 PM, Gunnar Beutner wrote: > You’re going to have to move the attribute declaration _into_ the apply rule: Hmmm.. Let me explain what I need to do, and maybe the folks here can help suggest how to achieve it; Outside of Icinga, I gather a list of amazon instances and

Re: [icinga-users] Using check_multi with Icinga2

2016-08-12 Thread Gunnar Beutner
How about something like this?: object Host "ec2-instance1" { import "generic-host" address = "192.168.2.36" vars.elbs = [ "elb1", "elb2" ] } object Host "ec2-instance2" { import "generic-host" address = "192.168.2.36" vars.elbs = [ "elb1", "elb2" ] } var ELBs = [ "elb1", "el