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
with this
request? If the downtime is scheduled for a future time for a host
that does not exist *at present* (but will exist within say 10
minutes), will Icinga2 hold this downtime until the host exists?
--
---
Michael Martinez
http://www.michael--ma
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
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 parent service to go to
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: Instantiated 2665 Depe
ues 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
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
https://lists.icinga.org/mailman/listinfo/i
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
https://lists.icinga.org/mailman/li
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 functi
Anyone have any thoughts/suggestions?
___
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
t;includes":[],"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
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
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 you have in
> /var/
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 don't have them. How
n Feb 23, 2017, 5:01 PM -0500, Michael Martinez , 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"
>
>
>
> On Thu, Feb 23, 2017
/4747
>
> On Feb 23, 2017, 3:48 PM -0500, Michael Martinez , 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 icinga101 api]$ !find
> find . -path '
imes
./packages/_api/conf.d/comments
On Thu, Feb 23, 2017 at 12:30 PM, Michael Martinez 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://www.michael-
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
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
> database are you using and wh
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] information/IdoMysqlConnec
On Sat, Feb 18, 2017 at 6:59 AM, Joosten, Markus
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.
> I'd try analyzing the syst
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 database server have?
>
mysql-5.5, ru
ld I do 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
uld like to try to minimize the spikes in load
average. I've seen some mention of this problem in other threads and
forums, without any solutions other than throwing more cores at the
hardware.
On Wed, Nov 30, 2016 at 9:26 AM, Michael Martinez wrote:
> Is "service icinga2 reload&qu
ter_state$"
vars.dummy_text = "$cluster_text$"
} // end object
On Wed, Nov 30, 2016 at 10:49 AM, isaac rodriguez
wrote:
> Hello all,
>
> I am using Icinga2 to do some service monitoring across a number of nodes,
> and had a question about aggregating notifications
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
htt
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, opt-in mysql/pgsql driver packages
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 correctly, it is because we ar
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.
Back in May when I was first standing up t
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 /media/
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 s
On Fri, Nov 11, 2016 at 1:19 PM, Antony Stone
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, and how did you upgrade to 2.5.4?
>>
>
tical, 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--ma
On Fri, Nov 11, 2016 at 8:13 AM, Antony Stone
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 or something else, I've
>> be
On Mon, Nov 7, 2016 at 4:37 AM, Michael Friedrich
wrote:
>
>> On 29 Oct 2016, at 22:31, Michael Martinez wrote:
>>
>> Got it. Under global runtime macros, I see icinga.date, icinga.time, etc.
>> Thanks!
>
> 2.5 also provides get_time() and the DateTime type ob
nitely need help getting this fixed. This is our production
monitoring box, we have already migrated most of our important checks
from Nagios to Icinga2.
--
---
Michael Martinez
http://www.michael--martinez.com
___
icinga-users mailing list
icinga-users@l
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 creating a "cluste
Hi, is there a way to avoid retries and bypass SOFT states? For a
state change just go directly to HARD state. Can this be done with:
max_check_attempts = 0
retry_interval = 0
?
--
---
Michael Martinez
http://www.michael--martinez.com
___
icinga-users
On Thu, Nov 3, 2016 at 2:11 PM, Stephan Tesch 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_foo"] = {
>
on this 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 Martin
Got it. Under global runtime macros, I see icinga.date, icinga.time, etc.
Thanks!
On Sat, Oct 29, 2016 at 9:17 AM, Antony Stone
wrote:
> On Saturday 29 October 2016 at 18:09:31, Michael Martinez wrote:
>
>> is it possible to reference the system clock inside an IF statement?
&g
shold = 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
Just an update. I was able to avoid creating unnecessary service
objects by using an "apply" and "assign" instead of the "object"
definition.
> for (i in all_clusters) {
> object Service "check cluster location throttled" use(i) {
>
> It works, but obviously a bunch of unnecessary service chec
I put together a workaround that I am not entirely satisfied with. It
leaves a lot to be desired.
I modified my config generation outside icinga to create a file with a
"const" variable "const all_clusters", an array containing all the
cluster names. I have icinga2.conf including this file, so tha
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 o
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 suggestions on
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
assign
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 wrote:
> Am 26.10.2016 um 19:54 schrieb Michael Martinez:
>
> Hi Michael,
>
>&
t;.
The log statement inside the for loop does not happen.
So, it seems that get_host_group and get_objects are not working? I'm
not sure what's going on.
--
---
Michael Martinez
http://www.michael--martinez.com
___
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
On Wed, Oct 19, 2016 at 4:27 PM, Antony Stone
wrote:
> On Thursday 20 October 2016 at 00:28:21, Michael Martinez wrote:
>
>> I stumbled on the answer myself:
>>
>> servicenames = [ "1", "2" ]
>> for (item in servicenames) {
>> object Ser
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 wrote:
> var names = [ "name1&
know, you wrote, that you don't want to assign a dummy check -
> but
>>> why not? You could use the built-in "dummy"-check for this:
>>>
>>>
>>> object Host "unchecked-host" {
>>> import "generic-host"
>&
}
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?
--
= "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
> wrote:
>> Hi Hasan, thanks for your reply
ic 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 Martinez :
&g
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 wrote:
> Is there a way to tell Icinga2 not to monitor a particular Host
> object? To completely ignore it.
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
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-
On Fri, Aug 12, 2016 at 11:16 PM, Gunnar Beutner
wrote:
> How about something like this?:
My previous reply seems not to have gotten posted, so I just want to
repost and say Thanks so much for your code, it has helped a lot! I
appreciate you taking the time to write it out!
-Michael
Ok, the code given below works (for now I'm going with the
check_cluster plugin, although eventually I will play around with
Gunnar's script).
I've got a question. I don't know why "h.groups" is null. I've
verified that the hosts are getting assigned into HostGroups using the
web api to query obje
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
macro("$ec2_instances$")) ...? Why can'
ervice definition.
What woudl be the right approach?
Perhaps instead of creating an ELB array, I should create a hostgroup
for each ELB, and put the ELB's members as members of the hostgroup.
Then I can reference them in my Service definition?
--
---
Michael Martinez
http://www.michael--mar
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
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 runn
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.
___
icinga-users mailing list
ici
}
/media/ephemeral0/icinga2/etc/icinga2/conf.d/hosts/icinga_host.conf(37):
/media/ephemeral0/icinga2/etc/icinga2/conf.d/hosts/icinga_host.conf(38):
elb.discovery-premium += { "ec2-52-91-4-68.compute-1.amazonaws.com" =
1 }
^^^^
I remove the hyphen (-) from the variable name. Are
hyphens not allowed?
--
---
Michael Martinez
http://www.michael--martinez.com
___
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
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 an array or dictionary that
con
ta variable with a list of
hosts that belong to a particular hostgroup. Is there a way to
programmatically do this in Icinga2?
On Wed, Jul 13, 2016 at 10:18 AM, Michael Friedrich
wrote:
> Am 12.07.2016 um 20:30 schrieb Michael Martinez:
>>
>> Can someone give an example of how to use
Can someone give an example of how to use check_multi with Icinga2?
--
---
Michael Martinez
http://www.michael--martinez.com
___
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
On Thu, Jun 30, 2016 at 7:36 AM, Joosten, Markus
wrote:
>
> Do you have the icinga2 feature "api" enabled on your system?
>
Yes I do. Is there an api command to extract the config file?
In any case, I was able to restore the file by grepping through the
hard drive partition for a character stri
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 be possible to re
opy of the
file. 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.m
e a Nagios 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
>> 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
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
les into Icinga 2.x? Some 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
> Though I have never seen high latencies with
> icinga2 thanks to its asynchronous check execution/result processing and much
> more.
This sounds good. Thanks for your reply.
___
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.ici
> 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
https://lists.icinga.
toring solution that scales better.
--
Michael Martinez
___
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
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, a
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 so
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 Ma
: Michael Friedrich
To:
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 Martinez:
Hi all ?
Are th
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
icinga-user
85 matches
Mail list logo