Questions tagged [icinga]
Icinga is an open-source network and computer system monitoring application. It's a fork of Nagios. It is recommended to use the `icinga` tag together with the version specific tag, f.e. `icinga-2.0`.
112
questions
0
votes
0
answers
9
views
Icinga2: API-filter for specific service
I try to get every services that are assigned to a specific host.
Here is what I have.
CMD
curl -k -s -u api:api 'https://localhost:5665/v1/objects/services?attrs=host_name&attrs=state'
OUTPUT
{
...
-1
votes
1
answer
112
views
Query to select max value
I would like to extract some data from the icinga monitoring tool DB.
the tables:
icinga_objects
+---------------+---------------------+------+-----+---------+----------------+
| Field | Type ...
0
votes
2
answers
151
views
How to Instrumenting application for prometheus monitoring in large codebase as a devops engineer
what I've found in the internet regarding instrumenting application for prometheus monitoring is, people are instrumenting their app (python, go) by hard coding the application. So, they are all ...
-1
votes
1
answer
45
views
prevent application from generate self-signed certificate on startup
Dears,
I have applications that run in a docker which are from https://github.com/REANNZ/etcbd-public.
the certificate of Icinga tool has expired and when I tried to install a new SSL from a ...
1
vote
0
answers
56
views
How to measure page rendering speed continously
How to measure page rendering speed continuously
Hi all
I would like to measure the page rendering speed for a given page.
This should include JavaScript and Ajax Requests. The measuring should be ...
0
votes
1
answer
519
views
How to decide warning and critical levels in nagios?
Can someone please tell on what basis should I decide warning and critical level for a check in nagios . I want to have notification for warning state before the check sends out critical . The check ...
0
votes
1
answer
145
views
Icinga Mysql migration error Table doesn't exist in engine
I have tried to perform update for icinga into 2.9.1 and to do this I need to apply migration on a sql database.
The migration uses the following sql query:
2.9.0 migration
CREATE TABLE `...
0
votes
1
answer
248
views
Nagios/Icinga - find host by custom variable with cmd/status.cgi
I'm looking for solution how to get a hostname from Nagios/Icinga by searching it by custom variable with cmd/status.cgi.
I have a custom variable with unique specific IDs on every host. I have to get ...
0
votes
1
answer
431
views
Check interval in icinga2?
I am trying to change the check_interval time for a single domain to 5 minutes but icinga2 doesn't override it. The checks are done every 1 minute. Here is my conf.
The main domain examplemanager.com ...
0
votes
1
answer
695
views
Icinga2 event plugin command starting a rundeck job via api
i made myself a test environment in icinga2 with a tomcat server. I would like to combine the two softwares rundeck and icinga. My idea is to start a rundeck job, when icinga detects a problem. In my ...
1
vote
1
answer
1k
views
How to fix rendering SLS failed: Jinja syntax error: expected token ',', got ':'?
I have a particular error on this line:
{% set icinga_ticket = salt['http.query'](https://ticket-generator.az.dev.com method=POST header_dict='{"Content-Type":"application/json"}' ...
0
votes
1
answer
181
views
Is there a way in Thruk to extract the 'Expanded command' somewhere, via JSON, REST, or curl?
It shows up on the page, and I can see it in view source on chrome, but I do not appear to be able to get this info via curl, as the page stops loading - probably due to the JSON/js involved in ...
1
vote
1
answer
209
views
How to turn off ssl certificate validation in jmx4perl
I would like to setup monitoring of our Springboot application. We already have jolokia included in.
I'm not able to connect to jolokia endpoint though due to ssl certificate validation failure.
GET ...
0
votes
2
answers
559
views
Is there a way to add multiple values for label in nagios/icinga performance data
Looks like this is the format for performance data in nagios/icinga
'label'=value[UOM];[warn];[crit];[min];[max]
Is it possible to add more than one value for single label as shown below?
eg:
'label'=...
0
votes
1
answer
176
views
How to Integration of nagios/icinga and github tickets and their content into zendesk and sync open/closed status?
Before zendesk, ive used zammad, which has a nice integration of gihub / nagios / icinga tickets etc. and f.e. closes them if services are back online.
Is it possible to get the same functionality in ...
1
vote
0
answers
981
views
NSCP++ check_drivesize core Uknown command
I try to run check_drivesize on a windows server with nscp++.
I already setup check for RAM, CPU and Uptime all is working fine.
When i try to setup the check_drivesize i get back:
core Unknown ...
0
votes
1
answer
236
views
Bash Shell script to check how many processess are running and issue warning if exceeds 20?
I want to check the number of processess running and if this number of process is between 0-20 then print the number of process, if between 20-40 issue a warning and if between 40-70 issue a critical ...
-1
votes
3
answers
1k
views
How to match string and print lines within curly braces { } from config file
I want to print the lines within { and } with assign where "mango" in Hostgroups
object Host "os.google.com" {
import "windows"
address = "linux.google.com"
groups = ["linux"]
}
...
0
votes
1
answer
1k
views
Icinga check_http via Proxy Server
I can't figure out how to use the check_http module of Icinga to use a http proxy.
I tried to achieve this using the following entry in hosts.conf.
object Host "host.local.ch" {
import "generic-...
0
votes
1
answer
227
views
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 ...
0
votes
2
answers
277
views
Icinga Notification in Slack Containing URL
I have integrated Slack with our Icinga (Nagios based) monitoring and we are sending notifications from icinga to slack channels
In icinga notification's service description field we are including a ...
-2
votes
1
answer
347
views
How is memory used value derived in check_snmp_mem.pl?
I was configuring icinga2 to get memory used information from one linux client using script at check_snmp_mem.pl . Any idea how the memory used is derived in this script ?
Here is free command output
...
0
votes
2
answers
2k
views
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 ...
0
votes
1
answer
201
views
Automate feeding the output of a command to a prompt
I have a script that reads a text file that has all the nodes listed in there:
node1
node2
node3
.
.
.
This is my script:
#!/bin/bash
while read f; do
ssh-copy-id myusername@"$f"
ssh ...
0
votes
0
answers
525
views
Icinga2 client Host culster-zone check command not going down (RED) when lost connection
I have setup a single master with 2 client endpoints in my icintga2 monitoring system using director with Top-Down mode.
I have also setup 2 client nodes with both accept configs and accept commands.
...
0
votes
0
answers
1k
views
Icinga: How to enable maintenance mode through remote api or tool?
I am using Icinga Version 2.4.2 to monitor services on several hosts. I would like to be able to place certain hosts in maintenance mode for a set amount of time using a cli tool or rest API instead ...
0
votes
1
answer
721
views
How to escape commas in Icinga array argument
I have a Python script that takes a variable amount of integers and does some work with them. The values are passed to the script with the command-line argument -s. When I run the script locally, it ...
0
votes
1
answer
301
views
creating multiple files from template and replace content on-the-fly
As stated in the title i'd like to create multiple files from a template and replace a fixed keyword on-the-fly
if i do
$ sed s/XX/{01..05}/g templates/pXX.conf
i get kinda close, since i get an ...
1
vote
1
answer
38
views
Use: argument in Icinga 1 service definitions
I see references to a argument use in Icinga 1 configuration files e.g. like so:
define service {
use check_mk_passive
host_name localhost
service_description General ...
0
votes
0
answers
88
views
Script/cron to automatically renew LetsEncrypt certificates and push to a repository
I'm looking to have script/cron to be able to renew LetsEncrypt certificates (using acme-tiny) for multiple domains, when an Icinga check says they are 15 days away from expiry.
Then those renewed ...
0
votes
1
answer
552
views
Python Module snmpSessionBaseClass: Where to download
I am trying to import the snmpSessionBaseClass python module in a script I am running, but I do not have the module installed and I can't seem to find where to download it. Does anyone know the pip or ...
0
votes
1
answer
257
views
MySQL function with variable parameter
I am creating a monitoring report with iReport from Jaspersoft and data from icinga.
In ireport I have to enter the query to get the data I need. Now, I want to get the name (of a monitored object) ...
0
votes
1
answer
437
views
Icinga output Plugin for Logstash causing OpenSSL::SSL::SSLError:certificate verify failed Issue
Hi I have installed logstash plugin for Icinga 2. I have setup the API by issuing icinga2 api setup and then restarted the Icinga 2 service.
I am using Icinga 2 API username and password available in ...
0
votes
2
answers
2k
views
convert python dictionary to string [closed]
I have a list of python dictionaries. How to convert python dictionary from
{'foo1':['bar1','bar2'] , 'foo2':['bar3']}
{'foo3':['bar4','bar5','bar6'] , 'foo4':['bar7','bar8','bar9']}
.
.
.
{'foo5':['...
7
votes
2
answers
539
views
Reading Graphite events from Icinga2
In our lab we are currently using two systems to remotely monitor sensitive quantities etc. :
Icinga2, as a monitoring system that reads data from a logging DAQ called Watchdog and creates alarms ...
0
votes
0
answers
53
views
Why i dont get an answer from my Host in Icinga?
(Bild)No Answer from Zone
(Bild)All other Services i can check
apply Service "load" {
import "generic-service"
check_command = "load"
if (host.name != NodeName){
command_endpoint = ...
0
votes
1
answer
2k
views
CURL API to pass parameters in Bash script
Curl command to pass arguments in the ICINGA API:
I have a curl command and passing it on a Bash script, I need to have two variables in the POST method for this URL, How do i pass the parameter to ...
0
votes
1
answer
458
views
Nagios JMX Plugin check_jmx command not found
I am setting up the monitoring Kafka with Icinga2 as specified here. I am using Centos7 and following the steps mentioned below
Step 1: Downloaded Check_JMX plugin by issuing the command
wget -c ...
0
votes
1
answer
858
views
Monitor managed MySQL Server from Icinga
I am using an Azure managed MySQL server to host my DBs.
I want to monitor using a test connection to one of the DB whether server is up or not. How can I add this check to my Icinga2 service?
PS - ...
1
vote
1
answer
508
views
Execute script on Master node when a client host goes down
I know by default the "Event Command" is executed on the "Command endpoint" doing the check for a device. Is there a way to change this or define which endpoint the event command is executed on? I ...
0
votes
1
answer
561
views
Parse Nagios / Icinga Config with Python Regex
I'm trying to parse a Nagios / Icinga config so I can do further processing on it with Python. Since I could not find a working library to do that (pynag does not seem to work at all), I'm trying to ...
0
votes
0
answers
48
views
icinga alerts identification
Is there any way to set identification numbers for each alerts generating the icinga log?
The issue I am facing is, I have different network links configured on icinga. If any fluctuation happened, ...
0
votes
2
answers
2k
views
psql: FATAL: password authentication failed for user "icinga"
I am trying to setup Icinga 2 on CentOS7 and followed instructions as mentioned in the official document. [https://docs.icinga.com/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/...
0
votes
2
answers
3k
views
PDO Connection Error: SQLSTATE[HY000] [1045] Access denied for user 'icinga'@'localhost' (using password: YES)
I installed icinga-web on amazon aws instance and when I open icinga-web in my browser, I see messages in yellow boxes that "Request failed" and when I go to console and click on that error I got ...
0
votes
1
answer
53
views
Include_recursive does not accept the absolute path
Include_recursive in windows is not accepting absolute path when i use drive name in it. For example, include_recursive “C:/ProgramData/icinga2/opt/icinga2/config” is not working but include_recursive ...
0
votes
2
answers
1k
views
Remove default http service check
How can I remove the default http service check for agent-based servers? I already removed it on agentless but can't do the same for agent-based. Not all enrolled servers are webservers so an http ...
-1
votes
1
answer
117
views
Icinga2 repository key id
This is node.yaml file where i should state that i want to use Icinga2 repository. I have a problem with matching keys, i can't get through because i don't know how to get the right key id. And that ...
1
vote
1
answer
2k
views
Icinga 2: variable in display_name?
Is it possible to pass a variable to display_name in Icinga2 configuration, e.g. for a service:
apply Service for (disk_name => config in host.vars.disks) to Host {
import "generic-service"
...
0
votes
1
answer
309
views
Bypass install configuration in dockerfile
I am trying to install icinga2-ido-pgsql on an Ubuntu Docker container.
My database is in a separate container.
To install it I run
RUN apt-get install -q -y icinga2 icinga2-ido-pgsql
When ...
0
votes
1
answer
6k
views
How to reset a user password for Icinga-web version 1.8.4
I am running Icinga with Classic UI, but an year ago I added the Icinga-web as well.
I have tested a couple of things with it and left it behind.
Now I want to access it, but I don`t remember what ...