Questions tagged [icinga]
Icinga is an open source network and computer system monitoring application. It was originally created as a fork of the Nagios system monitoring application in 2009 http://en.wikipedia.org/wiki/Icinga
0
votes
1answer
16 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
1answer
20 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
2answers
25 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
1answer
34 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
2answers
56 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
1answer
54 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
0answers
93 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
0answers
14 views
Failed to execute icingaweb2 on Windows using Visual Studio Code
i am trying to run icingaweb2 on window..
Can someone help me on this?
Error Screenshot
0
votes
0answers
35 views
How to Install and deploy Icinga Web 2 on windows
how can i run my icingaweb2 github code in Visual studio / visual studio code?
Failed to execute icingaweb2..Can someone help me on this?
Github code : https://github.com/Icinga/icingaweb2
For ...
0
votes
0answers
216 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
1answer
149 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
1answer
21 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 ...
0
votes
0answers
39 views
Failed to install Icinga Web 2
I have a little problem regarding the Icinga Web 2 installation.
Before I get into it I need to say that I followed the documentation about the installation and installed the necessary services like ...
1
vote
1answer
16 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
0answers
51 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
1answer
222 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
1answer
45 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
1answer
164 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
2answers
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
2answers
307 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
0answers
28 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
1answer
430 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
1answer
152 views
Nagios JMX Plugin check_jmx command not found
I am setting up the monitoring Kafka with Icinga2 as specified in http://neeleshgurjar.co.in/techidnyan/monitoring-kafka-storm-zookeeper-with-icinga2-2/. I am using Centos7 and following the steps ...
0
votes
1answer
370 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
1answer
305 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
1answer
111 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
0answers
23 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
1answer
1k 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
1answer
584 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
1answer
28 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
2answers
590 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
1answer
63 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
1answer
710 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
1answer
76 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
1answer
2k 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 ...
0
votes
1answer
111 views
New Nagios BASH plugin output error: “Such Instance currently exists at this OID: integer expression expected”
I'm trying to write my first Nagios plugin to check the statuses on WLAN Controllers APs. The goal was to make a kind of "universal" plugin but I'm getting an error:
.1.3.6.1.4.1.14179.2.2.1.1.3.0.: ...
2
votes
1answer
475 views
Why Icinga2 telegram notification fails in specific services?
I have created custom telegram notification very similar to email notifications. The problem is that it works for hosts and most of the services but not for all of them.
I do not post the *.sh files ...
0
votes
1answer
601 views
Error using NRPE with ICINGA 2 - Unknown argument: -c
In order to migrate from icinga1 to icinga2, I'm basically concerned about the NRPE custom checks, till the time i tried to add just the basic memory check using NRPE.
With command line everything ...
0
votes
2answers
633 views
ICINGA - passive checks
I have been using Icinga for our infrastructure monitoring. I am using active checks for about 300 services and I am interested in setting up passive checks now as I would like to get all the critical ...
0
votes
1answer
1k views
icinga2 - where to change client monitoring commands?
system ubuntu 16.04
On master node where icinga2 is installed
#ls /etc/icinga2/repository.d/hosts/WIN-U52321E0BAK/
disk C%3A.conf disk.conf icinga.conf load.conf ping4.conf
ping6.conf procs....
0
votes
0answers
46 views
How much bandwidth does Icinga (Nagios) consume?
I have a limited bandwidth and i use Icinga to monitoring 50 IPs adress , so my question is "easy", how much bandwidth consume ?
i know is only some ping commands and stuff , but if i do it every ...
1
vote
1answer
169 views
Icinga2 — host's display_name is ignored by icingaweb2
I setup an icinga2 installation to monitor a set of servers. On the client node(ubuntu 16.04, icinga2 installed via apt from the Ubuntu repository) I set in hosts.conf:
object Host NodeName {
/* ...
2
votes
1answer
432 views
Icinga database cleanup
I am working in Icinga for performance data collection,
I have to clear all plugin data more than 30 days, how can I do this. I had some google searches does not help.
some references:
External ...
0
votes
0answers
33 views
Apache2 returns result type html for png
I try to install icinga2 and icingaweb2 on a Ubuntu 16.04 with Apache 2.4.18
With icinga2 everything works fine.
For icingaweb2 I used the official way with package repositories (02-Installation.md),...
0
votes
1answer
315 views
Icinga2 is monitoring the same host
I'm experiencing a problem where Icinga2 is monitoring the lochalhost for example diskusage even though I set the IP to a different server. What do I do wrong?
Heres my config for one of the hosts:
...
1
vote
2answers
6k views
How to add hosts to Icinga2?
I'm having problem adding a host to Icinga2. I know that it is possible to add it via the following command:
icinga2 node wizard
But I have a feeling that you could add the hosts yourself, choosing ...
0
votes
1answer
204 views
check_mysql_health - how to check non numeric output
I'm trying to check mysql queries output and compare the result with some values for my Nagios services checks.
It can be that there is a better way to resolve this (and if so - please share :))...
...
0
votes
1answer
2k views
How can I add more Icingaweb2 user?
I am using Icinga2.
[Administrators]
users = "admin"
permissions = "*"
groups = "Administrators"
This one is configuration for IcingaWeb2 admin user Authorization.
I can login in using admin user. ...
0
votes
2answers
86 views
QNetworkAccesssManager icinga / nagios acknowledge
I have a function who sending ack into the icinga / nagios server.
Function - sendAcknowledge
void MNetworkConnector::sendAcknowledge(QString service, QString host)
{
QNetworkAccessManager *...
0
votes
1answer
427 views
Icinga2: how to define a CheckCommand the requires one of many possible parameters?
I have a CheckCommand defined in Icinga2 that looks like this:
object CheckCommand "foo" {
import "plugin-check-command"
command = [ "/opt/my_plugins/check_foo" ]
arguments = {
"-...