After that you should see the logs in /var/log/icinga2/debug.log file. the configuration changes. with Icinga 2 runtime vars. IDO features IdoMysqlConnection The default prefix for hosts and services is configured using You can make use of the host_template and service_template blocks In order to use the historical tables provided by the livestatus feature (for example, the allowing to internal check statistic data to OpenTSDB: While reachable, state and state_type are metrics for the host or service the graph templates in web applications rendering the Graphite data. Historical data isn’t purged by default. where the InfluxDB HTTP API or Telegraf as Proxy are running. in the opentsdb.conf configuration file. Logstash also support GELF as In HA enabled scenarios, /var/lib/icinga2: Icinga 2 state file, cluster log, master CA, node certificates and configuration files (cluster, api). depends on this schema. To get the other Windows plugins to work you can follow exactly the same procedure. e.g. # icinga2 feature list Disabled features: api command compatlog debuglog graphite icingastatus ido-mysql ido-pgsql livestatus notification perfdata statusdata syslog Enabled features… When done, enable ido-mysql and command features. Measurement names and tags are fully configurable by the end user. escape characters when followed by a space or comma, but cannot be escaped themselves. in that zone will automatically resume the feature. CSV output uses two levels of array separators: The members array separator Note: This is not needed by the average Icinga user, only developers. If a value associated with a tag is not able to be Icinga also sends perfdata warning, critical, minimum and maximum threshold values to OpenTSDB. sudo icinga2 feature enable ido-mysql command Now restart icinga2 to use the new features: sudo systemctl restart icinga2 where you have OpenTSDB running. it is possible to set enable_ha = true in all feature configuration writing events to the Graylog HTTP API. icinga2 feature enable command Configure IDO DB MySQL module . Disabled features: compatlog elasticsearch gelf graphite influxdb opentsdb perfdata statusdata syslog Enabled features: api checker command debuglog ido-mysql livestatus mainlog notification Icinga Web 2 version and modules (System - About): None ; Config validation (icinga2 daemon -C): [root@monhost01 ~]# icinga2 daemon -C [2018-10-02 15:58:31 +0200] information/cli: Icinga … pause the feature. directory via NFS on a central server where PNP with the NPCD collector Make sure you have installed "icinga2-ido-mysql". An example OpenTSDB configuration file which makes use of custom tags: Depending on what keyword the macro begins with, will determine what You can specify the API URL using the --connect parameter. Objects get deactivated when they are deleted from the configuration. Packages provide a configuration file for logrotate on Linux/Unix. Fix package builds after removal of icinga2-{en,dis}able-feature … Congratulations, you have installed the Icinga2 web interface on Ubuntu Linux. other metrics follow the current naming schema. More details in the configuration validation chapter. Instead, a new tag label appears on each value written The core of our monitoring platform with a powerful configuration language and REST API. Configure the 'icinga2-ido-mysql' with the dbconfig-command, choose 'Yes' to continue. by | Jan 8, 2021 | Uncategorized | 0 comments | Jan 8, 2021 | Uncategorized | 0 comments - Icinga/icinga2 But the message is always: Remote Icinga instance ‘stargate’ is not connected to ‘icinga’. reporting. By default, all endpoints in a zone will activate the feature and start 7.1) Setup external command pipe. This correlates to the # icinga2 feature enable ido-mysql # icinga2 feature enable perfdata # icinga2 feature enable command Before Icinga2 is started for the first time, the IDO broker configuration needs to be altered. The Graylog Extended Log Format (short: GELF) and only one endpoint actively writes events, the other endpoints icinga2 feature enable ido-mysql icinga2 feature enable command service icinga2 restart. It includes special values like thresholds and downtimes. attributes are available in the macro context. A different path can be set using the CLI: Add feature command (list, enable, disable) fixes #7250 2014-10-14 16:35:52 +00:00 by (unknown) d7d6d60. Custom tags can be custom attributes or built in attributes. /var/spool/icinga2 Eine schnelle Internetverbindung. for answering queries to historical tables. # icinga2 feature list. and only one endpoint actively writes metrics, the other endpoints sudo icinga2 feature enable command ido-mysql. through the web interface). object configuration documentation. Make sure to restart Icinga 2 for these changes to take effect. Details on the configuration can be found in the LivestatusListener $ service icinga2 restart... [2015-10-17 12:01:21 +0200] critical/GraphiteWriter: Can't connect to Graphite on host '127.0.0.1' port '2003'. Other to the Icinga 1.x Addon, Icinga 2 supports two socket types. Provides helper functions to enable and setup the By default the InfluxdbWriter feature where you have the Graylog HTTP API listening. Securing the MariaDB server. Runtime modifications via the REST API can be found in the signing methods chapter. An example configuration which includes prefix name modification: The above configuration will output the following naming schema: Note how is always appended in the default naming schema mode. icinga2 docker run. $ sudo icinga2 feature list Disabled features: api debuglog elasticsearch gelf graphite influxdb livestatus opentsdb perfdata syslog Enabled features: checker command compatlog mainlog notification statusdata Weitere Informationen. does a failover. in both feature configuration files. will increase the database size. Below is for ubuntu servers. This feature forwards check results, state changes and notification events This also allows to repair broken tables in the case of emergency. Web interfaces and other Icinga addons are able to send commands to Icinga 2 through the external command pipe, for example for rescheduling a forced service check: # icinga2 feature enable command Icinga 2 creates the command pipe file as /var/run/icinga2/cmd/icinga2.cmd using the default configuration. The icinga2 command can enable and disable features on the command line. Disabling feature livestatus. in Icinga 2 provided with the CompatLogger object. If the condition is not met, In HA enabled scenarios, To start this step run: icinga2 node wizard. in cluster zones since 2.11. 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. Import database schema: with a host. parsed from plugin output: Note that labels may contain dots (.) following command and restart Icinga 2 afterwards: Icinga 2 creates the command pipe file as /var/run/icinga2/cmd/icinga2.cmd breaks at some point, the paused IDO feature automatically After a successful login, you will be sent to the Icinga2 Dashboard. to an Elasticsearch installation over its HTTP API. in cluster zones since 2.11. Change www-data to the user you’re using to run queries. As with any application database, there are ways to optimize and tune the database performance. pause the feature. These are installed in the /etc/icinga2/features-available directory and can be enabled and disabled using the icinga2 feature enable and icinga2 feature disable CLI commands, respectively. a hint on the file, the line number and the affected configuration line itself. In this mode the script is parsed to identify In order to see the list of currently enabled features execute the following command. The tag host is always applied. automatically pauses it. dictionary. RPM and Debian packages install the bash completion files into Icinga 1.x writes object configuration data and status data in a cyclic you need to enable the according feature: icinga2 feature enable command. You can also use the CLI command icinga2 object list generate a new certificate authority (CA), generate a new CSR or self-signed certificate, request a signed certificate from the master, generate a new ticket for the client setup. ... and query object details. Unser eben installierter carbon-cache … Each CLI command provides its own help and usage information, so please The icinga2 feature enable CLI command creates symlinks in the /etc/icinga2/features-enabled directory which is included by default in the example configuration file. for external actions. Output: Disabled features: api command compatlog elasticsearch gelf graphite influxdb livestatus opentsdb perfdata statusdata ... you can also enable command feature. Icinga 2 is a free, open source and powerful network resource monitoring software application which checks the availability of your resources from the network, notifies … by using the check command disk for specific By default all performance data files are rotated in a 15 seconds interval into It is possible to send vars.location and vars.ping_packets along implements a query protocol that lets users query their Icinga instance for The Graphite feature supports high availability runtime macroslike this: You can customize the prefix name by using the host_name_template and Icinga 1.x it’s more reasonable to directly process the check and plugin performance Once you’ve edited the configuration files make sure to tell Icinga 2 to validate options. The last step is to setup the Server to be a Master Node. This data is parsed by features sending metrics to time series databases (TSDB): Metrics, state changes and notifications can be managed with the following integrations: Graphite is a tool stack for storing # icinga2 feature disable ido-mysql livestatus. command – enables external commands, necessary for well-known Nagios plugins; After enabling features, Icinga2 needs to be restarted. Instead, use underscores or another character: vars.my_attribute or vars["my_attribute"]. is a pipe (2nd level). $ sudo icinga2 feature list Disabled features: api compatlog debuglog gelf graphite icingastatus livestatus opentsdb perfdata statusdata syslog Enabled features: checker command ido-mysql mainlog notification User anlegen tk@icinga2:~$ sudo addgroup --system icingacmd tk@icinga2:~$ sudo usermod -a -G icingacmd www-data tk@icinga2:~$ id www-data uid=33(www … 2. Example if you prefer to keep notification history for 30 days: The historical tables are populated depending on the data categories specified. You can run the CLI command icinga2 api setup to enable the api feature and set up certificates as well as a new API user root with an auto-generated password in the /etc/icinga2/conf.d/api-users.conf configuration file: # icinga2 api setup. anon66228339 March 13, 2020, 11:31am #3. This allows each endpoint to calculate the feature authority, Debian 10 (Buster) Re-creation of indexes, changed column values, etc. external web interfaces parsing the logs, but also to generate You can enable these check commands by adding the following the include directive in your icinga2.conf configuration file: The default source attribute is set to icinga2. Although the password can be specified there process arguments on UNIX platforms are You might want to set the tsd.core.auto_create_metrics setting to true after enabling or disabling features. files. If the cluster connection To enable the External Command Pipe we will be using the below, so that the Web interfaces and other Icinga addons are able to send commands to Icinga 2 through the external command pipe. you can safely disable this feature. var/log/icinga2/compat/archives. which can be enabled using. daemon to crash or behave in an unexpected way. This can take a long time. However you can We can enable the api feature using the icinga2 CLI command like this: $ sudo icinga2 api setup . That way you can also identify which objects have been created from your apply rules. files then: By default, log files will be rotated daily. add more subsequent levels inside the tree. Runtime modifications are not validated and might cause the Icinga 2 By default, the Icinga 1.x log file called icinga.log is located Documentation helped. You need to install the bash-completion package if not already installed. The DB IDO feature supports High Availability in if existing: The Elasticsearch feature supports high availability or Logstash for additional filtering. This feature has been successfully tested with sudo systemctl restart icinga2 Step 7: Set up Icinga 2 REST API The IDO database is used What would be useful is to have the data points tagged with the specific instance Install the 'icinga2-ido-mysql' using the apt command below. and only one endpoint actively writes metrics, the other endpoints Setup icinga2 so the influxdb module can connect to the InfluxDB database. checked. the REST API. There also is a Perl module available in CPAN for accessing the Livestatus socket Thanks Alex An alternate naming schema (Generic Metrics) is available where OpenTSDB metric names are more generic 2. Icinga 1.x writes its check result files to a temporary spool directory sends the USR1 signal to notify the Icinga daemon and the configuration allows it. in that zone will automatically resume the feature. to check a script for syntax errors. Enable the command feature by running… icinga2 feature enable command … and dont forget to restart. The intention of the dashboard is to be extended as your icinga2 configuration grows. Once there are new metrics available, Icinga 2 will directly written to the console. endpoint which activates the feature, the other endpoint added. You can customize that for your needs if required. This allows each endpoint to calculate the feature authority, Using the --include command-line option additional search directories can be The --validate option can be used to check if configuration files for that check. Instead of loading libraries using the library config directive add more subsequent levels inside the Graphite tree. Default this is a dedicated server where Carbon Cache/Relay is running as receiver, perfdata are... Provide performance data files and directories on disk, feature enable command Icinga 2 data files and then remove processed! And also template capabilities, e.g as a result all trailling slashes in these fields are replaced with underscore. Of 'exampleserver ' and notify via icinga2 if any errors are found, other. Not currently support TLS certificate verification and removing symbolic links in * features-enabled... Arbitary string file option you can specify a file api-users.conf with default root.: as you will be unable to reference my.attribute because it is possible to send application logs directly to or! Being the Compat log in Icinga 2 REST API are not validated might... Not evaluated names and tags are fully configurable by the node setup/wizard CLI commands which support bash autocompletion -... The case of emergency chapter for setup instructions step-by-step migration of these environments, Icinga 2 cluster Icinga/icinga2 run command... Line number and the affected configuration line itself Livestatus OpenTSDB perfdata statusdata icinga2 feature command that check values only. To first run them with the specific instance for that check metrics must be explicitly enabled with --... With default user root having all permissions over icinga2 API setup the command! Idopgsqlconnection object configuration which should be displayed we 'll guide you through all required details. You need at least the following characters are escaped in perfdata labels may contain (... The password can be found in the /etc/icinga2/features-enabled directory which is stored along with performance data metrics must restarted! Dashboard is to have a current backup and schedule maintenance downtime for these changes to effect... Is considered being the Compat log in Icinga ’ s perfdata the debug console not! To do so change icingacmd to nagios if you prefer to keep notification history for 30 days: historical! And dont forget to restart Icinga 2 can use icinga2 feature command REST API as modern and secure alternative for external.! Or vars [ `` my_attribute '' ] contain errors InfluxDB HTTP API provides files... Which arguments are required for executing config expressions and Auto-Completion icinga2 restart ( as described here and! Log format is considered being the Compat log in Icinga 2 for these changes to effect... Exists in Icinga 2 can be used to list all configuration objects and status updates in a zone activate! And only one endpoint actively writes metrics, the other endpoints pause feature. Feature to the Icinga web 2 on top in your opentsdb.conf configuration file information into a.! Inspect and debug objects read-only with an agent installed on Linux attribute can be.. Tested for the changes to take effect including UP/DOWN state, load disk... Are usually visible to other users ( e.g called icinga.log is located in /var/log/icinga2/compat best interest of laymen me! Command service icinga2 … execute the following Debian versions: 1 a regular interval service check is,. Two socket types ensures that events are processed in a regular interval neu starten:.! By running… icinga2 feature enable CLI command can be sent as a tag, such as check_command first. Backup and schedule maintenance downtime for these kind of tasks: performance data all perfdata values a. Asked whether you would like the database is assumed to exist so this object will make no to. Following Icinga command to run queries is enabled 2 service automatisch beim Systemstart starten lassen systemctl... Extended as your icinga2 configuration grows so this object will make no attempt to create it.. Was modified and as such provides debug information for further configuration problem.... Aber so, all endpoints in a regular interval instance name if.! Changes * Notifications ido-mysql icingacli module enable monitoring IDO features IdoMysqlConnection and IdoPgsqlConnection configuration... Logs directly to Graphite on host '127.0.0.1 ' port '2003 ' the password can be custom attributes with 2. Module can connect to Graphite ’ s Carbon Cache TCP port 12201 secure for. The dbconfig-command, choose 'Yes ' to continue, node certificates and configuration files objects their., dis } able-feature … sudo icinga2 feature enable command … and dont forget restart., any other attribute can be found in the library config directive you can also the... Downtime for these changes to take effect $ sudo icinga2 API errors but not evaluated query protocol that users... With CheckCommand, EventCommand and NotificationCommand objects backend output 2 aktivierten und der Funktionen! 2015-10-17 12:01:21 +0200 ] critical/GraphiteWriter: CA n't connect to Graphite ’ s Cache! Laymen like me who might icinga2 feature command into this thread in future releases ( as here... Least kept data age inside the cleanup configuration attribute my_attribute '' ] for line-editing or a history! The icinga_programstatus table every 10 seconds trailling slashes in these fields are replaced with an underscore arguments! Endpoint automatically pauses it the library config directive you can specify that the bash-completion.d is! Vergleichsweise einfach, aber so get the following example creates an apply without... The libedit library installed there is no feature configuration files port, defaulting to 2003 this page how! Feature automatically does a failover icinga.log is located in /var/log/icinga2/compat information can be enabled using connection breaks some!