Questions tagged [icinga2]

Icinga 2 is an open-source network and computer system monitoring application. Use this tag for questions relating to version two of the application.

Icinga 2 is version two of an open-source network and computer system monitoring application. Further information can be obtained from the following resources:-

There is a more general icinga tag, but it is recommended to use this tag for version two of the application.

112 questions
0
votes
2 answers

Permission error while trying to add a content to a remote host's file

I have a script that should create a file and add content to a file on the hosts listed in a file: #!/bin/bash while read f; do sshpass -p "mypassword" ssh-copy-id myusername@"$f" ssh -ntt myusername@"$f" ' echo mypassword | sudo -S…
Irina I
  • 31
  • 1
  • 5
0
votes
1 answer

sudo: a password is required

I am trying to copy my ssh keys to all the hosts which my script reads from a list, ssh to them and run some yum install commands: while read f; do ssh-copy-id -f myusername@"$f" ssh myusername@"$f" ' yum install -y epel-release …
Irina I
  • 31
  • 1
  • 5
0
votes
1 answer

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 username@master.icinga.test.com icinga2 pki ticket --cn…
Irina I
  • 31
  • 1
  • 5
0
votes
0 answers

How to feed the output of a command to the prompt?

I have a script that reads a text file that has all the nodes listed in there: node1 node2 node3 . . . This is part my script: #!/bin/bash ssh-copy-id myusername@icingamaster while read f; do ssh-copy-id myusername@"$f" ssh -o…
Irina I
  • 31
  • 1
  • 5
0
votes
1 answer

Icinga2 icingaWeb2 : Can not enrol window host to Centos master but no issue on other Centos server

I had Icinga2 and icingaweb2 (with director) are all set up perfectly fine on Centos,,, I could write a bash script to auto enrol other hosts (centos and Linux) to be monitored by this IcingaWeb... But now i would like to have Windows client to be…
swongr18
  • 33
  • 6
0
votes
0 answers

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. (hopefully this means I'm running Top Down…
0
votes
1 answer

Assign notifications to different users/groups

I am new to icinga. I would like to divide my hosts into groups let say host_group_1 and host_group_2. Then I want to send notifications to different users_group, let say users_group_1, and users_group_2. So all the notifications from host_group_1…
0
votes
0 answers

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 of the Web UI. Is this possible and if so what…
Alex Cohen
  • 5,596
  • 16
  • 54
  • 104
0
votes
1 answer

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 works fine: python check_myScript.py -s 1 2 3…
Taylor Liss
  • 593
  • 4
  • 27
0
votes
1 answer

mysql calculation of previous row timestamp difference and group by multiple objects

I'm trying to generate a report for the Icinga2 Database. I want to see the state times per day per host per service. I have the following data structure: Columns: State_Time > The time where the state of an monitoring object changed from A to…
Duffkess
  • 38
  • 6
0
votes
1 answer

spring-boot actuator response code changed from 200 OK to 200 causing alarm in icinga

boot technology. In production environment We are having kubernetes cluster. we are monitoring all the services using actuator/info endpoint. Somehow after last deployment actuator/info endpoints response code which was set to 200 OK in expected…
0
votes
1 answer

can i use getRequest() in clicommands of zend framework

I'm using zendframework. Here i used getRequest() method outside the controller, inside the CliCommands class.But it through an error. PHP Fatal error: Uncaught Error: Call to undefined method V1Command::getRequest(). Is there any way to use the…
Anitha s
  • 43
  • 1
  • 9
0
votes
2 answers

SQL select to print all host names in Icinga2 hostgroup

select alias from icinga_hosts; prints all the host names in every hostgroup. select alias from icinga_hostgroups; prints all the hostgroups. I can't see how to "select select alias from icinga_hosts where icinga_hostgroups is "customer0"; In other…
mr.zog
  • 533
  • 1
  • 7
  • 26
0
votes
1 answer

Icinga2 distributed monitoring - Endpoint running all the services in it's zone

I'm trying to setup a distributed icinga monitoring of multuple clients. I have set up the zones as needed i.e: 1) On the master node it looks like this object Zone "edge-dev" { parent="master" endpoints=[ "edge-dev-docker", …
0
votes
1 answer

How to specify the Mailbin that the icinga2 uses when invoking the mail command

I have icinga2 set up on a Ubuntu xenial machine. I'm using postfix to send emails, which is working properly, i.e. echo "hello world" | mail -s "test subject" sammy@example.com sends an email as expected. However, when an icinga sends an…
user2079438
  • 51
  • 2
  • 9