Giter Site home page Giter Site logo

icinga2's People

Contributors

aleliga avatar alvarobrey avatar bajceta avatar bebehei avatar build-failure avatar christianuhlmann avatar dzordzu avatar edjojob avatar gibby avatar jjethwa avatar jkrauska avatar k-ekley avatar lazzurs avatar lkm avatar lukask13 avatar mabe443 avatar magnusbaeck avatar markverg avatar mdevey avatar quentinvarquet avatar satreix avatar schurzi avatar silverwind avatar skupjoe avatar svenakela avatar targos avatar toutzn avatar trickert76 avatar widhalmt avatar wingslikeeagles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

icinga2's Issues

Access to /usr/lib/nagios/plugins

Hi,
If i want to make an plugin can i get access to the /usr/lib/nagios/plugins folder somehow ? It's not in the path list that you have. Do i really have to fork and then add it as a volume or can you add it ?

donnib

Mail notification

Hello,

Nice work ! ๐Ÿ‘

I just wanted to know, do you know how to make the mail notifications works ?

Thank you !

postifix & Slack

@jjethwa Have you tried installing postfix?

My postfix is failing repeadetly

[program:postfix]
command=/usr/sbin/postfix -c /etc/postfix start
redirect_stderr=true

2016-04-14 20:41:20,739 INFO success: postfix entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2016-04-14 20:41:22,165 DEBG fd 14 closed, stopped monitoring <POutputDispatcher at 29400672 for <Subprocess at 28843544 with name postfix in state RUNNING> (stdout)>
2016-04-14 20:41:22,165 INFO exited: postfix (exit status 1; not expected)
2016-04-14 20:41:22,165 DEBG received SIGCLD indicating a child quit
2016-04-14 20:41:23,171 INFO spawned: 'postfix' with pid 9821

Build

INFO[0006] The command [/bin/sh -c mv /tmp/master/icingaweb2-master/modules/monitoring/* /etc/icingaweb2/modules/monitoring/] returned a non-zero code: 1

NodeName Generation

I'm attempting to setup Icinga2 clients on my network. The clients have defined communication to the master which has a set NodeName and TicketSalt. If this changes do all of the clients of that master have to be reconfigured for the new master hostname?

Protecting web access with password

To me the documentation is a bit confusing, why I can set a web password and then still the default "password" is used?

Start a new container and supply the icinga and icinga_web password

sudo docker run -e ICINGA_PASSWORD="icinga" -e ICINGA_WEB_PASSWORD="icinga_web" -t jordan/icinga2:latest

The Icinga Web interface is accessible at http://localhost/icinga-web with the credentials root:password

In my opinion using default passwords on services that can be externally exposed is dangerous.

It would be great to be able to set username and password via environment variable for

Something along the line of

sudo docker run -d --name icinga2 -p 3080:80 -e web-user=user1 -e web-pass=pass1 -e web2-user=user2 -e web2-pass=pass2 jordan/icinga2:latest

Maybe stay with the standard user, but still enable to change the default passwords.

Volumes file system

mkdir -p /tmp/icinga
docker run --link graphite:graphite -v /tmp/icinga:/etc/icinga2 -e ICINGA2_FEATURE_GRAPHITE=true -e ICINGA2_FEATURE_GRAPHITE_HOST=graphite -e ICINGA2_FEATURE_GRAPHITE_PORT=2003 -e ICINGA_PASSWORD="icinga" -e ICINGA_WEB_PASSWORD="icinga_web" -p 5665:5665 --name icinga3 -t jordan/icinga2:latest
chown: cannot access '/etc/icinga2/features-available/ido-mysql.conf': No such file or directory

I did the same test with another images (mysql, graphite, ...) and everything work fine.

Icinga Web cannot connect to database with auto-generated password

If I start your image without specifying passwords, they're generated for me ("If passwords are not supplied, they will be randomly generated and shown via stdout").

$ docker run -p 8080:80 --name icinga2 -t jordan/icinga2:latest
...
===================================================================
MySQL user 'root' has no password but only allows local connections
MySQL user 'debian-sys-maint' password set to EFIgc7S3kHsvnKW
MySQL user 'icinga' password set to q53vbEupz2UX0bK

However then when I navigate to the web interface, I get:

PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user 'icinga_web'@'localhost' (using password: YES)

Unable to detect your deployment endpoint. I was looking for the first endpoint configured with an assigned API user in the "master" zone.

Testing the latest "latest" tag the icinga2 doesnt approve login:

    Error

Unable to detect your deployment endpoint. I was looking for the first endpoint configured with an assigned API user in the "master" zone.

#0 /etc/icingaweb2/modules/director/library/Director/Db.php(165): Icinga\Module\Director\Db->getDeploymentEndpointName()
#1 /etc/icingaweb2/modules/director/library/Director/Web/Controller/ActionController.php(363): Icinga\Module\Director\Db->getDeploymentEndpoint()
#2 /etc/icingaweb2/modules/director/application/controllers/ConfigController.php(110): Icinga\Module\Director\Web\Controller\ActionController->api()
#3 /usr/share/php/Zend/Controller/Action.php(516): Icinga\Module\Director\Controllers\ConfigController->activitiesAction()
#4 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('activitiesActio...')
#5 /usr/share/php/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#6 /usr/share/php/Icinga/Application/Web.php(384): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#7 /usr/share/php/Icinga/Application/webrouter.php(109): Icinga\Application\Web->dispatch()
#8 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#9 {main}

2.5.3 tag still works.

Question : Menu for user

Hello,

I finally have the last version of your container on my server ! :-)

I just have a question. The administrator is using the icingaadmin account and I created 4 more users (they are all in a UserGroups).

I want them to have the same view as the administration (same menu on the left) but without the "configuration" menu.

I want :

Dashboard
Problems
Overview
History
Reporting
Documentation

Do you know how to do this ? Because is the Role permission I only have choice with ;

  • Allow everythings (ok they see everything but I don't want the configuration parts)
  • Allow to share navigation items
  • Allow to adjust in the preference ...
  • Allow config access
  • Allow access to module setup
  • Allow access to module translation

Thank you !

PDF export does not work

I just had been curious, how a PDF-Page would look like. But there are some problems with dompdf:

But actually the package php-dompdf is installed.

Warning: Uncaught exception 'ErrorException' with message 'require_once(dompdf/autoload.inc.php): failed to open stream: No such file or directory' in /usr/share/php/Icinga/File/Pdf.php:12 Stack trace: #0 /usr/share/php/Icinga/File/Pdf.php(12): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'require_once(do...', '/usr/share/php/...', 12, Array) #1 /usr/share/php/Icinga/File/Pdf.php(12): require_once() #2 /usr/share/php/Icinga/Application/ClassLoader.php(306): require('/usr/share/php/...') #3 [internal function]: Icinga\Application\ClassLoader->loadClass('Icinga\\File\\Pdf') #4 /usr/share/php/Icinga/Web/Controller/ActionController.php(536): spl_autoload_call('Icinga\\File\\Pdf') #5 /usr/share/php/Icinga/Web/Controller/ActionController.php(481): Icinga\Web\Controller\ActionController->sendAsPdf() #6 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(512): Icinga\Web\Controller\ActionController->postDispatch() #7 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controll in /usr/share/php/Icinga/File/Pdf.php on line 12

Fatal error: main(): Failed opening required 'dompdf/autoload.inc.php' (include_path='/usr/share/icingaweb2/library/vendor:.:/usr/share/php:/usr/share/pear') in /usr/share/php/Icinga/File/Pdf.php on line 12

container still running if icinga2 fails.

To get #67 merged, I'll record all non-showstoppers by adding new issues.

If the startup of icinga2 fails (configuration fail/whatever), the container will still run, although icinga2 does not do anything. This is a full antipattern against docker's understanding of containers.

To instantly fix this, I would have to get better knowledge of supervisord.

Add pagerduty scripts/hooks

I'd like to add pagerduty scripts hooks to this lovely Docker image.

I've done most of it myself, but curious if you'd like to use it -- willing to add if there' support.

Instructions from pagerduty website:
https://www.pagerduty.com/docs/guides/icinga2-integration-guide/

Quick Steps:

Package add

apt-get install -y libwww-perl libcrypt-ssleay-perl libsys-syslog-perl

Get config drop-in

wget https://raw.githubusercontent.com/mdcollins05/PagerDuty-Icinga2/master/pagerduty-icinga2.conf

Apply your key

FIXME: Put key in environment variable

sed -i 's/SERVICE_API_KEY_HERE/BLAHBLAHBLAH/' pagerduty-icinga2.conf

Move in place

mv pagerduty-icinga2.conf /etc/icinga2/conf.d/

Get script and copy in place

wget https://raw.github.com/PagerDuty/pagerduty-icinga-pl/master/pagerduty_icinga.pl
mv pagerduty_icinga.pl /usr/local/bin
chmod 755 /usr/local/bin/pagerduty_icinga.pl

Also needed:

supervisor job that runs flush (no cron in docker)

Encoding in the last version of Icinga

Hello ! :-)

I updated all my icinga2 production container.

But do you know if someting changed with the encoding ? I have many problems because of this.

For example, my icinga container has some services and they check files.

For example my service will do "rm /data/dump/my-file.conf"

Icinga2 is telling me the file doesn't exist but I if I do the command by myself it works.

So I checked the command from Icinga. The command is exactly the same as I did manually.

manually : rm /data/dump/my-file.conf -> It work's
Icinga2 : rm /data/dump/my-file.conf -> my-file.conf No such file or directory

So I just did a echo my-file.conf | od -x -c and here is what I got.

For my manually command, the out put is :

echo my-file.conf | od -x -c
0000000    796d    662d    6c69    2e65    6f63    666e    000a
          m   y   -   f   i   l   e   .   c   o   n   f  \n
0000015

So it's fine.

From the Icinga2 command

echo my-file.conf | od -x -c
0000000    796d    e22d    8b80    6966    656c    e22e    8b80    6f63
          m   y   - 342 200 213   f   i   l   e   . 342 200 213   c   o
0000020    666e    000a
          n   f  \n
0000023

We can see I have a big problem with the command from Icinga, the encoding is not good at all.

Do you have any information about this ? Someting changed with the last version ?

Also, everything are working with the command " by_ssh ". And it look like the encoding problem is from this command...

Thank you !

Icinga2 External Script

Hello everyone. In Zabbix, i used external script resolve some personal requires. Are there any ways to use scripts in ICinga2?

Unable to upgrade form 2.5.3

Hi,
I've tried to upgrade form 2.5.3 to 2.6.2 or to latest containers, but the icingaweb2/resources.ini and icinga2/features-available/ido-mysql.conf are always overwrited, at every container restart
This make the startup fail
Seems to be that the container doesn't recognize the previous configuration

How To?

Hi Jordan,

I have installed the dockerized version of icinga2 using your repo. Can you give a simple example of adding one of remote host to the webUI and showing the alerts? I am basically looking for the config files that we need to add to have the alerts shown in UI.

Thanks,
Govind

shutdown-functions not used via docker stop

docker stop does not send signals to supervisor-processes correctly. The signals get lost somewhere on the way between docker -> /opt/run -> supervisord -> /opt/supervisor/*

At least:

  • There is no log-entry in the corresponding-log file which should indicate the intention to stop the service via init.d-script.
  • docker needs exactly 10s to stop the container all the time:
$> docker stop --help
[...]
   -t, --time int   Seconds to wait for stop before killing it (default 10)
$> time docker stop mon-dev
mon-dev
docker stop mon-dev  0.01s user 0.00s system 0% cpu 10.346 total
$>

Question : Rerey_interval unknown state

Hello,

I have a small question (I am still using an old version of your icinga container).

I configured a template like this :

template Service "my_service" {
    import "generic-service"
    check_interval = 5m
    retry_interval = 30s
}

The check_interval (5 minutes) is working.

When a host has a critical state, the next check (retry_interval) is working (30 seconds).

But my problem is if I have an unknown state(purple color), the next check is in 5 minutes and not 30 seconds.

Do you know why and how to fix it ?

Thank you

Default localhost ping check fails

The localhost ping check on the icinga host (part of the default configuration) fails:
/bin/ping -n -U -w 30 -c 5 127.โ€‹0.0.โ€‹1
Output: CRITICAL - Could not interpret output from ping command

The command runs fine if I call it from CLI. This seems to be similar to what user aod7br reported back at Docker Hub, although I cannot find any invisible characters in the configuration.

Icinga Logs to Stdout

I imported an existing configuration on top of this container via a volume. There were some missing dependencies that were causing icinga2 to crash. I had to quickly tail the log to get the info before the container crashed. It would be better if this log were piped to stdout so that the logs would be clearly accessible via docker logs.

Icingaweb2 : Permission denied on restart

Hello,

I just installed the last version of Icinga on a new server.

I have some volumes (for example ./icingaweb2:/etc/icingaweb2).

But I have a problem. Everytime I restart my Icinga container, I have this :

image

I need to connect in my container and fix the permissions by myself in the folder /etc/icingaweb2. I never had this problem before.

Do you know why ?

Extend Image: Add own Config + Enable LDAP Auth

Hey Jordan,
Hey Guys and Girls,

I love this image and would totally love to use this for a few of my projects. As I need some stuff on a regular base I am not able to manage a whole instance of icinga2 manually. I would love to have one folder where I am able to include or exclude additional stuff.

Sure, I am able to write a small script, extend this image, but I would love to create a pull request to make this available to everyone.

So, first question:

  • I would create one folder outside of /etc/icinga2 so I am able to mount it separatly and add include_recursive "${MyNewFolder}" to icinga2.conf.

Would that suite your approach, or is there a better solution for that? This way I would be able to have the application of icinga in a docker container and the configuration of all tests in an git repository ( for example ).

Additionally I need LDAP for all my instances so all of my co workers are able to just login and use this instance. Which seams to be no problem at all ( https://docs.icinga.com/icinga2/latest/doc/icingaweb/chapter/authentication#authentication-configuration-ldap-authentication ).

So second question:

  • I would love create one config file and mount this as volume to have the configuration available.

Would that fit you as well or do I need to think on another solution? Is there perhaps a better way?

Greetings from Germany,

Bastian

New in docker, i miss something

Hello,

I want to use your image, it's seem's perfect for me.

i run the following command :

docker run -h icinga -e IDO_PASSWORD="icinga" -v /opt/icinga/var_lib_mysql:/var/lib/mysql -p 5665:5665 -p 80:80 --name icinga -t jordan/icinga2:latest

=>Initializing databases and icinga2 configurations.
=>This may take a few minutes
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!

It's not possible to just mount my folder ?

MySQL server failed on starting using host volume

I have taken a backup of all the volume and located them on host machine, but when I try to start up a new instance with the backup data, the MySQL database won't startup.

 mini:~ siyalrach$ docker run -t -v /Users/siyalrach/Desktop/icinga/etc/icinga2:/etc/icinga2 -v /Users/siyalrach/Desktop/icinga/etc/icinga-web:/etc/icinga-web -v /Users/siyalrach/Desktop/icinga/var/lib/mysql:/var/lib/mysql -h jicinga.level8.com jordan/icinga2:latest
 Symlink for /etc/icinga2/features-enabled/ido-mysql.conf exists already...skipping>  Symlink for  /etc/icinga2/features-enabled/livestatus.conf exists already... skipping
  Symlink for /etc/icinga2/features-enabled/compatlog.conf exists already... skipping
  Symlink for /etc/icinga2/features-enabled/command.conf exists already...skipping
  =>Initializing databases and icinga2 configurations.
  =>This may take a few minutes
  [FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!

pull from github

@jjethwa Is there a way i can pull all my icinga monitor config files from github within docker using my NT account? Also one we pull the config files, is there a way we can do the below within docker? Also is there a way to push the config file changes using Ansible playbook?

#service icinga2 reload
#service nrpe reload

Thoughts? Thanks.

Thanks,
Govind

[Question] Backup Acknowledged hosts/services

Hello ! :-)

I will have to delete my icinga container. But every time I do it I always loose every Acknowledged hosts/services with their comments.

Do you have an easy way to "save" and restore them (file ? DB ?) when I will create my icinga container again ?

Thank you

TimePeriode not working ?

Hello,

I wanted to create a custom time period.

Here is my timeperiod.conf file :

object TimePeriod "custom-period" {
  import "legacy-timeperiod"

  display_name = "Custom Period - 6 am to 8 pm"
  ranges = {
    "monday"    = "06:00-20:00"
    "tuesday"   = "06:00-20:00"
    "wednesday" = "06:00-20:00"
    "thursday"  = "06:00-20:00"
    "friday"    = "06:00-20:00"
  }
}

Now, my notification.conf

apply Notification "mail-icingaadmin" to Host {
  import "mail-host-notification"

  interval = 0
  user_groups = [ "icingaadmins" ]
  states = [ Up, Down ]
  times.begin = 20m # Send an email after 20 minutes
  types = [ Problem, Recovery, Custom,
            FlappingStart, FlappingEnd,
            DowntimeStart, DowntimeEnd, DowntimeRemoved ]

  period = "custom-period"
  assign where host.vars.criticity == "No" # only for low criticity hosts

}

The problem is, I still have many emails during the night after 8pm and I really don't understand why... Do you have an idea ?

Edit : I am using icinga v2.3.0-193-g3eb55ad (june 2015...). I tried on the last version of icinga (on my own server) from your hub and it's work, do you have any idea how to fix it on my version ?

Add NRPE plugin

Many deployments use nrpe -- can you add the stock plugin to the install to avoid needing to do this customization after start time?

Icinga : docker restart=always not working

Hello, I tried to see if the restart=always was working (I am using docker-compose)

The restart=always is working for all my container in production server (20 containers). I just did

service docker restart

19 containers restarted directly after the restart of the service but not the icinga one.

When I try to start it, I have this message :

ERROR: rpc error: code = 6 desc = "mkdir /run/containerd/9de1f2232f43f567c57574e46dee183cba4081bb078694112c1cbb668061405e: file exists"

Here is an example of one docker-compose.yml file (just an example), if you try it, you ll have the same problem

icinga:
  image: jordan/icinga2
  environment:
   - ICINGA_PASSWORD=password
   - ICINGA_WEB_PASSWORD=password
   - ICINGAWEB2_PASSWORD=password
   - IDO_PASSWORD=password
   - DIRECTOR_PASSWORD=password
   - DEBIAN_SYS_MAINT_PASSWORD=password
   - DIRECTOR_KICKSTART=false
  ports:
   - "80:80" 
  restart: always

Do you know why ?

Can't Start Mysql

Hello,

After 2 month, the mysql service in my icinga container can't start anymore.

I have this error :

/etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! ... failed!

If I check my disk in my container : df -l

image

Do you have any idea about this problem ?

Thank you

Authenticate against github

Does icinga2 supports user authentication against github? For Ex, We have all the user's in github. We want icinga2 to authenticate against certain groups in github and allow access to icinga2 dashboard.

Icinga container is full

Hello,

My icinga container is full..When I connect on my icinga interface I have this message :

Server error: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine.

If I connect inside my container and I check the disk storage :

rootfs 9.8G 9.3G 4.0K 100% /

Do you have any solution ? Thank you

How to monitor other hosts/docker host?

Hi,

I have the container successfully up & running :) and it it is monitoring the container itself...

What I have not been able to figure out is: how do I actually monitor the docker host and/or other remote servers?

(I have done this before with local install of Icinga2, but I want to move all to docker, and have as little as possible installed on the hosts to be monitored).

Thanks, Hans

docker run without volume for /etc/icingaweb2 breaks

Invoking docker with docker run --rm -ti jordan/icinga2:

Icinga fails to setup correctly, as /etc/icingaweb2/ contains some files and [ $(ls -A /etc/icingaweb2)] returns actually true in /opt/run:

root@50f77b52b865:/etc/icingaweb2# find /etc/icingaweb2
/etc/icingaweb2
/etc/icingaweb2/modules
/etc/icingaweb2/modules/translation
/etc/icingaweb2/modules/translation/config.ini

It's also from a package (icingaweb2-common):

root@50f77b52b865:/etc/icingaweb2# dpkg -S /etc/icingaweb2/modules/translation/config.ini
icingaweb2-common: /etc/icingaweb2/modules/translation/config.ini
root@50f77b52b865:/etc/icingaweb2# apt show icingaweb2
Package: icingaweb2
[...]
Depends: icingaweb2-common (= 2.4.0-1~debmon8+1), [...]
[...]

mail error

Hi Jordan,

The first, thanks you for your icinga docker imagen. I was testing it and now I have this little issue sending notification:

/etc/icinga2/scripts/mail-host-notification.sh') terminated with exit code 36, output: mail: cannot stat /root/.mail': Permission denied mail: Cannot open/root/.mailrc': Permission denied
mail: cannot send message: Process exited with a non-zero status
mail: Cannot open file /root/dead.letter: Permission denied"

I guess the issue is about nagios and home dir "/root".

Upgrade overwrite existing settings and password

Hi All,
Last upgrade of container overwrite the settings in the existing volumes, when run the container
It need to be restored from a backup
Seems that the run process don't "understand" that there is already a previous configuration

Ciao
Alessio

Feature Request: Show Announcements in icingaweb2 after upgrade

Currently the image does not update /etc/icingaweb2 and /etc/icinga2 after docker pull and container-restart. So icingaweb2 and icinga2 do not get fresh and neccessary configuration, which might be needed to fix some bugs.

I would propose to add some add "VERSION"-file (e.g. /etc/icingaweb2(.dist)/VERSION), which holds an integer number. And as long the integer of /etc/icingaweb2/VERSIONis less than/etc/icingaweb2.dist/VERSION`, a script creates an announcement in icingaweb2. So we could remind the user to manually merge the new changes.

The announcement would be placed in /etc/icingaweb2/announcements.ini and could be easily added by either just appending via echo/cat or using or using ini_set introduced in #67.

If we add tags on every configuration-change, it would be easily possible to also add an autogenerated link like: https://github.com/jjethwa/icinga2/compare/config-v1...config-v2

screenshot from 2017-01-07 21-31-35

Enabling TLS

@jjethwa, have you ever thought about adding transport encryption (TLS) to the image? Do you mind accepting PRs for this?

Container initialization is super confusing

I have created a docker-compose file for this image and also created volumes to persist the configuration so far. After starting the container anew I couldn't log in with any password (I had changed the icingaadmin password through the director web interface).
I spent hours upon hours debugging this issue and backtracking your scripts :( :( :(

I wonder why /opt/run does not check if the instance is already configured and tries to re-create configs and certificates upon every start?

To fix my issue I added all password related environment variables to the docker-compose file. However now the icinga2 backend is not running. I guess that's due to some configs being auto generated.

Is there a way to recover this installation? I have spent a really long time on it and I'd hate to have to do it all over again.

BUG : Backend icinga is not running

Hello,

I am using your icinga container in production : v2.3.0-193-g3eb55ad (version 06/2015 if I have a good memory).

I have 1450 hosts with almost 1700 services.

Since 2 months I have a problem, every 2 or 3 weeks I have this error message in "System > Monitoring health" : Backend icinga is not running. Icinga services are not running anymore in the container.

The solution is to restart the container, but it's starting to be a big problem because we are using it in production.

Do you have a solution ? Is-it because I am using an "old" version of icinga2 ?

I just checked my log, i have this :

[2015-11-18 20:26:41 +0100] information/Application: Got reload command: Starting new instance.
[2015-11-18 20:26:42 +0100] information/Application: Received request to shut down.
[2015-11-18 20:26:42 +0100] information/Application: Shutting down...
[2015-11-18 20:26:42 +0100] information/CheckerComponent: Checker stopped.
[2015-11-18 20:26:42 +0100] information/DbConnection: Pausing IDO connection: ido-mysql
[2015-11-18 20:26:42 +0100] critical/Socket: accept() failed with error code 9, "Bad file descriptor"
[2015-11-18 20:26:42 +0100] critical/ListenerListener: Cannot accept new connection.

Thank you very much

How to configure hosts etc.

This is not really an issue but more a request for help. I started the container successfully and now I can access the web UI. However I wonder how I can add the configuration if I cannot ssh into the container. Any example would be appreciated.

Can't login to icingaweb2

I followed the instructions in page. The icinga passwords are overridden via environment of docker.

Below is output in logs,

===================================================================
MySQL user 'root' has no password but only allows local connections
MySQL user 'debian-sys-maint' password set to 6KXKZdrJ4kcBUhQ
MySQL user 'icinga' password set to vmeoperation
MySQL user 'icinga2-ido-mysq' password set to 0y77YAgsXoWXqCd
MySQL user 'icinga-web' password set to vmeoperation
MySQL user 'icingaweb2' password set to vmeoperation
===================================================================

However I always failed to login icinga-web2, both using the password given as environment and the default one icingaadmin:icinga given in docker hub do not work.

Looks like the password of icingaweb still is not overridden by the one given in environment, using the default one root:password works.

Could you suggest what's wrong?

DEBIAN_SYS_MAINT_PASSWORD not working

Hi, in your README, you name DEBIAN_SYS_MAINT_PASSWORD variable to set. In your "run" script at line 20, you do not respect this Variable, but force a random one.

Error : GlobFilter

Hello

I just created a new container with your last version of Icinga.

But I have a problem when I want to check the detail of a host ( just a click on the default host when you start Icinga). I have the following error :

Fatal error: Class 'Icinga\Util\GlobFilter' not found in /etc/icingaweb2/modules/monitoring/library/Monitoring/Object/MonitoredObject.php on line 507

I also have the problem when I had a host.

Do you know how to fix it ?

Another question, Graphite is not in icinga anymore ?

Thank you :)

Refusing to render the configuration, your DB layer corrupts binary data. You might be affected by Zend Framework bug #655

Hi,
I get this when i try to deploy in Icinga Director, any ideas what is causing this ?

#0 /etc/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(149): Icinga\Module\Director\IcingaConfig\IcingaConfig->generateFromDb()
#1 /etc/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(185): Icinga\Module\Director\IcingaConfig\IcingaConfig->hasBeenModified()
#2 /etc/icingaweb2/modules/director/library/Director/IcingaConfig/IcingaConfig.php(138): Icinga\Module\Director\IcingaConfig\IcingaConfig->storeIfModified()
#3 /etc/icingaweb2/modules/director/application/controllers/ConfigController.php(57): Icinga\Module\Director\IcingaConfig\IcingaConfig::generate(Object(Icinga\Module\Director\Db))
#4 /usr/share/php/Zend/Controller/Action.php(516): Icinga\Module\Director\Controllers\ConfigController->deployAction()
#5 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('deployAction')
#6 /usr/share/php/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#7 /usr/share/php/Icinga/Application/Web.php(384): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#8 /usr/share/php/Icinga/Application/webrouter.php(109): Icinga\Application\Web->dispatch()
#9 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#10 {main}

donnib

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.