Questions tagged [icinga2]

Icinga 2 is an open-source network and computer system monitoring application. Use this tag for questions relating to version two of the application.

Icinga 2 is version two of an open-source network and computer system monitoring application. Further information can be obtained from the following resources:-

There is a more general icinga tag, but it is recommended to use this tag for version two of the application.

112 questions
0
votes
1 answer

Mass acknowledgement of alerts in icinga

How to acknowledge similar alerts for a server at one single go in icinga. Please suggest. Thanks Ritu
exploding_data
  • 317
  • 1
  • 14
0
votes
2 answers

How to run sql custom query in incinga2?

I am new to incinga2 framework,how to run sql raw or custom query in incinga2 like below SELECT `user`, COUNT(0) as Total_Count, MAX(range_count) Max_Range_Count FROM ( SELECT a.`user`, a.change_time, COUNT(0)…
0
votes
1 answer

Monitor for yum / rpm package conflicts

We want to write a Icinga monitor to catch rpm package conflicts. e.g. from a "yum update": --> Finished Dependency Resolution Error: git2u-core conflicts with git-1.8.3.1-20.el7.x86_64 Is there a way to run the "Dependency Resolution"…
Tarwin
  • 592
  • 5
  • 11
0
votes
1 answer

Icinga2 API: How to set all services of a host into downtime?

I am trying to automate the setting and removal of downtimes on icinga hosts. I am currently using the following command: (note that I'm running this in an ansible playbook so {{item}} is the hostname and any other double brackets are filled in with…
Alex Cohen
  • 5,596
  • 16
  • 54
  • 104
0
votes
1 answer

Applying a dependency to a service in icinga2

We are using icinga2 for monitoring. We have a lot service checks which are applied dynamically through apply rules. Additionally, these are services applied to a hashmap of database instances which are on various hosts. The long and the short of…
AndyJ
  • 1,204
  • 3
  • 14
  • 28
0
votes
1 answer

check Mysql with remote host - Icinga2

I'm using Icinga2 to monitor Mysql server on a remote host.Now, I'm trying to configure a mysql_check. Here is the file service.conf : apply Service "mysql8" { import "generic-service" check_command = "mysql" vars.mysql_mode = "uptime" …
0
votes
1 answer

Icinga2 Python Notification Script

I am working on our Icinga2 monitoring server and I would like to do a little customization with our notifications. So, for example our workday is from 08:00 - 17:00 M-F, for any notifications during that time period need to go "group1". Anything,…
cskappel
  • 1
  • 1
0
votes
1 answer

How to get downtime on Icinga?

I'm working on a project and we are using Icinga to monitor some services. However, we need to get a downtime from some services, but I can't find it. For an example: My service is UP, running for 5 mins. Suddenly, service is down. After 10 minutes,…
0
votes
1 answer

Does Icinga2 works with router between server and client

I want to install an Icinga2 server in my home network and asking myself if this central instance is able to monitor also clients which are located outside anywhere in the internet, i.e. behind my router? I could imagine that the central instance is…
Adspectus
  • 11
  • 3
0
votes
1 answer

icinga event command attribute missing "execute" error with v2.3.9

I'm using icinga v2.3.9 on centos7 while configuring an EventCommand object, [2018-12-14 12:34:03 +0000] information/ConfigItem: Committing config items [2018-12-14 12:34:03 +0000] critical/config: Error: Required attribute is missing: Object…
bsrawat
  • 101
  • 5
0
votes
1 answer

How to check remote server load average using Icinga2

In Icinga2 there is a script in nagios plugins folder called check_load which gives the result for host OS. When I call the script with -h it reports: check_load v2.1.1 (monitoring-plugins 2.1.1) Copyright (c) 1999 Felipe Gustavo de Almeida…
Alireza
  • 6,497
  • 13
  • 59
  • 132
0
votes
2 answers

Is it possible to run a script when Icinga2 a host has a critical service?

Let's say a given host, FooHost, is running Apache2. Icinga2 runs a check by ssh command and discovers that Apache2 is not running, which triggers a critical alert. Is it possible to have Icinga2 execute a script on this event? In this example, I…
DrDamnit
  • 4,736
  • 4
  • 23
  • 38
0
votes
1 answer

Icinga2 API - get specific hosts from templates

How can i set my filters to get only the hosts from a template, which have a custom variable set to true? With this curl, im getting all hosts in the template but not the ones, which have set the custom_var true curl -k -s -u…
baumi
  • 11
  • 4
0
votes
1 answer

Icinga2 check_file_age always returns File not found

I'm using check_file_age command with service created in icinga2 director. It always returns file not found. FILE_AGE CRITICAL: File not found - /root/last-backup The file exists on the server and returns OK if ran in terminal. ~…
Pion
  • 708
  • 9
  • 21
0
votes
1 answer

how to fix icinga2.service: main proces exited

Hello i have got one problem with icinga. There is a log. root@fejt-vxp:~# systemctl status icinga2 ● icinga2.service - Icinga host/service/network monitoring system Loaded: loaded (/lib/systemd/system/icinga2.service; enabled) Drop-In:…