Giter Club home page Giter Club logo

icinga-core's Introduction

Build Status

Icinga 1.x

Icinga Logo

Table of Contents

  1. About
  2. License
  3. Installation
  4. Documentation
  5. Support
  6. Development and Contributions

About

Icinga 1.x began as a fork of Nagios and is backward compatible. So, Nagios configurations, plugins and addons can all be used with Icinga 1.x. Though Icinga 1.x retains all the existing features of its predecessor, it builds on them to add many long awaited patches and features requested by the user community.

Icinga is an enterprise grade open source monitoring system which keeps watch over a network and any conceivable network resource, notifies the user of errors and recoveries, and generates performance data for reporting. Scalable and extensible, Icinga can monitor complex, large environments across dispersed locations. Icinga is licensed under GPL V2 and is free to use, distribute and modify.

Icinga 2 is the new monitoring core flagship and actively developed. Icinga 1.x receives security and bug fixes only.

Please checkout https://www.icinga.com/products/icinga-2/ for more details.

License

Icinga 1 and the Icinga 1 documentation are licensed under the terms of the GNU General Public License Version 2, you will find a copy of this license in the LICENSE file included in the source package.

Installation

Read the INSTALLING file for more information about how to install it.

Documentation

The documentation is located in the html/doc/ directory. The latest documentation is also available on https://docs.icinga.com

Support

Check the project website at https://www.icinga.com for status updates. Join the community channels for questions or ask an Icinga partner for professional support.

Development

The Git repository is located on GitHub.

Icinga 1 is written in C and can be built on Linux/Unix.

Contributing

There are many ways to contribute to Icinga -- whether it be sending patches, testing, reporting bugs, or reviewing and updating the documentation. Every contribution is appreciated!

Read the contributing section and get familiar with the code.

Pull requests on GitHub are preferred.

Testing

Basic unit test coverage is provided by running make test during package builds.

Snapshot packages from the laster development branch are available inside the package repository.

icinga-core's People

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

Watchers

 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

icinga-core's Issues

[dev.icinga.com #139] postgres: weird bug in servicestatusdata

This issue has been migrated from Redmine: https://dev.icinga.com/issues/139

Created by mfriedrich on 2009-09-03 23:00:22 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-09-11 19:42:11 +00:00)
Target Version: 0.8.4
Last Update: 2009-09-13 18:34:30 +00:00 (in Redmine)


currently tested on rhel x64, gives the normal error connecting to datasink, which matches the debugoutput:

[1252017924.132288] [001.2] [pid=25202] ndo2db_handle_servicestatusdata() start
...

[1252017924.133319] [001.2] [pid=25202] ndo2db_get_object_id_with_insert() start
...
[1252017924.134778] [001.2] [pid=25202] ndo2db_get_object_id_with_insert(736) end
[1252017924.134800] [001.2] [pid=25202] ido2db_query_insert_or_update_servicestatusdata_add() start
[1252017924.134850] [001.2] [pid=25202] ndo2db_child_sighandler() start
[1252017924.134860] [001.2] [pid=25202] Child caught signal '11' exiting
[1252017924.134878] [001.2] [pid=25202] ndo2db_child_sighandler() end
[1252017924.187072] [001.2] [pid=25149] ndo2db_parent_sighandler() start
[1252017924.187120] [001.2] [pid=25149] processing signal '17'
[1252017940.270788] [001.2] [pid=25468] ndo2db_handle_client_connection() start
[1252017940.271346] [001.2] [pid=25468] ndo2db_open_debug_log() end
[1252017940.271385] [001.2] [pid=25468] ndo2db_idi_init() start
[1252017940.271395] [001.2] [pid=25468] ndo2db_idi_init() end
[1252017940.271408] [001.2] [pid=25468] ndo2db_db_init() start
[1252017940.279074] [001.2] [pid=25468] ndo2db_db_init() end
[1252017940.279113] [001.2] [pid=25468] ndo2db_db_connect() start
[1252017940.296151] [001.2] [pid=25468] ndo2db_db_connect() end

needs to be debugged in deep.

[dev.icinga.com #67] ido2db fails if database driver is missing

This issue has been migrated from Redmine: https://dev.icinga.com/issues/67

Created by hbaecker on 2009-05-04 16:42:04 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-05-27 17:21:18 +00:00)
Target Version: 0.8
Last Update: 2009-05-27 17:21:18 +00:00 (in Redmine)


ido2db is missing some error handling caused by missing database driver. It should be able to check of the database type is loadable within libdbi and terminate with a user friendly error message.

[dev.icinga.com #108] IDOUtils with Oracle

This issue has been migrated from Redmine: https://dev.icinga.com/issues/108

Created by mfriedrich on 2009-05-26 12:46:05 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-10-19 16:54:42 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-19 16:54:42 +00:00 (in Redmine)


  • Test the libdbi against Oracle (libdbi-drivers from CVS and Oracle Instant Client+SDK)
  • Merge Code from NDOUtils Oracle with current IDOUtils Implementation (libdbi instead of liboci)
  • Improve current Queries/Code
  • Take care of Multi-DB support (switch case at non-normalized queries)
  • Provide Install Howtos

Sources:
http://www.mare-system.de/dev/icinga\_installation.html
https://www.nagiosforge.org/gf/project/ndoutils\_oracle/


Relations:

[dev.icinga.com #47] Strange service check scheduling - prefered time bug

This issue has been migrated from Redmine: https://dev.icinga.com/issues/47

Created by hbaecker on 2009-05-01 09:50:43 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-10-23 10:48:56 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-23 10:48:56 +00:00 (in Redmine)


Nagios does some wrong time calculation while scheduling next prefered check time.

Attached patch should solve the problem but should be tested.

http://thread.gmane.org/gmane.network.nagios.devel/6170/focus=6171

Attachments

[dev.icinga.com #93] [PATCH] Wrong filename in update-version script

This issue has been migrated from Redmine: https://dev.icinga.com/issues/93

Created by bear on 2009-05-13 19:17:36 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-05-13 21:00:58 +00:00)
Target Version: (none)
Last Update: 2009-05-13 21:00:58 +00:00 (in Redmine)


Hi, is this the prefered method of getting patches?

I think the filename nagios.c should be changed too, shouldn't it? Please have a look at the attached patch file. I've created it with git-diff. I'm not very familiar with git, but I try my best :-)

Regards
Bernd

Attachments

[dev.icinga.com #113] make fullinstall does not create config as mentioned in quickstart

This issue has been migrated from Redmine: https://dev.icinga.com/issues/113

Created by cdoebler on 2009-06-19 07:47:26 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-07-01 10:50:12 +00:00)
Target Version: 0.8.2
Last Update: 2009-07-01 10:50:12 +00:00 (in Redmine)


When executing 'make fullinstall' the config dir is not created but the documentation says so.

Changesets

2009-07-01 10:48:28 +00:00 by hbaecker 84555d9

fix missing config-sample on make fullinstall

IssueID #113

[dev.icinga.com #137] makefile init_opts possible error

This issue has been migrated from Redmine: https://dev.icinga.com/issues/137

Created by mfriedrich on 2009-09-03 14:23:17 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-10-23 12:21:40 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-23 12:21:40 +00:00 (in Redmine)


from blog comment:
http://www.icinga.org/2009/09/02/postgresql-supported-icinga-v-0-8-3-is-out/#comment-172


Is there an error in the makefile of Icinga? I cant install the idoutils. I found this line in the Makefile:

INIT_OPTS=-o root -g root

and changed it to

INIT_OPTS=-o root -g wheel

and everything went fine.

Changesets

2009-10-20 21:20:19 +00:00 by hbaecker a9c790c

Set INIT_OPTS depending on host OS

IssueID #137

[dev.icinga.com #117] fix warning about camparison between signed and unsigned.

This issue has been migrated from Redmine: https://dev.icinga.com/issues/117

Created by hbaecker on 2009-06-30 21:10:46 +00:00

Assignee: hbaecker
Status: Closed (closed on 2009-07-01 10:58:05 +00:00)
Target Version: 0.8.1
Last Update: 2009-07-01 10:58:05 +00:00 (in Redmine)


## nagios-devel, 04/06/2009 by Bernhard

Hi,

ndomod_sink_buffer_init() and ndomod_sink_buffer_deinit want to iterate
over sbuf->maxitems which is an unsigned long. Adjust the type of the
iterator variable to match this type.

Attachments

[dev.icinga.com #68] Compiling and use of idoutils should be optional, not mandatory

This issue has been migrated from Redmine: https://dev.icinga.com/issues/68

Created by hbaecker on 2009-05-04 16:52:40 +00:00

Assignee: hbaecker
Status: Closed (closed on 2009-05-13 17:21:42 +00:00)
Target Version: (none)
Last Update: 2009-05-13 17:21:42 +00:00 (in Redmine)


On the current master (commit id 682f34e) the configure will fail, if no libdbi support is available.

Since the user should decide to use idoutils or not it would be nicer for an additional configure option, like '--with-idoutils', with default = disable.

If the user decides for this option, libdbi has to be installed and configure is allowed to fail.

Changesets

2009-05-03 21:14:16 +00:00 by (unknown) 1062fc6

autoconf update to 2.61 and libdbi checks

IssueID #68

[dev.icinga.com #115] fails to run rotate_command when using Nagios 3.x

This issue has been migrated from Redmine: https://dev.icinga.com/issues/115

Created by hbaecker on 2009-06-30 20:56:09 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-07-01 11:14:43 +00:00)
Target Version: 0.8.2
Last Update: 2009-07-01 11:14:43 +00:00 (in Redmine)


from nagios-devel list, 09/15/2008 by Wolfgang P.

Hello,

Today I noticed a bug in ndomod.c that leads ndomod to execute/process
a empty or random command instead of the defined command_line.
This happens only when using Nagios 3.x ... the corresponding log lines
looked like this :

[1221470845] Warning: Attempting to execute the command "y#," resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists...

The attached Patch should fix this issue.

kind Regards, Wolfgang

Attachments

Changesets

2009-07-01 11:12:48 +00:00 by hbaecker 7825033

idomod fails to run rotate_command

IssueID #115

[dev.icinga.com #133] ido2db init script needs 'su' which wouldn't work with locked accounts

This issue has been migrated from Redmine: https://dev.icinga.com/issues/133

Created by hbaecker on 2009-08-28 11:39:07 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-10-08 11:26:14 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-08 11:26:14 +00:00 (in Redmine)


  1. icinga-devel by Christoph Maser

The new ido2db initscript uses su - $IcingaUser -c ..... This does not
work with locked accounts (i.e. invalid shell) wihch is the standard for
system users on some platforms.

Changesets

2009-10-07 19:41:27 +00:00 by hbaecker 3605e25

delete 'su' usage in init script

IssueID #133

[dev.icinga.com #98] File based database (sqlite) support

This issue has been migrated from Redmine: https://dev.icinga.com/issues/98

Created by hbaecker on 2009-05-18 21:03:02 +00:00

Assignee: (none)
Status: Rejected (closed on 2010-01-09 18:00:35 +00:00)
Target Version: (none)
Last Update: 2010-01-09 18:00:35 +00:00 (in Redmine)


SQLite is a file based database, so the ido2db config parser should know the filename and ignore things like hostname, port, user/pass and so on.


Relations:

[dev.icinga.com #28] Rename and repack of actual core components

This issue has been migrated from Redmine: https://dev.icinga.com/issues/28

Created by berk on 2009-04-16 16:38:39 +00:00

Assignee: hbaecker
Status: Closed (closed on 2009-05-27 16:58:13 +00:00)
Target Version: 0.8
Last Update: 2009-05-27 16:58:13 +00:00 (in Redmine)


  • Nagios -> Icinga
  • NDOUtils -> IDOUtils
  • NDO2FS -> IDO2FS

Changesets

2009-05-07 04:29:37 +00:00 by hbaecker 7e1bcbc

IssueID #28 - Squashed commit of the following:

commit 2f847c0b810772080afe1a6829b0bbeb91cec5b9
Author: Hendrik Baecker <[email protected]>
Date:   Tue May 5 22:00:05 2009 +0200

    typo fixing and nagios_pid replacements

commit 2e25f6ccf0b16d057ac522c9b0ea5264a3cae049
Author: Hendrik Baecker <[email protected]>
Date:   Tue May 5 21:22:17 2009 +0200

    dos2unix html/main.php and some more minor whitespace fixes

commit 1391c294554bb39f774d2ae8f10d5c793e776f5c
Author: Hendrik Baecker <[email protected]>
Date:   Tue May 5 21:17:18 2009 +0200

    some minor whitespace fixes

commit 211347ede1d7f86f6958aaa0e6ca718b20fc3c23
Author: Hendrik Baecker <[email protected]>
Date:   Tue May 5 21:05:20 2009 +0200

    CGI Name fixing

    It's a bulk search and replace to get Icinga's Name
    into the CGIs but leaving the Copyrights untouched.

commit 375423a4f4a7fa2921360371369c1536c575636e
Author: Hendrik Baecker <[email protected]>
Date:   Tue May 5 21:04:14 2009 +0200

    Change ENV Macro Prefix

    Environment vars will be called ICINGA_*

commit cbabd00ba9f1cb2347481fd1c2b4539ea067a2f6
Author: Hendrik Baecker <[email protected]>
Date:   Tue May 5 19:12:52 2009 +0200

    Changed HTML Files

    Deleted PHP Part against update checks
    changed page title and header to icinga
    fix different links and logos to icinga

commit afd6a2b015c94d23b8e8baa2c05dc6e8675bd28a
Author: Hendrik Baecker <[email protected]>
Date:   Tue May 5 18:58:02 2009 +0200

    Change name of logfiles

commit 4ad7117284745c1f195037db39063a1e26e38420
Author: Hendrik Baecker <[email protected]>
Date:   Sun May 3 18:28:32 2009 +0200

    Fix segfault cause of wrong var order

commit c8d1367cece17e5c14031982bea1e012eed8c81a
Author: Hendrik Baecker <[email protected]>
Date:   Sun May 3 18:12:19 2009 +0200

    more renaming

commit e941e37fc1335f2df34a5095ca62a36f21f82879
Author: Hendrik Baecker <[email protected]>
Date:   Sun May 3 18:10:57 2009 +0200

    Renamed nagiostatos->icingastats

commit 1c30516e5c8a8277fda616034863b182705ca3a2
Author: Hendrik Baecker <[email protected]>
Date:   Sun May 3 13:00:53 2009 +0200

    Rename: nagios.c->icinga.c

commit 169cb2fa92c99e4a0ffe9457698eeb34b08791be
Author: Hendrik Baecker <[email protected]>
Date:   Sun May 3 12:38:40 2009 +0200

    more small changes to .gitignore cause of renaming

commit 346d044ba139f4faacab22b6e7b53d3b886f42eb
Author: Hendrik Baecker <[email protected]>
Date:   Sun May 3 12:29:15 2009 +0200

    Use precompiler PROGRAM_NAME in program

commit 826109499cf07d059b3378451a93e18bc828f2c1
Author: Hendrik Baecker <[email protected]>
Date:   Sat May 2 20:30:50 2009 +0200

    add new PROGRAM_NAME pragma

commit 07d87fd6c1eec05be41d5a04105e587ff04308c5
Author: Hendrik Baecker <[email protected]>
Date:   Sat May 2 20:29:58 2009 +0200

    accept 'icinga.cfg' as not suspicious main config file

commit 72f2fc5da0014e04e38358c3f38cf2ad3ad24793
Author: Hendrik Baecker <[email protected]>
Date:   Sat May 2 19:27:53 2009 +0200

    config option renaming: nagios_user|group -> icinga_user|group

commit 8a135c7455a1ce55c587391a17e18862fea16948
Author: Hendrik Baecker <[email protected]>
Date:   Sat May 2 19:12:39 2009 +0200

    Renamed epn_nagios.h -> epn_icinga.h

commit eb2018cfaf75c8c82147554a88c8f8d531054400
Author: Hendrik Baecker <[email protected]>
Date:   Sat May 2 19:04:04 2009 +0200

    Renamed include/nagios.h -> include/icinga.h

[dev.icinga.com #141] typo in ido2db

This issue has been migrated from Redmine: https://dev.icinga.com/issues/141

Created by berk on 2009-09-11 13:39:31 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-09-11 13:54:52 +00:00)
Target Version: 0.8.4
Last Update: 2009-09-13 18:35:04 +00:00 (in Redmine)


coming from website (michael krebs). it seems that we have a tyo in the statehistory insert. perhaps you can have a look on it michael.

Sep 11 13:06:03 y100scm524 ido2db: Error: database query failed for
'INSERT INTO icinga_statehistory (instance_id, state_time,
state_time_usec, object_id, state_change, state, state_type,
current_check_attempt, max_check_attempts, laste_state, last_hard_state,
output, long_output) VALUES ('1', FROM_UNIXTIME(1252667163), '86408', '5',
'1', '1', '1', '4', '4', '1', '0', 'HTTP WARNING: HTTP/1\.1 403
Forbidden', 'HTTP WARNING: HTTP/1\.1 403 Forbidden')' - '1054: Unknown
column 'laste_state' in 'field list''
Sep 11 13:06:03 y100scm524 ido2db: Successfully disconnected from database
Sep 11 13:06:03 y100scm524 icinga: idomod: Error writing to data sink!
Some output may get lost...
Sep 11 13:06:19 y100scm524 icinga: idomod: Successfully reconnected to
data sink! 0 items lost, 73 queued items to flush.
Sep 11 13:06:19 y100scm524 icinga: idomod: Successfully flushed 73 queued
items to data sink.
Sep 11 13:06:19 y100scm524 ido2db: Successfully connected to database

laste_state => last_state

[dev.icinga.com #136] catch ndoutils patches for idoutils

This issue has been migrated from Redmine: https://dev.icinga.com/issues/136

Created by mfriedrich on 2009-09-03 00:24:34 +00:00

Assignee: hbaecker
Status: Closed (closed on 2010-01-08 15:09:16 +00:00)
Target Version: 1.0.1
Last Update: 2010-01-08 15:09:16 +00:00 (in Redmine)


there are several ndoutils patches around, decide apply to idoutils and test.

  • Add in 4 missing tables from clearout process during prelaunch (Opsera Ltd)
  • Move database connections/disconnections syslog detail to DEBUG from INFO (Opsera Ltd)
  • Allow externalcommands table to be trimmed with a specific time limit (Opsera Ltd)
  • Remove a waitpid that prevents multiple concurrent ndomod connections

[dev.icinga.com #76] Ask user during configure to create database

This issue has been migrated from Redmine: https://dev.icinga.com/issues/76

Created by hbaecker on 2009-05-08 20:14:14 +00:00

Assignee: (none)
Status: Closed (closed on 2009-09-11 11:37:48 +00:00)
Target Version: (none)
Last Update: 2009-09-11 11:37:48 +00:00 (in Redmine)


A nice feature would be to allow within a make step to create a idoutils database by a privileged user or to only create table structure and indizies by a givven already existing idutils database user.

[dev.icinga.com #118] idomod - fix setting hosts retry_interval in NEBCALLBACK_HOST_STATUS_DATA

This issue has been migrated from Redmine: https://dev.icinga.com/issues/118

Created by hbaecker on 2009-06-30 21:14:44 +00:00

Assignee: hbaecker
Status: Closed (closed on 2009-07-01 10:58:53 +00:00)
Target Version: (none)
Last Update: 2009-07-01 10:58:53 +00:00 (in Redmine)


from nagios-devel, 04/06/2009 by Bernhard

Due to a typo in the preprocessor token the retry_interval was never set to
what was intended.

Patch was already testet by myself - is it applied?

Attachments

[dev.icinga.com #127] Change name of ido in logs

This issue has been migrated from Redmine: https://dev.icinga.com/issues/127

Created by mfriedrich on 2009-08-13 07:21:12 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-09-01 00:37:52 +00:00)
Target Version: 0.8.3
Last Update: 2009-09-01 00:37:53 +00:00 (in Redmine)


currently it's shown like this

"[1250077223] idomod: NDOMOD 1.4b8 (01-03-2009) Copyright (c) 2005-2008
Ethan Galstad ([email protected]), Copyright (c) 2009 Icinga Development
Team (http://www.icinga.org))"

but it should be kind of "Icinga [Version] IDOUtils". It's a minor #define FIX iirc.

[dev.icinga.com #119] ndoutils: fix fmt specifier in ndo2db_daemonize() error path

This issue has been migrated from Redmine: https://dev.icinga.com/issues/119

Created by hbaecker on 2009-06-30 21:18:19 +00:00

Assignee: hbaecker
Status: Closed (closed on 2009-07-01 11:00:06 +00:00)
Target Version: 0.8.1
Last Update: 2009-07-01 11:00:06 +00:00 (in Redmine)


## nagios-devel, 06/04/2009 by Bernhard

Hi,

Either lock.l_pid should not be printed or it needs a format specifier.

Attached patch does the latter.
thanks,
Bernhard

Attachments

[dev.icinga.com #135] idoutils postgres - hosts table failure_prediction_options too short

This issue has been migrated from Redmine: https://dev.icinga.com/issues/135

Created by mfriedrich on 2009-09-02 22:09:41 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-09-02 23:25:29 +00:00)
Target Version: 0.8.4
Last Update: 2009-09-13 18:36:19 +00:00 (in Redmine)


From the comments on icinga.org:

Testing IDOUtils with PostgreSQL 8.3 had the following problem:

"Error: database query failed for UPDATE icinga_hosts"

because the field failure_prediction_options es > 64

'ERROR: the value is too long for the type character varying(64)#12'

In the failure_prediction_options field is this as the same information the
notes field that has a size of varchar (255)

There are no problems in MySQL because the information is truncated but
aborted in PostgreSQL

[dev.icinga.com #77] Detect already running icinga processes in init script

This issue has been migrated from Redmine: https://dev.icinga.com/issues/77

Created by hbaecker on 2009-05-08 20:16:53 +00:00

Assignee: (none)
Status: Resolved (closed on 2009-10-04 12:25:06 +00:00)
Target Version: (none)
Last Update: 2009-10-04 12:25:06 +00:00 (in Redmine)


I would like to see a small error, optional with the pid, to see if I try to start another instance of icinga.

Changesets

2009-10-04 12:14:52 +00:00 by Meier 46b13a8

Check if icinga is already running in init script before starting it Closes: #77

2009-10-04 12:17:34 +00:00 by Meier b837cc9

Check if icinga is already running in init script before starting it Closes: #77

[dev.icinga.com #106] Problem with starting Icinga

This issue has been migrated from Redmine: https://dev.icinga.com/issues/106

Created by Ziben on 2009-05-25 10:00:43 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-10-22 11:04:25 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-22 11:04:25 +00:00 (in Redmine)


Hi!

Before first start, when I checking config Icinga by "icinga -v /etc/icinga/icinga.cfg" :

Reading configuration data...
Error in configuration file '/etc/icinga/icinga.cfg' - Line 465 (Check result path is not a valid directory)
Error processing main config file!

In order to resolv this in file icinga.spec:318
after

%dir /var/log/icinga/archives

adding:
%dir /var/log/icinga//spool
%dir /var/log/icinga//spool/checkresults

Changesets

2009-05-25 11:15:25 +00:00 by hbaecker 52abb02

spec file fixes - missing directories

This will fix spec file installations:

First:
Error in configuration file '/etc/icinga/icinga.cfg' - Line 465

Line 465:
check_result_path=/var/log/icinga/spool/checkresults
-----

Second:
Error: Could not create external command file '/var/log/icinga/rw/icinga.cmd' as named pipe: (2) -> No such file or directory.

Thanks to 'Ziben' - IssueID #106

2009-10-21 08:20:41 +00:00 by hbaecker 49fcfbd

Added new SPEC File by Christoph

Old Spec file moved

IssueID #106

[dev.icinga.com #87] [PATCH] never ending loop in utils.c

This issue has been migrated from Redmine: https://dev.icinga.com/issues/87

Created by berk on 2009-05-13 10:46:16 +00:00

Assignee: hbaecker
Status: Closed (closed on 2009-06-07 12:23:39 +00:00)
Target Version: 0.8.1
Last Update: 2009-06-07 12:23:39 +00:00 (in Redmine)


From: Stefan Fischer <[email protected]>
Date: 2009/4/15
Subject: [Nagios-devel] [PATCH] never ending loop in utils.c
To: Nagios-Devel <[email protected]>

Hello together,

second try ;-) (first message is maybe still in the spam filter)

I have an active - passive Nagios setup (One central instance and a few satellites).
To get the events from the satellites to the central instance I'm using a rsync script.
In this script the external command interface of Nagios is used to get the events in the central instance.

One satellite wasn't reachable for about two hours, so a lot of data came from this satellite, round about 300.000 events.
The external_command_buffer_slots was set to 250.000.

Nearly all events had been transfered to the central instance and from this time Nagios took 100% CPU and a normal kill wasn't possible anymore.

The following is based on version 3.0.6:

In the file utils.c
 Line 3830: a while loop is started      => OK
 Line 3888: within this loop a check is done if there are no item's so, this loop will sleep a little bit.   => OK
 Line 3896: checking if there are less items buffered, than configured         => But what if these values are equal??

300.000 > 250.000 => all BufferSlot used => Nagios is going crazy.

The following patch is based on 3.0.6 (same issue is in version 3.0.5 and 3.1.0):

09:26:11 stefan@test1:./base$ diff -w utils.c utils.c.orig
3932,3938d3931
<                       } else {
<
<                                       /* wait a bit */
<                                       tv.tv_sec=0;
<                                       tv.tv_usec=250000;
<                                       select(0,NULL,NULL,NULL,&tv);
<
09:26:28 stefan@test1:./base$

Regards Stefan

Changesets

2009-06-07 12:22:31 +00:00 by hbaecker 8089321

never ending loop in utils.c (overrun cmd buffer)

In the file "utils.c":
1. a while loop is started
     => OK
2. within this loop a check is done if there are no item's so,
   this loop will sleep a little bit.
     => OK
3. checking if there are less items buffered, than configured
     => But what if these values are equal??

300.000 > 250.000 => all BufferSlot used => Nagios is going crazy.

Solution:
The command_file_worker_thread has to wait until event.c is
catching up some commands from the buffer

IssueID: #87

[dev.icinga.com #129] ido2db init script in make install-idoutils

This issue has been migrated from Redmine: https://dev.icinga.com/issues/129

Created by mfriedrich on 2009-08-13 07:30:30 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-08-29 13:19:08 +00:00)
Target Version: 0.8.3
Last Update: 2009-08-29 13:19:08 +00:00 (in Redmine)


Recently installed IDOUtils after normal Icinga install.

make idoutils
make install-idoutils

But init script isn't getting installed. Maybe fix that only for make install-idoutils.

Changesets

2009-08-29 13:19:47 +00:00 by mfriedrich eda920f

install ido2db-init-script in make install-idoutils
./configure --enable-idoutils has to be set
fixes #129

[dev.icinga.com #114] IDOUtils with SSL Support

This issue has been migrated from Redmine: https://dev.icinga.com/issues/114

Created by hbaecker on 2009-06-30 20:48:22 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-10-16 09:23:09 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-16 09:23:09 +00:00 (in Redmine)


From nagios-devel list: 06/30/2009 Jean Gabes:

Ndo14b7_ssl_patch_v2 : user can use SSL connexion between ndomod and
ndo2db. The option use_ssl is add in ndomod.cfg and ndo2db.cfg. If
omitted, the SSL is used by default. The patch is not fully completed
because the autoconf part is not finish (I took the code from NRPE). I
never take thetime to, so if someone want to finish this part...

Attachments

[dev.icinga.com #53] update_service_status() called twice

This issue has been migrated from Redmine: https://dev.icinga.com/issues/53

Created by jlinge on 2009-05-03 11:26:02 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-10-23 12:17:46 +00:00)
Target Version: (none)
Last Update: 2009-10-23 12:17:46 +00:00 (in Redmine)


common/statusdata.c:int update_service_status(service *svc,int aggregated_dump)

This function is called twice for every status update. So the status is also send twice to ido2db.

[dev.icinga.com #126] keep old cfg during upgrade/install

This issue has been migrated from Redmine: https://dev.icinga.com/issues/126

Created by mfriedrich on 2009-08-13 07:18:27 +00:00

Assignee: (none)
Status: Closed (closed on 2009-09-02 08:44:04 +00:00)
Target Version: (none)
Last Update: 2009-09-02 08:44:04 +00:00 (in Redmine)


during upgrade/install it would be nice to check for existing config files (mainly icinga.cfg and the webconf) and not overwriting but keeping the original in place.

kind of

if -e icinga.cfg then
  mv icinga.cfg icinga.cfg.old
fi
cp src/icinga.cfg icinga.cfg

[dev.icinga.com #112] Icinga does not include logfiles from archive

This issue has been migrated from Redmine: https://dev.icinga.com/issues/112

Created by jhein on 2009-06-10 15:32:57 +00:00

Assignee: (none)
Status: Closed (closed on 2009-06-10 18:36:26 +00:00)
Target Version: 0.8.1
Last Update: 2009-06-10 18:36:26 +00:00 (in Redmine)


Reported on the Mailing List:

On my system Icinga creates logfiles (daily rotation) with the name
Icinga-$DATE-00.log. No Problem with that.

But when I want to use the trend.cgi or avail.cgi these archived
logfiles will not be used and only the data from the current file is shown.
I've tried serveral things and finally found out, that renaming these
logfiles to nagios-$DATE-00.log solved this problem. The cgis now use
the data from these files.

Resolution:

Edit the cgiutils.c on line 1576. Change the line

snprintf(buffer,buffer_length,"%snagios~~%02d~~%02d~~%d~~%02d.log",log_archive_path,t~~tm_mon+1,t>tm_mday,ttm_year+1900,t~~>tm_hour);

to

snprintf(buffer,buffer_length,"%sIcinga~~%02d~~%02d~~%d~~%02d.log",log_archive_path,t~~tm_mon+1,t>tm_mday,ttm_year+1900,t~~>tm_hour);


Relations:

[dev.icinga.com #134] icinga-0.8.3 OpenSUSE 10.2 make issue

This issue has been migrated from Redmine: https://dev.icinga.com/issues/134

Created by mfriedrich on 2009-09-02 22:06:47 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-10-23 12:23:44 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-23 12:23:44 +00:00 (in Redmine)


from the mailinglist:

On Mi, 2.09.2009, 22:22, Matthew Alton wrote:

Developers,

Here's me after running CPPFLAGS=-I/opt/include LDFLAGS=-L/opt/lib
./configure --prefix=/opt

:~/icinga-0.8.3> make all
cd ./base && make
make[1]: Entering directory `/home/nagios/icinga-0.8.3/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include -c -o broker.o
broker.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include -c -o nebmods.o
nebmods.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include -c -o checks.o
checks.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include -c -o config.o
config.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include -c -o commands.o
commands.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include -c -o events.o
events.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include -c -o flapping.o
flapping.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -I/opt/include -c -o logging.o
logging.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
In file included from ../common/../include/macros.h:26,
from ../common/macros.c:25:
../common/../include/config.h:338:21: error: dbi/dbi.h: No such file or
directory
make[1]: ***** [macros-base.o] Error 1
make[1]: Leaving directory `/home/nagios/icinga-0.8.3/base'
make: ***** [all] Error 2

Long story short, I add "-I/opt/include" (to pick up dbi/dbi.h) to every
occurrence
of "CFLAGS" in every Makefile in the build directory and we're off to the
races.

The problem was solved by:

"CFLAGS=-I/opt/include LDFLAGS=-L/opt/lib ./configure --prefix=/opt"

CPPFLAGS is the right place for -I/foo, though. Thoughts?

Here's the script that works:

#!/bin/bash

export CC=gcc
export LDFLAGS=-L/opt/lib
export CFLAGS=-I/opt/include

./configure --enable-idoutils \
--prefix=/opt \
--with-icinga-user=icinga \
--with-icinga-group=icinga \
--with-command-user=icinga \
--with-command-group=iciadm

Changesets

2009-09-03 09:27:49 +00:00 by hbaecker 3b7860d

configure support for manual libdbi detection

configure now supports the following new commands:

  --with-dbi-lib=DIR      sets location of the dbi library
  --with-dbi-inc=DIR      sets location of the dbi include files,

This should help to use libdbi source users to install idoutils

IssueID #134

[dev.icinga.com #85] Little Typo in configure Help (very, very, very low Prio)

This issue has been migrated from Redmine: https://dev.icinga.com/issues/85

Created by tredel on 2009-05-12 20:19:59 +00:00

Assignee: (none)
Status: Resolved (closed on 2009-05-13 17:59:04 +00:00)
Target Version: (none)
Last Update: 2009-05-13 17:59:04 +00:00 (in Redmine)


./configure --help
...
--enable-idoutils enaables dataase connectivitiy using idoutils

Tobias

Changesets

2009-05-13 17:57:05 +00:00 by hbaecker 365ed6c

Fix typo in configure script - closes #85

[dev.icinga.com #83] Test the idoutils against PostgreSQL

This issue has been migrated from Redmine: https://dev.icinga.com/issues/83

Created by martin on 2009-05-12 18:06:46 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-09-01 21:31:11 +00:00)
Target Version: 0.8.3
Last Update: 2009-09-01 21:31:11 +00:00 (in Redmine)


I'd really like to see idoutils be available with PostgreSQL.

Reasons:

a) We use postgres :) (at least I'm honest why)
b) I think postgres is superior to mysql as there are quite a couple of features in postgres that mysql doesn't have
c) The recent acquiring of Sun by Oracle doesn't exactly let me have more confidence in an open minded development of MySQL. At least not mid-to-long term.

thanks
martin

[dev.icinga.com #79] Change old favicon to Icinga

This issue has been migrated from Redmine: https://dev.icinga.com/issues/79

Created by jhein on 2009-05-09 22:04:25 +00:00

Assignee: (none)
Status: Resolved (closed on 2009-05-10 09:52:05 +00:00)
Target Version: (none)
Last Update: 2009-05-10 09:52:05 +00:00 (in Redmine)


In Icinga 0.7 there is still the old favicon visible. It needs to be replaced.

This is the location from the html sourcecode:

Changesets

2009-05-10 09:50:08 +00:00 by hbaecker 7bae76b

Change the favicon.ico - closes #79

[dev.icinga.com #95] ido2db segfaults if try to access non-existing tables

This issue has been migrated from Redmine: https://dev.icinga.com/issues/95

Created by hbaecker on 2009-05-15 19:07:01 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-06-07 10:33:32 +00:00)
Target Version: 0.8.2
Last Update: 2009-06-07 10:33:32 +00:00 (in Redmine)


GDB BT following:

#0  0x00007f3c7c57fd45 in strcasecmp () from /lib/libc.so.6
#1  0x00007f3c7cadde84 in dbi_conn_get_option_numeric () from /usr/lib/libdbi.so.0
#2  0x00007f3c7cade020 in _logquery () from /usr/lib/libdbi.so.0
#3  0x00007f3c7cade1aa in dbi_conn_query () from /usr/lib/libdbi.so.0
#4  0x0000000000411bbd in ndo2db_db_query (idi=0x7fff85119230, buf=0x999fd0 "INSERT INTO icinga_instances SET instance_name='default'") at db.c:499
#5  0x00000000004121f7 in ndo2db_db_hello (idi=0x7fff85119230) at db.c:306
#6  0x0000000000403cdd in ndo2db_handle_client_input (idi=0x7fff85119230, buf=) at ido2db.c:1104
#7  0x000000000040456c in ndo2db_check_for_client_input (idi=0x7fff85119230, dbuf=0x7fff85119660) at ido2db.c:1023
#8  0x00000000004046bf in ndo2db_handle_client_connection (sd=8) at ido2db.c:920
#9  0x000000000040488a in ndo2db_wait_for_connections () at ido2db.c:832
#10 0x00000000004052e2 in main (argc=, argv=0x7fff851198c8) at ido2db.c:159

[dev.icinga.com #51] whitespaces in macros by line breaking configuriations

This issue has been migrated from Redmine: https://dev.icinga.com/issues/51

Created by hbaecker on 2009-05-01 14:23:03 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-10-23 11:10:38 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-23 11:10:38 +00:00 (in Redmine)


Take a service object like this:

define service {
   service_description             os_linux_fs_check_ping
   host_name                       nagsrv
   use                             os_linux_default,pnp-preview-popup
   check_command                   \
       check_nrpe_arg!30!\

check_fs_ping!/mnt/account-p,/mnt/prepro-p,/mnt/webapp-ssl,/mnt/rollout-p
}

it will result in:

check_nrpe_arg!30!       check_fs_ping...

when used in macro '$SERVICECHECKCOMMAND$'

Attachments

[dev.icinga.com #32] Implementation of libdbi

This issue has been migrated from Redmine: https://dev.icinga.com/issues/32

Created by berk on 2009-04-16 16:40:50 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-10-19 16:56:17 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-19 16:56:17 +00:00 (in Redmine)


to be open for other database-systems like oracle, db2 and postgresql


Relations:

[dev.icinga.com #143] check for db trimming options

This issue has been migrated from Redmine: https://dev.icinga.com/issues/143

Created by mfriedrich on 2009-09-23 14:41:21 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-10-08 13:06:33 +00:00)
Target Version: 1.0 RC1
Last Update: 2009-10-08 13:06:33 +00:00 (in Redmine)


if db trimming option is missing by a config fault, the code sets e.g. max_hostchecks_age to 0L (ido2db.c) which results in a cleanup which is never been done.

                if (idi->dbinfo.max_hostchecks_age > 0L)
                        ndo2db_db_trim_data_table(idi, ndo2db_db_tablenames[NDO2DB_DBTABLE_HOSTCHECKS], "start_time", (time_t) ((unsigned long) current_time - idi->dbinfo.max_hostchecks_age));

that is temporarly not what's desired for housekeeping, instead we need to

  • define better default values for housekeeping
  • define them in the code and remove the condition - do faulty checking before, when setting the default instead

Relations:

[dev.icinga.com #102] RPM-Build errors

This issue has been migrated from Redmine: https://dev.icinga.com/issues/102

Created by tuxlife on 2009-05-20 12:31:52 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-05-20 18:35:05 +00:00)
Target Version: (none)
Last Update: 2009-05-20 18:35:05 +00:00 (in Redmine)


Hello,

I had a problem with building a RPM of icinga.

The reason was the epn_nagios.h under crontrib. epn_icinga.h was expected.

enclosed rename-patch and spec.diff respectively.

But Rename is certainly far cleaner ;)

Best regards,
Matthias

Attachments

  • move.diff tuxlife - 2009-05-20 12:31:52 +00:00 - Move-Patch
  • spec.diff tuxlife - 2009-05-20 12:32:17 +00:00 - Bad Spec-Diff

Changesets

2009-05-20 18:32:32 +00:00 by hbaecker 342ccf2

Fix missing file rename + typo in spec file

closes #102

[dev.icinga.com #31] Optimize housekeeping for IDOUtils

This issue has been migrated from Redmine: https://dev.icinga.com/issues/31

Created by berk on 2009-04-16 16:39:55 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2010-02-11 19:42:46 +00:00)
Target Version: 1.0.1
Last Update: 2010-02-11 19:42:46 +00:00 (in Redmine)


Changesets

2010-02-10 15:05:51 +00:00 by mfriedrich d2560c7

fix threaded cleaner, some oracle modifications

* threaded cleaner gets own db_hello
	- selects instance_name from database
	- if not found, return error
	- if found, insert conninfo and do the config stuff
          like normal db_hello
* threaded cleaner waits until db_hello returns ok
  otherwise sleeps 5 seconds

* fixed oracle instance_name insert into table instead of instance_id

* added oracle truncate/delete all tables scripts

refs #29,#31

Relations:

[dev.icinga.com #96] support for nagios plugins

This issue has been migrated from Redmine: https://dev.icinga.com/issues/96

Created by mfriedrich on 2009-05-17 14:19:05 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2009-05-18 13:25:54 +00:00)
Target Version: (none)
Last Update: 2009-05-18 13:25:54 +00:00 (in Redmine)


I've done a fresh icinga install on my debian based server.

./configure --enable-idoutils
make all
make install
make install-init
make install-comandmode
make install-config
make install-idoutils
make install-cgis
make install-html
make install-webconf

For the db stuff, add mysql user, mysql -u root -p dbname < mysql.sql
cp samples to ido2db.cfg idomod.cfg, adding mysqluser

For checking different services, the nagios plugins are required. The default package is for nagios, and the configure file points to /usr/local/nagios

by hacking the line to

ac_default_prefix=/usr/local/icinga

make install does work.

in libexec there is a plugin called 'check_nagios', this must be replaced directly by renaming the file and replacing within the file :%s/nagios/icinga/g in vim

[dev.icinga.com #94] [add] make ido-utils

This issue has been migrated from Redmine: https://dev.icinga.com/issues/94

Created by mfriedrich on 2009-05-15 13:47:51 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-05-18 13:24:47 +00:00)
Target Version: (none)
Last Update: 2009-05-18 13:24:47 +00:00 (in Redmine)


Actually, only make all compiles the idoutils, no seperate flag. As mentioned on icinga-devel, works better with gentoo.

patch provided by Tobias Scherbaum <[email protected]>


Makefile.in | 3 **+
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index e0817af..82ca210 100644
--- a/Makefile.in

**+ b/Makefile.in
@ -145,6 +145,9 @ config:
cgis:
cd $(SRC_CGI) &amp;&amp; $(MAKE)

+idoutils:

  • cd $(SRC_IDOUTILS) &amp;&amp; $(MAKE)

html:
cd $(SRC_HTM) &amp;&amp; $(MAKE)

Changesets

2009-05-18 09:58:08 +00:00 by hbaecker f2e3ad8

Fix makefile listing for idoutils - IssueID #94

[dev.icinga.com #29] Removing blocking behaviour in IDOUtils

This issue has been migrated from Redmine: https://dev.icinga.com/issues/29

Created by berk on 2009-04-16 16:39:01 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2010-02-11 19:04:21 +00:00)
Target Version: 1.0.1
Last Update: 2010-02-11 19:04:21 +00:00 (in Redmine)


Changesets

2010-02-10 15:05:51 +00:00 by mfriedrich d2560c7

fix threaded cleaner, some oracle modifications

* threaded cleaner gets own db_hello
	- selects instance_name from database
	- if not found, return error
	- if found, insert conninfo and do the config stuff
          like normal db_hello
* threaded cleaner waits until db_hello returns ok
  otherwise sleeps 5 seconds

* fixed oracle instance_name insert into table instead of instance_id

* added oracle truncate/delete all tables scripts

refs #29,#31

[dev.icinga.com #116] escape custom values

This issue has been migrated from Redmine: https://dev.icinga.com/issues/116

Created by hbaecker on 2009-06-30 21:05:17 +00:00

Assignee: hbaecker
Status: Resolved (closed on 2009-07-01 12:03:34 +00:00)
Target Version: 0.8.2
Last Update: 2009-07-01 12:03:34 +00:00 (in Redmine)


## nagios-devel, 12/19/2008 by Stephane

Hi

Here is a patch that escape strings stored in `customvariablestatus` and `customvariables`.

I add a ndo2db_save_custom_variables function (I don't like copy/paste) however this one could be splitted in two (one for each table).

Attachments

Changesets

2009-07-01 11:55:21 +00:00 by hbaecker 695b0d8

Escape customvariables before inserting into db

Thanks to Stephane for the patch.
IssueID #116

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.