[dev.icinga.com #2272] Debian Base Installation and External Commands won't work (still or again) #851
Comments
Updated by formorer on 2012-01-18 13:46:51 +00:00
aswen wrote:
And it works as documented: sed -i -e 's/check_external_commands=0/check_external_commands=1/' /etc/icinga/icinga.cfg invoke-rc.d icinga start invoke-rc.d icinga restart ls -l /var/lib/icinga/rw/icinga.cmd works without problems. Alex |
Updated by aswen on 2012-01-18 13:52:18 +00:00
as promised attached the diff of /etc/init.d/icinga |
Updated by aswen on 2012-01-18 14:14:52 +00:00 formorer wrote:
1st of: thanks for your quick reply! but it is not working here teh same way as on your system with the packages I installed (from debian squeeze backports): please have a look at this: **+ I don't see what I am doing wrong then... however, we need to be able to send commands to icinga anyway. best regards |
Updated by formorer on 2012-01-18 14:18:30 +00:00 aswen wrote:
And icinga.log if there is something in it, and attach icinga.cfg |
Updated by aswen on 2012-01-18 14:22:46 +00:00
formorer wrote:
only last lines of icinga.log. icinga warns that there are no services: I know, will do that once I got the rest ok. currently icinga starts without them (with my patched init script) |
Updated by formorer on 2012-01-18 14:26:57 +00:00 aswen wrote:
and the bash -x? |
Updated by aswen on 2012-01-18 14:28:03 +00:00
formorer wrote:
bash -x /etc/init.d/icinga start |
Updated by formorer on 2012-01-18 14:30:13 +00:00 aswen wrote:
|
Updated by aswen on 2012-01-18 14:36:00 +00:00
formorer wrote:
so, I did this afterwards, may be more interesting: please have a look at the new attached file |
Updated by formorer on 2012-01-18 14:41:26 +00:00 aswen wrote:
/var/lib/icinga should look like this: ls -l /var/lib/icinga/
|
Updated by aswen on 2012-01-18 14:54:48 +00:00 formorer wrote:
because in my case, icinga is not creating any socket (I assume you mean de icinga cmd file with socket) and is not running either after a start command when no icinga.cmd is in place.
this is what is in my /etc/init.d/icinga file |
Updated by mfriedrich on 2012-05-05 12:06:35 +00:00
debian bug, should be solved with a new revision |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/2272
Created by aswen on 2012-01-18 12:19:38 +00:00
Assignee: formorer
Status: Closed (closed on 2012-05-05 12:06:35 +00:00)
Target Version: (none)
Last Update: 2012-05-05 12:06:35 +00:00 (in Redmine)
Hi,
Please have a look at Issue 629. It was closed after part of the paste of part of the README.Debian file.
Yet, version 1.6.1 still seems to have some problems when on Debian with an ext cmd file.
here's what I have:
Debian 6.0.3, icinga 161 + icinga-idoutils, icinga-phpapi (all from backports)
followed instructions in README file to enable external_commands and override dpkg defaults on external commands, resulting in this dir listing in /var/lib/icinga/
drwxr-x--x 4 nagios nagios 4.0K Jan 18 11:23 .
drwxr-xr-x 35 root root 4.0K Jan 17 12:14 ..
srwxr-xr-x 1 nagios nagios 0 Jan 17 16:49 ido.sock
rw------1 nagios www-data 11K Jan 18 11:23 retention.datdrwx-
s--2 nagios www-data 4.0K Jan 18 12:49 rwdrwxr-x--- 3 nagios nagios 4.0K Dec 6 10:20 spool
with this in place icinga stops immediately after starting up the daemon (it looks like this when done from cmd line:
/usr/sbin/icinga /etc/icinga/icinga.cfg
Icinga 1.6.1
Copyright (c) 2009-2011 Icinga Development Team (http://www.icinga.org)
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-02-2011
License: GPL
Icinga 1.6.1 starting... (PID=23496)
Local time is Wed Jan 18 13:06:41 CET 2012
so, I thought I had to manually create the fifo (
mknod -m 660 /var/lib/icinga/rw/icinga.cmd p
chown nagios:www-data /var/lib/icinga/rw/icinga.cmd
and here he is:
prw-rw---- 1 nagios www-data 0 Jan 18 13:10 /var/lib/icinga/rw/icinga.cmd
however, when I start icinga from cmdline it starts and keeps running. but the initscript has a function called check_named_pipe that greps the command_file var from cfgfile and the start function removes this file before launching the daemon.
This way icinga can never run with a command file.
this bug could be solved in a few ways:
Kind regards, Alex
PS: I will attached a diff when I changed and tested the init script.
Attachments
The text was updated successfully, but these errors were encountered: