Hot answers tagged

12 votes
Accepted

There is currently no icinga instance writing to the IDO

I resolved, need edit the file /etc/icinga2/features-enabled/ido-mysql.conf and insert db/user/passwd My file is: library "db_ido_mysql" object IdoMysqlConnection "ido-mysql" { user = "icinga", ...
user avatar
  • 955
10 votes
Accepted

How to monitor remote “https” with Icinga version 2?

Your host defines the custom attribute "http_vhosts" as dictionary but that's never used (there's no apply for rule defined iterating over that dictionary and geberating service objects). Instead the ...
user avatar
  • 845
9 votes
Accepted

How to set icinga2 downtime across midnight

You could assign the service.vars.backup_downtime value "22:00-24:00,00:00-05:00" so that you get downtime from 22:00 to 05:00 the next day. ie. service definition will be: apply Service "foo" { ...
user avatar
  • 368
5 votes
Accepted

Delaying a Nagios/Icinga check

SvW is not wrong in what (s)he writes, but you should also investigate the variable max_check_attempts, which defines how many checks a service has to fail before going HARD error and notifying. For ...
user avatar
  • 77.9k
5 votes

Icinga2: Send E-Mail on Host/Service Down

You did not define any notification objects, referenced to host/service objects and linked to users and notification commands. The sample configuration in conf.d/notifications.conf already provide an ...
user avatar
  • 845
4 votes
Accepted

Error with using NRPE with Icinga2

Change vars.loads = "'10' '20'" to vars.loads = "10!20" because NRPE is not able to read the arguments the way you have declared them in object Service.
user avatar
  • 56
4 votes
Accepted

Icinga2 - Unknown user:backuppc

The problem is the way you put the command into Icinga2. When you write: command = [ "sudo", "-u backuppc", PluginContribDir + "/check_backuppc" ] This gives the system a argument list, that puts ...
user avatar
4 votes

icinga2: query check results from command line?

With icinga2 you can use icingacli, see https://github.com/Icinga/icingaweb2/blob/master/modules/monitoring/application/clicommands/ListCommand.php for options, look at this ascii movie for some ...
user avatar
  • 231
4 votes

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

In icingaweb2 go to configuration -> authorization -> roles -> create new role. Under monitoring/filter/objects you can enter any filter that you would use in icingaweb2. So you can just go to ...
user avatar
  • 3,738
4 votes
Accepted

Icinga: max_attempts vs max_check_attempts

max_attempts is an old definition for services and hosts and it's no longer used in the nagios Core 4. See that to know the possibles definitions for yours objects: Objects definition With Icinga2 ...
user avatar
  • 1,295
4 votes
Accepted

Nagios Plugin API: return N results, not just one

All Nagios cares about is the return code, and there's only one return code. Ultimately, you can only have one status per check, sorry. You can sort of work around this with something like check_mk, ...
user avatar
  • 4,607
3 votes

Icinga 2 vs Nagios 4 vs Shinken 2 : is there Performance Benchmarking comparison available?

Benchmarks for monitoring environments always differ and numbers won't apply to your requirements. Although there's a rich community for each project on its own where you may ask others to share their ...
user avatar
  • 845
3 votes
Accepted

How to divide hosts by groups in Icinga2 properly?

I wouldn't depend on hostgroups for that - they can be used to group hosts for external user interfaces and help as a basis, but I would recomment looking into alternate apply rule match conditions ...
user avatar
  • 845
3 votes

icinga-web not updating icinga status properly

You're mixing Classic UI and Web here. They use different data source backends and configuration files. Classic UI parses the status.dat abd objects.cache files which are periodically written by the ...
user avatar
  • 845
3 votes

Delaying a Nagios/Icinga check

You can define detailed configurations to tell Nagios every detail about the check for a service. Look up the check_interval and retry_interval config options, and while you are at it, learn about ...
user avatar
  • 96.4k
3 votes
Accepted

Get IPs of printers on Windows print server via SNMP\Script

Your options: 1. evaluate registry data query for the subkeys of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers to get a list of printers match the port value against ...
user avatar
  • 40.2k
3 votes

install icinga2 and icinga-web in different servers

host1 runs icinga2 host2 runs the mysql db host3 runs icinga web regarding the network connections host2 listens on port 3306 (mysql), accepts read/write connections from host1 (write) and host3 (...
user avatar
  • 845
3 votes
Accepted

Output additional information if nagios/icinga check fails

You can use an Event Handler to do this. The event handler would get called on any state change, and you write some logic to run that additional select when it's in CRITICAL state (e.g., via ssh with ...
user avatar
  • 4,607
3 votes
Accepted

Nagios configuration syntax: Multiple directives per line?

No, you cannot do this. The config file parser reads one line at a time and expects a single directive per line. You would have to heavily modify the parser in xodtemplate.c to do this. The only ...
user avatar
  • 4,607
3 votes

Nagios configuration syntax: Multiple directives per line?

You mentioned you're using Icinga. If you're on the latest Icinga2, the config format supports single-line definitions via semi-colons. I do this in my own setup in order to add new services when ...
user avatar
  • 161
3 votes
Accepted

Icinga2 perfdata directory is overflowed

Icinga 2 does not clean rotated performance data files. It expects external daemons/applications to remove these files after being processed. If you're using PNP for example, the NPCD daemon will ...
user avatar
  • 845
3 votes
Accepted

Monitoring Debian 5, 6, 7 hosts with icinga2

While it may be confusing that you'd just install the icinga2 binary package on a node you're calling a "client", it is reasonable to do so. That way you'll benefit from the following things: Same ...
user avatar
  • 845
3 votes

There is currently no icinga instance writing to the IDO

On Debian systems, after the default installation and configuration of the IDO package, this file is actually pre-generated in /etc/icinga2/features-available/ido-pgsql.conf or similar, you just need ...
user avatar
  • 1,545
3 votes
Accepted

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

I found the solution. There is a plugin called "negate" that does exactly this. That's how you configure it: object Host "hostname" { address = "192.168.1.11" vars.negate_command = "/...
user avatar
  • 225
3 votes

Setting up icinga2 nodes via Ansible: how do I get the ticket from the master?

Ansible allows to get facts from other hosts with the delegate_to parameter. To grab the ticket from the icinga2 server you will need something like this: - name: Get ticket. command: icinga2 pki ...
user avatar
3 votes

Why would I need/want idomod, ido2db, etc.?

IDO is used for modern interfaces (Icinga Web) and things like graphing support to interact with Icinga. Basically, it writes all status information, checks etc. into an SQL database (that's ido2db's ...
user avatar
  • 96.4k
2 votes
Accepted

Time period in Nagios - First weekday after EOM?

As you may have seen, there are examples of almost every possible combination in the time period definitions and on call rotation docs, except what you want. While you can do "nth Monday of the month"...
user avatar
  • 4,607
2 votes

The best nagios plugin for SMART?

I've used the plugin: check_ide_smart ; however, I eventually discovered that it did not notify me regarding errors in the smart log on the disk. The problem bug is apparently still open after 5 ...
user avatar
2 votes
Accepted

Adding all hosts in subnet to icinga monitoring without specifying hostname/IP

I've been working with fredmu on this problem, and came up with a working solution inspired by Tim Brigham's answer. Using the default generic-host definition this could be solved using script that ...
user avatar
  • 171
2 votes
Accepted

Icinga displays binary output to browser

Icinga main page consist of three frame The left panel which consists of pure HTML menu.html The top panel which consists of CGI output cgi-bin/tac.cgi?tac_header The main window which consists of ...
user avatar
  • 17.9k

Only top scored, non community-wiki answers of a minimum length are eligible