Questions tagged [icinga2]

Icinga2, the next generation, complete rewrite, of the Nagios fork Icinga, is an open source monitoring system which checks the availability of your network resources, notifies users of outages, and generates performance data for reporting.

Icinga 2 manages monitoring tasks, running checks, sending alert notifications. The Icinga 2 features can be enabled on-demand, be it default features such as the 'checker' or 'notification' component, or external interfaces compatible with Icinga 1.x and its user interfaces, for example the IDO DB (Icinga Data Out Database). Icinga 2 ships a built-in cluster stack secured by SSL x509 certificates attempting to make distributed monitoring setups more easy.

The configuration syntax is different to Icinga Core 1.x and Nagios and requires a migration on upgrade.

89 questions
11
votes
2 answers

How to set up Icinga2 remote client without using CLI wizard?

I want to set up Icinga2 remote clients via Puppet, but the whole page of official documentation talks about using their awesome CLI wizard, which requires to be run manually. Any workaround? Maybe I should just go back to Nagios?
Limbo Peng
  • 208
  • 1
  • 2
  • 5
4
votes
1 answer

How to restrict a hostgroup to a specific user group? (icinga2/icingaweb2)

I want to know how to restrict a hostgroup to a specific group of users in icinga. In case that many organizations use the monitoring system, they can only see what's inside their hostgroup/s
3
votes
3 answers

NRPE not working after NRPE plugin upgrade from v2.15 to v3.2.1

I'm migrating our Icinga 2 from Debian 8 to Ubuntu 18.04. The old server had NRPE plugin 2.15. The new server has NRPE plugin 3.2.1. If I try to connect with the new plugin to old NRPE servers (v2.15 too), I get these errors: $…
Michael
  • 325
  • 6
  • 19
3
votes
1 answer

Dynamically setting check_interval parameter based on Service_State in Icinga2

I have a requirement where check interval is 180 mins while notification interval is 10 mins. Means service owner wants if he miss any alert that usually comes after 180 mins if service is critical then Icinga keeps on checking and informing them…
Manii
  • 101
  • 8
3
votes
2 answers

icingaweb2 displaying an empty page

I'm attempting to set up icinga2 and icingaweb2 on a Ubuntu 16.04 system using mariadb as the database. I seem to have icinga set up OK (no errors in the icinga.log, apache error log or syslog) but when I try and navigate to the icinga2 web page I…
Peter Nunn
  • 432
  • 1
  • 10
  • 24
3
votes
2 answers

Icinga2: Send E-Mail on Host/Service Down

I installed and configured Icinga2 with icingaweb2. I added a test-host with a test-service: Let's call it "example.com". This is the test-host: /etc/icinga2/conf.d/hosts/example-com: object Host "example-com" { //Importiert die generische…
MyFault
  • 893
  • 3
  • 14
  • 35
2
votes
0 answers

Icinga2: Apply service to vhosts for each host in a hostgroup

I have a series of webservers (WS1, WS2, and WS3), which belong to the HostGroup "my-web-servers". Each of these webservers have several vhosts: WS1 has example1.org and example2.org. WS2 has example3.org, example4.org, and example5.org. WS3 has…
DrDamnit
  • 348
  • 4
  • 16
2
votes
1 answer

How to raise alert if a tcp port is responding in Icinga2?

I'm new to Icinga2. I have set up a couple of service checks. Now I want to check if a TCP port is responding, and if it does raise a down event. Basically I want to reverse the status, because normally this port should not be listening. How can I…
Hakan
  • 225
  • 1
  • 3
  • 8
2
votes
1 answer

Icinga2 plugin with multiple line output

I am trying to write a custom plugin for Icinga2 that gets license information from a product that we provide to our customers. Its a really simple script but there are multiple lines of output and I am trying to gather the data and have it…
Joeg1484
  • 43
  • 3
2
votes
1 answer

How to set up Icinga2 master (for remote clients) without using CLI wizard?

As a follow up question to How to set up Icinga2 remote client without using CLI wizard?, I want to setup the master in an automated way.
louisgab
  • 131
  • 1
  • 7
1
vote
0 answers

Best way to declare Icinga host variables in an Ansible variable

I am writing an Ansible role to build some Icinga 2 configurations, and the more important is the configuration of a client host in a distributed Icinga installation. I want to declare Icinga 2 host variables in an Ansible variable which can be…
Mat
  • 1,783
  • 4
  • 22
  • 39
1
vote
3 answers

Nagios/Icinga: Don't show CRITICAL for DRBD partitions on standby node

I've set up a pacemaker/corosync ha-cluster in a failover configuration with two nodes: productive and standby. There are three DRBD partitions. Everything works fine so far. I'm using Nagios NRPE on both nodes to monitor the server with icinga2 as…
digijay
  • 1,074
  • 3
  • 9
  • 22
1
vote
2 answers

Primary key insertions start at zero when failing over logical replication in PostgreSQL10

I have two PostgreSQL servers running, one publishing all tables and the other subscribing to all via logical replication. I'm currently testing a failover solution, and it seems if I remove the subscribers on the secondary and redirect the…
1
vote
1 answer

Why Icinga2 remote apt check is displaying results from master?

I've a icinga2 installation monitoring some debian hosts using native agent. All checks are working fine except apt. The results displayed are taken from the icinga2 master machine and I can't understand why. This is my apt service config: apply…
sgargel
  • 190
  • 1
  • 15
1
vote
0 answers

CRITICAL: Error code 69 returned from /usr/bin/mailq while using check_mailq plugin

While running check_mailq with root user output is as expected but with icinga user it is giving below error: [root@servername ~]# /icinga/plugins/libexec/check_mailq -w 1 -c 2 postqueue: warning: Mail system is down -- accessing queue…
Manii
  • 101
  • 8
1
2 3 4 5 6