[icinga-users] Recommended practice for failover/redundancy?

2014-10-30 Thread Michael Martinez
Hi all - Are the two methods given in the docs Chapter 7.7 still basically the generally accepted practice for redundancy/failover? Or has some other method come into play since these docs were written? -Mike ___ icinga-users mailing list

Re: [icinga-users] Recommended practice for

2014-10-31 Thread Michael Martinez
: Michael Friedrich michael.friedr...@netways.de To: icinga-users@lists.icinga.org Subject: Re: [icinga-users] Recommended practice for failover/redundancy? Message-ID: 54534ecc.7090...@netways.de Content-Type: text/plain; charset=utf-8; Format=flowed Am 31.10.2014 um 02:16 schrieb Michael

[icinga-users] How to reduce latency on an unloaded server

2014-12-12 Thread Michael Martinez
I've got an icinga 1.8 installation that has the following latencies: Active Service Latency: 0.000 / 1390.955 / 1077.921 sec Active Host Latency:0.000 / 1383.793 / 1351.764 sec 633 hosts. 3,800 active service checks. The server is Redhat linux as a Virtual

Re: [icinga-users] How to reduce latency on an unloaded server

2014-12-16 Thread Michael Martinez
Carl R. Friend wrote: 1) Dump performance data to disk and see what the trend for latency is following a restart of Icinga. I installed pnp4nagios, but this seems to be gathering performance data for the monitoring targets (hosts and services), not for the Icinga server itself. Is there

Re: [icinga-users] How to reduce latency on an unloaded server

2014-12-18 Thread Michael Martinez
I've got some additional info for Carl (and whoever else might have some thoughts): I installed mrtg and activated the perfdata stuff in icinga, and gathered some data over a period of about 12 hours. Here I will summarize it for you (5 minute averages):. Each parameter has three values: max,

[icinga-users] Advice for migrating Icinga1.8 to Icinga 2.1

2015-02-06 Thread Michael Martinez
advice, some written procedure, some better scripts? I've got about 4,000 service checks, 700 hosts, and a bunch of different notification types need to get ported over, anything that can do a good job of automating this and/or giving me a step-by-step procedure would be welcome. -- Michael Martinez

[icinga-users] If I upgrade to Icinga 2.x will I get better performance?

2015-01-21 Thread Michael Martinez
that scales better. -- Michael Martinez ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users

Re: [icinga-users] If I upgrade to Icinga 2.x will I get better performance?

2015-01-22 Thread Michael Martinez
https://www.icinga.org/icinga/icinga-2/why-icinga-2/ This looks good on paper, Icinga 2 an order of magnitude better . Does it actually work out like this in practice? ___ icinga-users mailing list icinga-users@lists.icinga.org

[icinga-users] notifications; how to include the hostname/ip of the Icinga server

2015-02-17 Thread Michael Martinez
Icinga 1.9.3: Is there a way to include the hostname or ip of the monitoring server in the notifications that it sends out? -- Michael Martinez ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo

Re: [icinga-users] notifications; how to include the hostname/ip of the Icinga server

2015-02-18 Thread Michael Martinez
Icinga 1.9.3: Is there a way to include the hostname or ip of the monitoring server in the notifications that it sends out? Define a notification command to send anything you like out. http://docs.icinga.org/latest/en/sample-notifications.html Is there not already a macro defined for

[icinga-users] How to dynamically generate hosts?

2016-06-10 Thread Michael Martinez
implementation performing 20,000 service checks.) -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users

Re: [icinga-users] Is hyphen not allowed in variable name?

2016-08-10 Thread Michael Martinez
On Tue, Aug 9, 2016 at 1:21 PM, Thomas Gelf wrote: > Hyphen is allowed in a variable name, but not written that way. Please > use vars.elb["discovery-premium"] instead and you should be fine. That did the trick. Thanks. ___

Re: [icinga-users] Using check_multi with Icinga2

2016-08-11 Thread Michael Martinez
Coming back to this after taking a while working on other stuff. I'm running into an issue. The issue is that get_host().state is returning "1" for every host, including those that are UP. See below for the config I am working with. Just for testing I am using my "vagrant-minion" box which is

Re: [icinga-users] Using check_multi with Icinga2

2016-07-14 Thread Michael Martinez
On Thu, Jul 14, 2016 at 12:48 AM, Michael Friedrich wrote: > var hg_name = “myhostgroup" > var data = [] > for (h in get_objects(Host)) { > if (hg_name in h.groups) { > data.add(h.name) > } > } Ok, thanks for the tip. Now another question: let's say I have

[icinga-users] Is there a way to dump config files from a running Icinga2?

2016-06-28 Thread Michael Martinez
. is there a way I can recover the file from my running instance? Maybe it keeps a cache of the file somewhere on the filesystem? Or is there a command I can issue to icinga to make it dump it's configuration? -- --- Michael Martinez http://www.michael--martinez.com

Re: [icinga-users] Is there a way to dump config files from a running Icinga2?

2016-06-29 Thread Michael Martinez
On Tue, Jun 28, 2016 at 10:12 PM, Klaus Muth wrote: > You could try parsing the output of > icinga2 object list It does seem like this contains the information, but in some sort of JSON format that is not easy to read. If there is some tool for parsing it, the perhaps it might

Re: [icinga-users] Using check_multi with Icinga2

2016-08-16 Thread Michael Martinez
On Fri, Aug 12, 2016 at 11:16 PM, Gunnar Beutner wrote: > How about something like this?: > Thanks so much for your code! It helped a lot. In putting it together, I've come into a couple of questions: 1) why do we need to say "macro" in for (instance in

[icinga-users] your database isn't able to keep up

2017-02-17 Thread Michael Martinez
to fix it? -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users

Re: [icinga-users] your database isn't able to keep up

2017-02-17 Thread Michael Martinez
On Fri, Feb 17, 2017 at 1:41 PM, Tobias von der Krone wrote: > > That means that your database is too slow and you're queue items will > steadily increase. Actually, 86 queries per second is really slow. What > database are you using and what specs does your

Re: [icinga-users] your database isn't able to keep up

2017-02-18 Thread Michael Martinez
I noticed the following entry in the log: [2017-02-18 03:21:23 -0500] information/IdoMysqlConnection: Query queue items: 1199, query rate: 60.5167/s (3631/min 22126/5min 56395/15min); empty in infinite time, your database isn't able to keep up [2017-02-18 03:21:38 -0500]

Re: [icinga-users] your database isn't able to keep up

2017-02-18 Thread Michael Martinez
On Sat, Feb 18, 2017 at 6:59 AM, Joosten, Markus <markus.joos...@plumbe.de> wrote: > On 2017-02-17 23:33, Michael Martinez wrote: > > My guess would be that the 100 IOPS are the bottleneck, which obviously is > not much when you already have 86 database queries per second. &

[icinga-users] Scheduled downtimes are being removed every time Icinga2 is reloaded

2017-02-23 Thread Michael Martinez
Is there any way to make the scheduled Downtimes persistent between doing a reload? They disappear every time a reload occurs. -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing list icinga-users@lists.icinga.org https

Re: [icinga-users] your database isn't able to keep up

2017-02-23 Thread Michael Martinez
On Fri, Feb 17, 2017 at 1:41 PM, Tobias von der Krone wrote: >> >> What does this mean and what should I do to fix it? > > That means that your database is too slow and you're queue items will > steadily increase. Actually, 86 queries per second is really slow. What

Re: [icinga-users] Scheduled downtimes are being removed every time Icinga2 is reloaded

2017-02-23 Thread Michael Martinez
hub.com/Icinga/icinga2/issues/4747 > > On Feb 23, 2017, 3:48 PM -0500, Michael Martinez <mwt...@gmail.com>, wrote: > > HEre are the contents of my /var/lib/icinga2/api directory: > > [root@ec2 icinga101 api]$ pwd > /media/ephemeral0/icinga2/var/lib/icinga2/api > [root@ec2 ic

Re: [icinga-users] Scheduled downtimes are being removed every time Icinga2 is reloaded

2017-02-23 Thread Michael Martinez
/conf.d/comments On Thu, Feb 23, 2017 at 12:30 PM, Michael Martinez <mwt...@gmail.com> wrote: > Is there any way to make the scheduled Downtimes persistent between > doing a reload? They disappear every time a reload occurs. > > -- > --- > Michael Martinez > http:

Re: [icinga-users] Scheduled downtimes are being removed every time Icinga2 is reloaded

2017-02-23 Thread Michael Martinez
Fantastic! > > On Feb 23, 2017, 5:01 PM -0500, Michael Martinez <mwt...@gmail.com>, wrote: > > Hi Rob, thanks for the info. > Actually I was able to fix it by appending the following in icinga2.conf: > > include_recursive "/var/lib/icinga2/api/packages/_api/conf.d"

Re: [icinga-users] Scheduled downtimes are being removed every time Icinga2 is reloaded

2017-02-24 Thread Michael Martinez
I was able to fix it by blowing away the _api/ directory and restarting icinga. The missing files got recreated automatically and everything is working correctliy now. On Fri, Feb 24, 2017 at 10:02 AM, Gerald Vogt wrote: > They are all three missing?? What files/directories do

Re: [icinga-users] Scheduled downtimes are being removed every time Icinga2 is reloaded

2017-02-24 Thread Michael Martinez
On Thu, Feb 23, 2017 at 10:10 PM, Gerald Vogt wrote: > Check for missing conf files in /var/lib/icinga2/api/packages/_api/ > > See https://github.com/Icinga/icinga2/issues/3668 > > You should have > > _api/active.conf > _api/include.conf > _api/hostname-141.../include.conf I

[icinga-users] How to create a runtime array variable that can be referenced as a macro

2016-09-24 Thread Michael Martinez
array$")[1] == 2) { ... } }} But this isn't working and I'm having a difficult time trying to figure out the correct syntax to do this. What's the correct way ? -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing l

Re: [icinga-users] how to ignore a Host

2016-10-05 Thread Michael Martinez
in Icinga2. Ideally I would like to *ignore* the host objects rather than assign a dummy check to them. Any ideas are appreciated. On Tue, Oct 4, 2016 at 11:51 AM, Michael Martinez <mwt...@gmail.com> wrote: > Is there a way to tell Icinga2 not to monitor a particular Host > object

[icinga-users] how to ignore a Host

2016-10-04 Thread Michael Martinez
Is there a way to tell Icinga2 not to monitor a particular Host object? To completely ignore it. Does putting it into Downtime achieve this, or is there another way? Thanks for your help! -- --- Michael Martinez http://www.michael--martinez.com

Re: [icinga-users] how to ignore a Host

2016-10-06 Thread Michael Martinez
adress whatever is static you can use ignore keyword > follow like ; > > apply Service "Service Name" { > ... > > assign where match("web*.example.org", host.name) > ignore where host.name > } > > > > 2016-10-05 19:51 GMT+03:00 Michael Ma

Re: [icinga-users] get_host_group and get_objects(HostGroup) not working

2016-10-26 Thread Michael Martinez
Hi Stephen, object HostGroup works. apply HostGroup does not: critical/config: Error: 'apply' cannot be used with type 'HostGroup' On Wed, Oct 26, 2016 at 12:10 PM, Stephan Tesch <step...@tesch.cx> wrote: > Am 26.10.2016 um 19:54 schrieb Michael Martinez: > > Hi Michael, > &g

Re: [icinga-users] get_host_group and get_objects(HostGroup) not working

2016-10-26 Thread Michael Martinez
As another test I did the following. all_hostgroups += { "yumrepo100" = 1 } all_hostgroups += { "celery-stg101" = 1 } all_hostgroups += { "discovery101" = 1 } for (key => value in all_hostgroups) { log("MMM inside first for statement") object HostGroup key use(key) { display_name = key

[icinga-users] Can I obtain the system time inside an object definition?

2016-10-29 Thread Michael Martinez
= 0 } else { threshold = 20 } Possible? -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users

Re: [icinga-users] How to create Services based on Host attributes?

2016-11-06 Thread Michael Martinez
On Sat, Nov 5, 2016 at 2:17 PM, Stephan Tesch wrote: > > Honestly, I don't get what you try to achieve? Do you want to create a > service if vars.nrpe.check_redis exists? The apply for rule already does > that?! What am I missing? What I'm trying to do is more complicated. I'm

Re: [icinga-users] How to create Services based on Host attributes?

2016-11-04 Thread Michael Martinez
On Thu, Nov 3, 2016 at 2:11 PM, Stephan Tesch <step...@tesch.cx> wrote: > Am 03.11.2016 um 19:39 schrieb Michael Martinez: > I'm not sure, but would this be the same config as (which I find more > readable): > > object Host "yyy" { > vars.nrpe["check

[icinga-users] how to assign service objects with names from an array?

2016-10-19 Thread Michael Martinez
} this complains about an unknown script variable. I have tried: apply Service "check-" for (name in names) use(name) { ... } this does not complain. But it doesn't create any Service objects. None of these are working. What I am doing wrong? -- ---

Re: [icinga-users] how to ignore a Host

2016-10-19 Thread Michael Martinez
create a timeperiod > "never". > > brgds > Kai > > >>>> On 18.10.2016 at 03:17, Michael Martinez <mwt...@gmail.com> wrote: >> Hi Kai, >> >> Yes, I understand that. But a dummy check that always returns OK is >> misleading. The hos

Re: [icinga-users] how to assign service objects with names from an array?

2016-10-19 Thread Michael Martinez
I stumbled on the answer myself: servicenames = [ "1", "2" ] for (item in servicenames) { object Service "prefix" + item use(item) { get_service(, item).state } } On Wed, Oct 19, 2016 at 12:17 PM, Michael Martinez <mwt...@gmail.com> wrote: >

Re: [icinga-users] how to assign service objects with names from an array?

2016-10-20 Thread Michael Martinez
On Wed, Oct 19, 2016 at 4:27 PM, Antony Stone <antony.st...@icinga.open.source.it> wrote: > On Thursday 20 October 2016 at 00:28:21, Michael Martinez wrote: > >> I stumbled on the answer myself: >> >> servicenames = [ "1", "2" ] >> for (ite

Re: [icinga-users] how to ignore a Host

2016-10-17 Thread Michael Martinez
check_command = "dummy" > > vars.dummy_state = 0 > vars.dummy_text = "This host will never be checked and shows > always OK" > > } > > hth > Kai>>> On 06.10.2016 at 19:18, Michael Martinez <mwt...@gmail.com> >

Re: [icinga-users] Icinga2 getting stuck reloading

2016-11-12 Thread Michael Martinez
On Fri, Nov 11, 2016 at 1:19 PM, Antony Stone <antony.st...@icinga.open.source.it> wrote: > On Friday 11 November 2016 at 18:59:43, Michael Martinez wrote: > >> On Fri, Nov 11, 2016 at 8:13 AM, Antony Stone wrote: > >> > 2. How did you install version 2.4.8, an

[icinga-users] question about state transition

2016-11-12 Thread Michael Martinez
, the new state is HARD CRITICAL (1/3) * from HARD OK to Critical, the new state is SOFT CRITICAL (1/3) * from CRITICAL to OK, the new state is HARD OK (1/3) Is this correct? Is this the expected behavior? -- --- Michael Martinez http://www.michael--martinez.com

Re: [icinga-users] Icinga2 getting stuck reloading

2016-11-14 Thread Michael Martinez
Ok, seeing some weirdness this evening, seems like too many "daemon reload-internal" processes? icinga 22567 1 15 21:58 ?00:04:05 /media/ephemeral0/icinga2/lib64/icinga2/sbin/icinga2 --no-stack-rlimit daemon -x debug -c /media/ephemeral0/icinga2/etc/icinga2/icinga2.conf -d -e

Re: [icinga-users] Icinga2 getting stuck reloading

2016-11-14 Thread Michael Martinez
On Mon, Nov 14, 2016 at 12:42 AM, Michael Friedrich wrote: > Question aside - why don’t you use packages in the first place? Dealing with > source compilations and their shortcomings is something you don’t want to > deal on upgrades in the first place. If I recall

Re: [icinga-users] Icinga2 getting stuck reloading

2016-11-15 Thread Michael Martinez
On Tue, Nov 15, 2016 at 12:59 AM, Michael Friedrich wrote: > Rebuilding the RPM and submitting a patch upstream for the spec file isn’t an > option for you? I could imagine that the changes are not that big in terms of > Icinga 2’s dependencies (boost, openssl,

Re: [icinga-users] Can I obtain the system time inside an object definition?

2016-11-11 Thread Michael Martinez
On Mon, Nov 7, 2016 at 4:37 AM, Michael Friedrich <michael.friedr...@netways.de> wrote: > >> On 29 Oct 2016, at 22:31, Michael Martinez <mwt...@gmail.com> wrote: >> >> Got it. Under global runtime macros, I see icinga.date, icinga.time, etc. >>

Re: [icinga-users] Icinga2 getting stuck reloading

2016-11-11 Thread Michael Martinez
On Fri, Nov 11, 2016 at 8:13 AM, Antony Stone <antony.st...@icinga.open.source.it> wrote: > On Friday 11 November 2016 at 17:01:51, Michael Martinez wrote: > >> I upgraded our production Icinga2 box a few days ago from 2.4.8 to >> 2.5.4 and, whether a result of the upgrade

Re: [icinga-users] Icinga2 getting stuck reloading

2016-11-13 Thread Michael Martinez
I compared all the new "/etc" files with the old ones, and there aren't any differences except for a couple new things in icinga2.conf and there's a new feature called influxdb.conf. So I updated those changes on my server. Running the server in debug mode and still waiting for the reload to get

[icinga-users] How to create Services based on Host attributes?

2016-11-03 Thread Michael Martinez
is host, and the sub-variables are parameters that the service should use. I would like Icinga to create a Service for each different check command and apply it to the host. I am stumped as to how to do this. Any suggestions? -- --- Michael Martinez ht

Re: [icinga-users] get_host_group and get_objects(HostGroup) not working

2016-10-27 Thread Michael Martinez
uch an object. > > Your problem is that the hostgroup won't get registred until after the full > config is loaded. > > Steps: > 1. Load and eval config > 2. Commit changes (registring objects) (and evaluating applies) > 3. Activating objects (enabling actions and behavior) > Any

Re: [icinga-users] get_host_group and get_objects(HostGroup) not working

2016-10-27 Thread Michael Martinez
I just had another thought. In one of my hosts.conf files, I already have an array which contains the names of all the clusters. If I could access this array from other .conf files, then I can iterate through each cluster, creating the Service objects that I need. Is it possible to make the value

[icinga-users] Questions about reload

2016-11-30 Thread Michael Martinez
Is "service icinga2 reload" necessary anytime a config file changes, or does icinga2 automatically recognize if the file changes? What's the difference between reload and restart and under which circumstances is one used instead of the other? -- --- Michael Martinez http://w

Re: [icinga-users] Icinga not honoring notification period

2017-03-24 Thread Michael Martinez
It turns out this was caused by a syntax error in the conf file that we generate from ec2 and range data. Fixed the syntax and the behavior is as expected now. ___ icinga-users mailing list icinga-users@lists.icinga.org

[icinga-users] Unable to get Graphite Web2 module working

2017-03-24 Thread Michael Martinez
I've installed the graphite web2 module, but it's throwing the following errors: file_get_contents(monitoring:username:password@graphiteserver/metrics/find?query=icinga2.ec2-xxx.services.ping4): failed to open stream: No such file or directory #0 [internal

Re: [icinga-users] Unable to get Graphite Web2 module working

2017-03-27 Thread Michael Martinez
On Fri, Mar 24, 2017 at 9:03 PM, Garrett Pye wrote: > What does your config.ini file look like? [graphite] web_url = username:pas...@our.graphite.com ___ icinga-users mailing list icinga-users@lists.icinga.org

[icinga-users] Service dependency not working

2017-04-06 Thread Michael Martinez
to do its scheduled checks and also becomes Critical. This means the Dependency is not working. Am I doing something wrong or is there a bug? -- --- Michael Martinez ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users

Re: [icinga-users] Service dependency not working

2017-04-06 Thread Michael Martinez
On Thu, Apr 6, 2017 at 11:16 AM, Lee Clemens wrote: > I would suggest running > icinga2 daemon -C > to see the count of Dependencies (and warning if it won't be applied to > anything). Good suggestion. Before making any changes it looks like this: information/ConfigItem:

[icinga-users] Fwd: Icinga not honoring notification period

2017-03-09 Thread Michael Martinez
Anyone have any thoughts/suggestions? ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users

[icinga-users] Icinga not honoring notification period

2017-03-08 Thread Michael Martinez
":[],"is_inside":false,"name":"9to10","original_attributes":null,"package":"_etc","paused":false,"prefer_includes":true,"ranges":{"friday":"12:00-24:00,00:00-01:00",&qu

[icinga-users] Can see the dependencies on the console?

2017-03-02 Thread Michael Martinez
Is there a way to see the Dependencies on the web interface? -- --- Michael Martinez http://www.michael--martinez.com ___ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users

Re: [icinga-users] Service dependency not working

2017-04-07 Thread Michael Martinez
On Fri, Apr 7, 2017 at 12:39 AM, Gerald Vogt wrote: > Are you sure, the "check_nrpe_service" is already in hard state when the > dependent checks are running? -Gerald Thank you for bringing this up. In fact this was it. I repeated the experiment, this time waiting for the

Re: [icinga-users] What is the behavior of downtiming a non-existent host via cli?

2018-05-17 Thread Michael Martinez
I guess it just ignores it. I did a couple simple tests scheduling DT for a non-existent host - starting now, and starting at a future time - and in both cases Icinga2 returned a null value, so I assume it threw it into a bit bucket. I was kinda hoping it would "save it" for future reference where

[icinga-users] Is there a way to specify a date range for service History in the UI?

2018-05-01 Thread Michael Martinez
Is there an easier way to retrieve the history of a Service check other than continually hitting "Load More" at the bottom of the panel? I want to go back to a certain point that is many, many screenfuls in the past. Is there a way to specify a date range, perhaps? -- --- Michael Mar