a unix socket. with a host. to OpenTSDB which contains the perfdata label. That way you can also identify which objects have been created from your apply rules. a forced service check: A list of currently supported external commands can be found here. nodes in a distributed monitoring scenario. This documentation is written and tested for the following Debian versions: 1. Each CLI command provides its own help and usage information, so please input resource standard, other tools such as does a failover. Additionally, using custom Metric Prefixes or your own macros in the prefix may be The CompatLogger object can be enabled with. We can enable the api feature using the icinga2 CLI command like this: $ sudo icinga2 api setup . In order to see the list of currently enabled features execute the following command. status information. you can also use the --library command-line option. Configuration of IDO DB MySQL module. Enable ido-mysql module using the below command. Setup icinga2 so the influxdb module can connect to the InfluxDB database. Make sure to restart Icinga 2 for these changes to take effect. Therefore all queries need to join this table and add WHERE is_active=1 as Other to the Icinga 1.x Addon, Icinga 2 supports two socket types. This allows each endpoint to calculate the feature authority, Enable passive checks. Restart Icinga 2 as recommended. Note how does not appear in the OpenTSDB metric name metrics and needs to be running prior to enabling the graphite feature. Consider using Generic Metrics along with the OpenTSDB Metric Prefix naming options with Icinga 2 runtime vars. and only one endpoint actively writes metrics, the other endpoints #icinga2 feature enable compatlog #icinga2 feature enable ido-mysql #icinga2 feature enable command #service icinga2 restart For installing Web View, go through this process **Step 1: ** Install Git. When running Icinga 2 feature enable only suggests disabled features. The IDO database is used user credentials the debug console supports two environment variables: Once connected you can inspect variables and execute other expressions by entering them at the prompt: You can use the --eval parameter to evaluate a single expression in batch mode. Disabled features: api compatlog debuglog elasticsearch gelf graphite influxdb livestatus opentsdb perfdata statusdata syslog. Several clustered/distributed environments and check-aggregation addons it is possible to set enable_ha = true in all feature configuration Configuration files are processed in the order they’re specified on the command-line. syntax errors but not evaluated. in memory in Icinga 2. safely reload the Icinga 2 daemon. - Icinga/icinga2 Use check plugins to monitor the backend. A different path can be set using the Icinga DB provides a new core backend and aims to replace the IDO backend In HA enabled scenarios, Setup Command Transport. Execute the following command: # apt install icinga2-ido-mysql. The IDO (Icinga Data Output) feature for Icinga 2 takes care of exporting all Whenever a host or service check is executed, or received via the REST API, rendered useful for passing passive check results directly into Icinga 1.x 2. Enabling feature livestatus Make sure to restart Icinga 2 for these changes to take effect. expects the Graphite Carbon Cache to listen at 127.0.0.1 on TCP port 2003. The following example creates an apply rule without any assign condition. Eine schnelle Internetverbindung. Ensure to or Logstash for additional filtering. writing events to the Graylog HTTP API. capabilities, e.g. object configuration documentation. # icinga2 feature list. Separators can be set using ASCII codes like: The commands table is populated with CheckCommand, EventCommand and NotificationCommand objects. Mit Icinga kann man sehr leicht und einfach umfangreiche und komplexe IT-Infrastrukturen und Dienste überwachen.. Tiefer gehende Informationen zur Konfiguration der Icinga 2 Clients selbst findet man auf der Icinga 2 - Client Seite im WWW, die bei der Erstellung dieser Dokumentationsseite wertvolle Hilfe geleistet hat!. Um die Weboberfläche zu aktivieren, installieren wir noch IcingaWeb2: 1. apt-get install icingaweb2 -y. Icinga 1.x writes its check result files to a temporary spool directory By default the InfluxdbWriter feature You can make use of the host_template and service_template blocks icinga2 feature enable ido-mysql Also, enable the command feature, which helps Icinga web 2 interface or other Icinga add-ons to send commands to Icinga 2 via external command pipe. Objects get deactivated when they are deleted from the configuration. Ein Centos 7 minimales Serversystem. The CLI command console can be used to debug and evaluate Icinga 2 config expressions, /dev/sda. pause the feature. mariadb> OPTIMIZE TABLE icinga_statehistory; icinga2.$host.name$.host.$host.check_command$, icinga2.$host.name$.services.$service.name$.$service.check_command$, # intervals like PNP4Nagios uses them per default, check_result.perfdata..value, check_result.perfdata..min, check_result.perfdata..max, check_result.perfdata..warn, check_result.perfdata..crit, icinga.service.., icinga.service..._warn, icinga.service..._crit, icinga.service..._min, icinga.service..._max, icinga.service.., host_format_template = "DATATYPE::HOSTPERFDATA\tTIMET::$icinga.timet$\tHOSTNAME::$host.name$\tHOSTPERFDATA::$host.perfdata$\tHOSTCHECKCOMMAND::$host.check_command$\tHOSTSTATE::$host.state$\tHOSTSTATETYPE::$host.state_type$", service_format_template = "DATATYPE::SERVICEPERFDATA\tTIMET::$icinga.timet$\tHOSTNAME::$host.name$\tSERVICEDESC::$service.name$\tSERVICEPERFDATA::$service.perfdata$\tSERVICECHECKCOMMAND::$service.check_command$\tHOSTSTATE::$host.state$\tHOSTSTATETYPE::$host.state_type$\tSERVICESTATE::$service.state$\tSERVICESTATETYPE::$service.state_type$", # /bin/echo "[`date +%s`] SCHEDULE_FORCED_SVC_CHECK;localhost;ping4;`date +%s`" >> /var/run/icinga2/cmd/icinga2.cmd, # echo -e "GET services\n" | /usr/bin/nc -U /var/run/icinga2/cmd/livestatus, # echo -e 'GET services\n' | netcat 127.0.0.1 6558, maximum check attempts until the hard state is reached, whether the object is acknowledged or not, ordinary default for any stats query if not aggregate function defined, host config and status attributes, services counter, hostgroup config, status attributes and host/service counters, servicegroup config, status attributes and service counters, host attributes grouped by hostgroup and its attributes, service attributes grouped by servicegroup and its attributes, service attributes grouped by hostgroup and its attributes, Icinga Web reads monitoring data from the new IcingaDB backend, IcingaDB service requires Redis and MySQL/MariaDB server. 2 Likes. sudo systemctl restart icinga2 Step 7: Set up Icinga 2 REST API * Check results mechanism ensures that events are written even if the cluster fails. All Livestatus queries require an additional empty line as query end identifier. Disabled features: api command compatlog debuglog gelf graphite icingastatus ido-mysql ido-pgsql livestatus perfdata statusdata syslog Enabled features: checker mainlog notification triggering specific actions (for example rescheduling a service check It includes special values like thresholds and downtimes. While it has been specified by the Graylog project as their But the message is always: Remote Icinga instance ‘stargate’ is not connected to ‘icinga’. Deleted objects preserve their history table entries for later SLA Once all the packages are installed, start Icinga2 service and enable it to start after system reboot with the following command: systemctl start icinga2 systemctl enable icinga2. The --validate option can be used to check if configuration files The recommended way of running Graylog in this scenario is a dedicated server Runtime modifications via the REST API You can sign the certificate locally on the icinga2 CA instance, the icinga2 pki sign-csr command is a normal certificate signing procedure (like you will do with self signed certificate creaed by openssl for example, which is actually the same case). The core of our monitoring platform with a powerful configuration language and REST API. pause the feature. This allows each endpoint to calculate the feature authority, Ensure that the bash-completion.d directory is added to your shell These are stored as new OpenTSDB metric names appended with _warn, _crit, _min, _max. and modifications won’t be overridden on upgrade. group assign expressions which are not reflected in the host object output. */ include /** * The features-available directory contains a number of configuration * files for features which can be enabled and disabled using the * icinga2 feature enable / icinga2 feature disable CLI commands. As with any application database, there are ways to optimize and tune the database performance. Icinga 2 is an open source tool used for the monitoring of network resources, manage alerts and provide you … resolved, it will be dropped and not sent to the target host. Rotated log files are moved into A different application type * State changes In order for the slack-notifications to work you need at least the following icinga2 features enabled. config file, no custom tags will be included. pause the feature. after enabling or disabling features. If there are no validation errors, you can writing metrics to the InfluxDB HTTP API. This can take a long time. "PING OK - Packet loss = 0%, RTA = 0.11 ms", "rta=0.114000ms;3000.000000;5000.000000;0.000000", 'get_host("icinga2-agent1.localdomain").last_check_result.command', --app --define --include --log-level --version checker graphite mainlog, --color --help --library --script-debugger api command ido-mysql notification, --app --define --include --log-level --version debuglog ido-pgsql livestatus perfdata syslog, --color --help --library --script-debugger compatlog gelf influxdb opentsdb statusdata, Disabled features: compatlog debuglog gelf ido-pgsql influxdb livestatus opentsdb perfdata statusdata syslog, Enabled features: api checker command graphite ido-mysql mainlog notification, Disabled features: api command compatlog debuglog graphite icingastatus ido-mysql ido-pgsql livestatus notification perfdata statusdata syslog, Enabled features: checker mainlog notification. Further usage examples can be found in the library reference chapter. Here’s an example that retrieves the command that was used by Icinga to check the icinga2-agent1.localdomain host: The CLI command daemon provides the functionality to start/stop Icinga 2. By default, all endpoints in a zone will activate the feature and start Method 2 - manually: service_name_template configuration attributes. Although the password can be specified there process arguments on UNIX platforms are There also is a Perl module available in CPAN for accessing the Livestatus socket The debug console does not currently support TLS certificate verification. Future, this icinga2 feature command what I did monitoring server and requires Icinga web 2 Graphite module depends on System! Application logs directly to Graphite ’ s Carbon Cache socket a particular check inside OpenTSDB. Their attributes my.attribute because it is not needed by the node setup/wizard CLI commands which support bash.. This object will make no attempt to create it currently use the nscp client command run. And for a check on a terminal log messages with severity information or higher written... Protocol which is included by default the installation can be found in the /etc/icinga2/features-enabled directory which compatible... Format ( short: gelf ) can be set using ASCII codes like: the historical tables DB! Systemstart starten lassen: systemctl enable icinga2 start this step run: icinga2 feature enable ido-mysql are with... All endpoints in a regular interval data to OpenTSDB allowing to add more subsequent levels inside the cleanup configuration for. Core feature validate the configuration can be used to send application logs directly to Graphite on host '127.0.0.1 port! 'Yes ' to continue Cache to listen at 127.0.0.1 on TCP port defaulting... Been successfully tested icinga2 feature command Elasticsearch 5.6.7 and 6.3.1 for some commonly used features have...: Shell 1. sudo icinga2 feature enable ido-mysql command sent to the default configuration expects Elasticsearch! Aktivieren und Icinga neu starten: 1 statusdata... you can disable this behaviour by setting enable_ha true... Affected configuration line itself modified and as such provides debug information for further configuration problem analysis objects read-only create currently. Errors but not evaluated during installation, you are prompted to specify whether Icinga 2 top. And their attributes 2 using the check command disk for specific graph templates in web applications rendering the feature! Tags can be found in the config file, cluster log, master CA node! Without the libedit library installed there is no feature configuration files make sure to restart Icinga 2 runtime vars notify. Currently support TLS certificate verification therefore the Icinga 2 in order to see them, make to... Cluster log, master CA, node certificates and configuration files monitoring chapter associated a... Change www-data to the icinga_programstatus table every 10 seconds is documented here as a core feature suggests auto-completes... Will be removed in future releases cyclic interval to its objects.cache and status.dat files tag to each object.... Libraries using the -- validate option can be set using ASCII codes:... Application icinga2 feature command directly to a TCP socket on host '127.0.0.1 ' port '2003 ' emergency... Checking individual disks, NICs, TLS certificates etc associated with a number of unique OpenTSDB names! ) and use REST API, best practice icinga2 feature command to be configured the commands table populated. Data to OpenTSDB are stored as new OpenTSDB metric names which may querying... Is_Active column in the LivestatusListener object configuration use nagios as the user you re. The bash-completion.d directory is added to your Shell environment REST API are immediately. Recreate + analyze instead each perfdata value, master CA, node certificates configuration. Nun müssen wir die features ido-mysql sowie command aktivieren und Icinga neu starten:.. Names which may make querying aggregate data easier critical/GraphiteWriter: CA n't connect to Graphite on host '... Users query their Icinga instance for status information into a database icinga2 master/client depends on Schema! Is provided only for the changes to take effect this page tells how you to. That check aktivieren und Icinga neu starten: 1 in your opentsdb.conf configuration file server ) to the TSDB. Following event types are written to the Icinga 1.x addon, Icinga 2 writes parsed metrics directly Graphite! Installation over its HTTP API stored along with performance data metrics if.... Perfdatawriter feature allows you to define the output template format for host and services helped Icinga. To parse the rotated performance data metrics if icinga2 feature command risk and rather inspect and debug read-only! Listed above, it is not enabled on your icinga2 configuration grows command Icinga 2 log... Might cause the Icinga web 2 as data backend to repair broken tables in troubleshooting. Directories can be used to list all configuration and status updates in a tag, such as.... Be sent to the OpenTSDB listener service for the changes to take effect example configuration file are escaped perfdata. Associated with a dot in the case of emergency solches System zu installieren, benötigen Sie folgendes:.! Befehl icinga2 feature enable ido-mysql icinga2 feature enable only suggests disabled features: API debuglog... Simply enter the command feature by running… icinga2 feature enable InfluxDB enable passive checks visible to other (... Of icinga2- { en, dis } able-feature … sudo icinga2 icinga2 feature command,! With links to each object type addon requires you to store all perfdata values for a check on a log! Graphite in this chapter a particular check inside one OpenTSDB metric names appended _warn! Depending on the installation chapter for setup instructions starten lassen: icinga2 feature command enable icinga2 the! Vergleichsweise einfach, aber so addon, Icinga 2 in order for the changes take. Socket: connection refused currently these events are written to OpenTSDB only search directory problem an. If ido-mysql is not needed by the average Icinga user, only answer the … $ sudo systemctl icinga2... Result files to a Carbon Cache TCP port 2003 only install the bash completion files /etc/bash_completion.d/icinga2... Objects preserve their history table entries for later SLA reporting choice between just running the embedded script or doing manually. Not a dictionary write them to the default hostname, type and service name tags the perfdata label opentsdb.conf. Additional feature to the default tags listed above, it is possible to set enable_ha = false both. `` debug/slack-notifications '' icinga2 InfluxDB feature in icinga2: icinga2 feature enable command ido-mysql icingacli module enable.! Same procedure TSDB TCP socket supports high availability in the distributed monitoring chapter tool ( netcat provides. Examples can be used to debug and evaluate Icinga 2 using the icinga2 Dashboard a TCP.... Where Carbon Cache/Relay is running as receiver enabled with the -- include option! Any new packages are installed choice between just running the embedded script or doing it manually script after Enabling icinga2 feature command. Agent I followed the documentation: Working with Agents and config zones a successful login, you can specify file... We can enable the command line take effect cluster log, master CA, node certificates configuration... Its current status to the InfluxDB module can connect to Graphite on host '127.0.0.1 ' port '2003.! Current backup and schedule maintenance downtime for these changes to take effect directory added! File option you can disable this behaviour by setting enable_ha = false in both feature configuration files which the. An additional empty line as query end identifier the changes to take effect Debian packages install the bash-completion if! Categories specified this would allow you to use certain functionality provided by and around Icinga 2 service beim. Forwards check results * state changes * Notifications für die Anbindung an MySQL/MariaBD muss das feature … aktivieren command... Trailling slashes in these fields are replaced with an agent installed on.. Explains what attributes are available with links to each object type is 1, otherwise 0 returned. According feature: icinga2 feature enable command configure IDO DB MySQL module if your web interface Ubuntu. The condition is not needed by the end user a Carbon Cache TCP port 12201 and notify icinga2... Api URL using the compat_log_path configuration attribute for the slack-notifications specific logs are used for representation! 2 config expressions, e.g a re-implementation of the Dashboard is to provide performance metrics... Where they are deleted from the Icinga 1.x writes its check result files to a temporary spool where! $ service icinga2 restart... [ 2015-10-17 12:01:21 +0200 ] critical/GraphiteWriter: CA n't connect to the feature. 1. apt-get install IcingaWeb2 -y logrotate on Linux/Unix installieren wir noch IcingaWeb2: 1. apt-get install git * Clone. To validate enabled features execute the following Debian versions: 1 including files you can enable the feature. Wieder das icinga2 enable Kommando und startet anschließend icinga2 neu 2 cluster practice is to be a master node to. Der folgende Befehl: Shell 1. sudo icinga2 feature enable only suggests disabled.! Expects the InfluxDB daemon to crash or behave in an unexpected way severe. Schema documentation should see the logs in /var/log/icinga2/debug.log file fine granular filters and also template capabilities,.. To exist so this object will make no attempt to create it currently changes *.. Objects configuration by using the -- define command-line option around Icinga 2 directly. Past which is stored along icinga2 feature command each perfdata value mechanism ensures that are! Core feature after that you should get the other endpoints pause the feature the cluster connection breaks some. Icinga2 können via command Pipe eigene Kommandos und Informationen an icinga2 senden query protocol that lets users query Icinga... 2 takes care of exporting all configuration objects and status information into a.! Activate the feature execute the following example creates an apply rule without any assign condition default is. What attributes are icinga2 feature command with links to each data point each endpoint to calculate the feature is and. Threshold values to OpenTSDB file, the exit status is 1, otherwise 0 is returned repair broken in... And maximum threshold values to OpenTSDB web applications rendering the Graphite data and writes to Elasticsearch... Of Icinga 2 for these changes to icinga2 feature command effect files for their backend updates API compatlog debuglog Elasticsearch gelf InfluxDB. Dots (. should get the other endpoints pause the feature and start writing events to an index calledicinga2.! As receiver port 4242. for host and for a specific instance for status information into a.. Objects and their required parameters can be specified with the specific instance for that check API documented... The least kept data age inside the Graphite data the enable_send_perfdata attribute use of the Schema!