]> granicus.if.org Git - icinga2/log
icinga2
9 years agoFix uninitialized field in the CheckerComponent class
Gunnar Beutner [Tue, 3 Mar 2015 08:14:15 +0000 (09:14 +0100)]
Fix uninitialized field in the CheckerComponent class

9 years agoFix file descriptor leak in SetDaemonIO
Gunnar Beutner [Tue, 3 Mar 2015 06:36:43 +0000 (07:36 +0100)]
Fix file descriptor leak in SetDaemonIO

9 years agoRemove the return type for Utility::LoadExtensionLibrary
Gunnar Beutner [Tue, 3 Mar 2015 06:18:47 +0000 (07:18 +0100)]
Remove the return type for Utility::LoadExtensionLibrary

9 years agoUse _exit instead of Exit in Application::SetResourceLimits
Gunnar Beutner [Mon, 2 Mar 2015 16:19:41 +0000 (17:19 +0100)]
Use _exit instead of Exit in Application::SetResourceLimits

9 years agoAmericaniz(s)e colo(u)r in troubleshoot cli
Jean Flach [Mon, 2 Mar 2015 15:37:07 +0000 (16:37 +0100)]
Americaniz(s)e colo(u)r in troubleshoot cli

9 years agoFix deadlock in DB IDO and external command events
Michael Friedrich [Mon, 2 Mar 2015 15:20:22 +0000 (16:20 +0100)]
Fix deadlock in DB IDO and external command events

refs #8511

9 years agoFix troubleshooting cli hint text
Michael Friedrich [Mon, 2 Mar 2015 14:28:02 +0000 (15:28 +0100)]
Fix troubleshooting cli hint text

refs #3446

9 years agoFix output formatting in troubleshoot cli command
Michael Friedrich [Mon, 2 Mar 2015 13:37:58 +0000 (14:37 +0100)]
Fix output formatting in troubleshoot cli command

refs #3446

9 years agoFix compiler warnings
Michael Friedrich [Mon, 2 Mar 2015 13:10:26 +0000 (14:10 +0100)]
Fix compiler warnings

9 years agoUpdate PerfdataValue::Parse to ignore invalid warn, crit, min, and max values
Jason Young [Sun, 1 Mar 2015 16:04:48 +0000 (11:04 -0500)]
Update PerfdataValue::Parse to ignore invalid warn, crit, min, and max values

... instead of generating exception so that metric values can
still be passed to the graphing backend.
Also update icinga-perfdata tests to reflect these changes.

refs #5043

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
9 years agoRemove unused variable in PkiUtility::SignCsr
Gunnar Beutner [Mon, 2 Mar 2015 12:32:08 +0000 (13:32 +0100)]
Remove unused variable in PkiUtility::SignCsr

9 years agoRemove unnecessary SubStr call
Gunnar Beutner [Mon, 2 Mar 2015 12:30:37 +0000 (13:30 +0100)]
Remove unnecessary SubStr call

9 years agoRemove redundant checks in check_service
Gunnar Beutner [Mon, 2 Mar 2015 12:23:26 +0000 (13:23 +0100)]
Remove redundant checks in check_service

9 years agoRemove redundant checks in check_procs
Gunnar Beutner [Mon, 2 Mar 2015 12:22:37 +0000 (13:22 +0100)]
Remove redundant checks in check_procs

9 years agoRemove redundant checks
Gunnar Beutner [Mon, 2 Mar 2015 12:20:31 +0000 (13:20 +0100)]
Remove redundant checks

9 years agoRemove redundant check
Gunnar Beutner [Mon, 2 Mar 2015 12:18:08 +0000 (13:18 +0100)]
Remove redundant check

9 years agoRemove unused variable
Gunnar Beutner [Mon, 2 Mar 2015 12:13:57 +0000 (13:13 +0100)]
Remove unused variable

9 years agoAdd more colour to troubleshoot cli
Jean-Marcel Flach [Mon, 2 Mar 2015 12:16:53 +0000 (13:16 +0100)]
Add more colour to troubleshoot cli

9 years agoImplement the assignment operator for the Value class
Gunnar Beutner [Mon, 2 Mar 2015 11:55:48 +0000 (12:55 +0100)]
Implement the assignment operator for the Value class

9 years agoRemove unused variables
Gunnar Beutner [Mon, 2 Mar 2015 11:52:37 +0000 (12:52 +0100)]
Remove unused variables

9 years agoFix incorrect operator in Value::operator^
Gunnar Beutner [Mon, 2 Mar 2015 11:51:11 +0000 (12:51 +0100)]
Fix incorrect operator in Value::operator^

9 years agoFix incorrect header length check in NetString::ReadStringFromStream
Gunnar Beutner [Mon, 2 Mar 2015 11:46:16 +0000 (12:46 +0100)]
Fix incorrect header length check in NetString::ReadStringFromStream

9 years agoFix incorrect assignment in Logger::EnableConsoleLog
Gunnar Beutner [Mon, 2 Mar 2015 11:44:52 +0000 (12:44 +0100)]
Fix incorrect assignment in Logger::EnableConsoleLog

9 years agoRemove redundant function
Gunnar Beutner [Mon, 2 Mar 2015 11:44:15 +0000 (12:44 +0100)]
Remove redundant function

9 years agoMake copy constructor private for the Log class
Gunnar Beutner [Mon, 2 Mar 2015 11:42:33 +0000 (12:42 +0100)]
Make copy constructor private for the Log class

9 years agoFix incorrect return type for Application::Run
Gunnar Beutner [Mon, 2 Mar 2015 11:41:02 +0000 (12:41 +0100)]
Fix incorrect return type for Application::Run

9 years agoFix incorrect format specifier for fprintf
Gunnar Beutner [Mon, 2 Mar 2015 11:40:02 +0000 (12:40 +0100)]
Fix incorrect format specifier for fprintf

9 years agoFix whitespace
Jean-Marcel Flach [Mon, 2 Mar 2015 11:35:58 +0000 (12:35 +0100)]
Fix whitespace

9 years agoWork on troubleshoot cli
Jean-Marcel Flach [Mon, 2 Mar 2015 11:17:34 +0000 (12:17 +0100)]
Work on troubleshoot cli

Changes the format timestamps are displayed.
--include-vars and --include-objects now print to console if --console
is given.
Also fixes two memory leaks.

fixes #8564 #8563
refs 3446

9 years agoFix incorrect assignment in PluginUtility::ExecuteCommand
Gunnar Beutner [Mon, 2 Mar 2015 09:10:46 +0000 (10:10 +0100)]
Fix incorrect assignment in PluginUtility::ExecuteCommand

Coverity Bug ID: 1272344

9 years agoFix uninitialized fields in the StreamLogger class
Gunnar Beutner [Mon, 2 Mar 2015 09:09:21 +0000 (10:09 +0100)]
Fix uninitialized fields in the StreamLogger class

Coverity Bug ID: 1272329

9 years agoFix uninitialized field in the LivestatusScriptFrame class
Gunnar Beutner [Mon, 2 Mar 2015 09:07:27 +0000 (10:07 +0100)]
Fix uninitialized field in the LivestatusScriptFrame class

Coverity Bug ID: 1272326

9 years agoFix uninitialized field in the LivestatusQuery class
Gunnar Beutner [Mon, 2 Mar 2015 09:00:09 +0000 (10:00 +0100)]
Fix uninitialized field in the LivestatusQuery class

Coverity Bug ID: 1272325

9 years agoFix uninitialized field in the Checkable class
Gunnar Beutner [Mon, 2 Mar 2015 08:58:29 +0000 (09:58 +0100)]
Fix uninitialized field in the Checkable class

Coverity Bug ID: 1272323

9 years agoFix uninitialized field in the ScriptError class
Gunnar Beutner [Mon, 2 Mar 2015 08:57:19 +0000 (09:57 +0100)]
Fix uninitialized field in the ScriptError class

Coverity Bug ID: 1272322

9 years agoFix uninitialized field in the ApiListener class
Gunnar Beutner [Mon, 2 Mar 2015 08:56:09 +0000 (09:56 +0100)]
Fix uninitialized field in the ApiListener class

Coverity Bug ID: 1272321

9 years agoRemove unreachable code
Gunnar Beutner [Mon, 2 Mar 2015 08:54:00 +0000 (09:54 +0100)]
Remove unreachable code

Coverity Bug ID: 1272319

9 years agoFix leak in SocketEvents::Threadproc
Gunnar Beutner [Mon, 2 Mar 2015 08:51:24 +0000 (09:51 +0100)]
Fix leak in SocketEvents::Threadproc

Coverity Bug ID: 1272338

9 years agoFix uninitialized fields
Gunnar Beutner [Mon, 2 Mar 2015 08:46:41 +0000 (09:46 +0100)]
Fix uninitialized fields

Coverity Bug ID: 1272331

9 years agoFix uninitialized variable in DaemonUtility::ValidateConfigFiles
Gunnar Beutner [Mon, 2 Mar 2015 08:41:18 +0000 (09:41 +0100)]
Fix uninitialized variable in DaemonUtility::ValidateConfigFiles

Coverity bug ID: 1272330

9 years agoAdd message concerning file compression to troubleshoot cli
Jean-Marcel Flach [Mon, 2 Mar 2015 08:35:04 +0000 (09:35 +0100)]
Add message concerning file compression to troubleshoot cli

9 years agoAdd missing fclose() in mkembedconfig
Gunnar Beutner [Mon, 2 Mar 2015 06:34:11 +0000 (07:34 +0100)]
Add missing fclose() in mkembedconfig

9 years agoFix: check_memory tool shows incorrect memory size on windows
Paul Richards [Sun, 1 Mar 2015 21:23:36 +0000 (21:23 +0000)]
Fix: check_memory tool shows incorrect memory size on windows

On a PC with >4GB of RAM, check_memory utility returns
an incorrect amount of RAM:

MEMORY OK - 100% free | memory=4096MB;;;0;4096

This patch uses GlobalMemoryStatusEx instead of GlobalMemoryStatus
[https://msdn.microsoft.com/en-us/library/windows/desktop/aa366586%28v=vs.85%29.aspx]

Following patch output of check_memory is as follows:

MEMORY OK - 32.4873% free | memory=5312MB;;;0;16351

fixes #8559

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
9 years agoMake sure the WQ status timer is stopped properly
Gunnar Beutner [Sun, 1 Mar 2015 21:25:14 +0000 (22:25 +0100)]
Make sure the WQ status timer is stopped properly

refs #8550

9 years agoAdd --gc-sections to the linker flags
Gunnar Beutner [Sun, 1 Mar 2015 14:29:57 +0000 (15:29 +0100)]
Add --gc-sections to the linker flags

9 years agoEnable unity builds by default
Gunnar Beutner [Sun, 1 Mar 2015 00:27:42 +0000 (01:27 +0100)]
Enable unity builds by default

9 years agoFix another crash in Timer::Call
Gunnar Beutner [Sat, 28 Feb 2015 07:43:49 +0000 (08:43 +0100)]
Fix another crash in Timer::Call

fixes #8550

9 years agoRefactor the API timeout timer
Gunnar Beutner [Fri, 27 Feb 2015 19:18:20 +0000 (20:18 +0100)]
Refactor the API timeout timer

refs #8554

9 years agoMake sure that the timeout timer gets destroyed properly
Gunnar Beutner [Fri, 27 Feb 2015 18:54:41 +0000 (19:54 +0100)]
Make sure that the timeout timer gets destroyed properly

refs #8554

9 years agoUse the main threadpool to disconnect API clients
Gunnar Beutner [Fri, 27 Feb 2015 17:31:37 +0000 (18:31 +0100)]
Use the main threadpool to disconnect API clients

refs #8554

9 years agoFix a deadlock in WorkQueue::WorkerThreadProc
Gunnar Beutner [Fri, 27 Feb 2015 17:29:21 +0000 (18:29 +0100)]
Fix a deadlock in WorkQueue::WorkerThreadProc

refs #8554

9 years agoFix a crash in Timer::Reschedule
Gunnar Beutner [Fri, 27 Feb 2015 15:44:33 +0000 (16:44 +0100)]
Fix a crash in Timer::Reschedule

refs #8554

9 years agoFix crash in SocketEvents::ThreadProc
Gunnar Beutner [Fri, 27 Feb 2015 14:53:38 +0000 (15:53 +0100)]
Fix crash in SocketEvents::ThreadProc

fixes #8554

9 years agoFix whitespace
Jean-Marcel Flach [Fri, 27 Feb 2015 14:12:45 +0000 (15:12 +0100)]
Fix whitespace

9 years agoUse RequestShutdown with exitcode instead of Application::Exit
Jean-Marcel Flach [Thu, 26 Feb 2015 16:09:45 +0000 (17:09 +0100)]
Use RequestShutdown with exitcode instead of Application::Exit

fixes #8436

9 years agoFix null pointer dereference in ApiClient::TimeoutTimerHandler
Gunnar Beutner [Fri, 27 Feb 2015 13:09:46 +0000 (14:09 +0100)]
Fix null pointer dereference in ApiClient::TimeoutTimerHandler

fixes #8553

9 years agoAdd colours to troubleshoot cli
Jean-Marcel Flach [Fri, 27 Feb 2015 13:09:26 +0000 (14:09 +0100)]
Add colours to troubleshoot cli

refs #3446

9 years agoFix a crash in Timer::Call
Gunnar Beutner [Fri, 27 Feb 2015 13:07:12 +0000 (14:07 +0100)]
Fix a crash in Timer::Call

fixes #8473

9 years agoFix another potential hang in TlsStream::Handshake
Gunnar Beutner [Fri, 27 Feb 2015 08:03:23 +0000 (09:03 +0100)]
Fix another potential hang in TlsStream::Handshake

refs #8550

9 years agoFix a deadlock in ApiClient::Disconnect
Gunnar Beutner [Thu, 26 Feb 2015 16:23:06 +0000 (17:23 +0100)]
Fix a deadlock in ApiClient::Disconnect

fixes #8549

9 years agoDon't send heartbeats during log replay
Gunnar Beutner [Thu, 26 Feb 2015 13:59:39 +0000 (14:59 +0100)]
Don't send heartbeats during log replay

fixes #8461
refs #8485

9 years agoImplement 'else if'
Gunnar Beutner [Thu, 26 Feb 2015 12:50:25 +0000 (13:50 +0100)]
Implement 'else if'

fixes #8548

9 years agoUpdate documentation
Jean Flach [Thu, 26 Feb 2015 12:37:15 +0000 (13:37 +0100)]
Update documentation

9 years agoFix a crash in ApiClient::TimeoutTimerHandler
Gunnar Beutner [Thu, 26 Feb 2015 12:30:59 +0000 (13:30 +0100)]
Fix a crash in ApiClient::TimeoutTimerHandler

refs #8485

9 years agoChange behaviour of troubleshoot cli parameters
Jean-Marcel Flach [Thu, 26 Feb 2015 12:29:55 +0000 (13:29 +0100)]
Change behaviour of troubleshoot cli parameters

9 years agoFix another crash in SocketEvents::Register
Gunnar Beutner [Thu, 26 Feb 2015 12:11:50 +0000 (13:11 +0100)]
Fix another crash in SocketEvents::Register

fixes #8547

9 years agoImprove log message for cluster connection timeouts
Gunnar Beutner [Thu, 26 Feb 2015 12:09:13 +0000 (13:09 +0100)]
Improve log message for cluster connection timeouts

refs #8485

9 years agoAdd --include-vars and --include-objects troubleshoot cli
Jean-Marcel Flach [Thu, 26 Feb 2015 11:40:49 +0000 (12:40 +0100)]
Add --include-vars and --include-objects troubleshoot cli

refs #3446

9 years agoClose client connections if we haven't received any messages in some time
Gunnar Beutner [Thu, 26 Feb 2015 11:41:47 +0000 (12:41 +0100)]
Close client connections if we haven't received any messages in some time

refs #8485

9 years agoMake sure that the 'connecting' flag is reset properly
Gunnar Beutner [Thu, 26 Feb 2015 10:25:01 +0000 (11:25 +0100)]
Make sure that the 'connecting' flag is reset properly

refs #8485

9 years agoFix Livestatus tests on Windows
Michael Friedrich [Thu, 26 Feb 2015 10:04:57 +0000 (11:04 +0100)]
Fix Livestatus tests on Windows

fixes #8486

9 years agoBuild fix for Windows
Gunnar Beutner [Thu, 26 Feb 2015 08:02:45 +0000 (09:02 +0100)]
Build fix for Windows

refs #8486

9 years agoRemove --include-objects option from troubleshoot for now
Jean-Marcel Flach [Wed, 25 Feb 2015 14:39:17 +0000 (15:39 +0100)]
Remove --include-objects option from troubleshoot for now

9 years agoUpdate troubleshoot documentation with manual steps
Jean Flach [Wed, 25 Feb 2015 14:33:11 +0000 (15:33 +0100)]
Update troubleshoot documentation with manual steps

9 years agoDocumentation: Fix missing livestatus tables
Michael Friedrich [Wed, 25 Feb 2015 14:28:30 +0000 (15:28 +0100)]
Documentation: Fix missing livestatus tables

refs #7361

9 years agoMake sure that the scheduled start time for downtimes isn't ignored
Gunnar Beutner [Wed, 25 Feb 2015 14:18:35 +0000 (15:18 +0100)]
Make sure that the scheduled start time for downtimes isn't ignored

fixes #6959

9 years agoAdd documentation for the troubleshoot command
Jean Flach [Wed, 25 Feb 2015 14:01:03 +0000 (15:01 +0100)]
Add documentation for the troubleshoot command

refs #3446

9 years agoFix a crash in TlsStream::Close
Gunnar Beutner [Wed, 25 Feb 2015 13:35:49 +0000 (14:35 +0100)]
Fix a crash in TlsStream::Close

fixes #8537

9 years agoChange Livestatus query log level to 'notice'
Michael Friedrich [Wed, 25 Feb 2015 13:11:59 +0000 (14:11 +0100)]
Change Livestatus query log level to 'notice'

fixes #8527

9 years agoFix valgrind warning in ExternalCommandListener::CommandPipeThread
Gunnar Beutner [Wed, 25 Feb 2015 13:05:31 +0000 (14:05 +0100)]
Fix valgrind warning in ExternalCommandListener::CommandPipeThread

fixes #8536

9 years agoFix a missing import
Jean-Marcel Flach [Wed, 25 Feb 2015 13:03:15 +0000 (14:03 +0100)]
Fix a missing import

9 years agoFix null pointer dereference in ApiEvents::RepositoryTimerHandler
Gunnar Beutner [Wed, 25 Feb 2015 12:59:18 +0000 (13:59 +0100)]
Fix null pointer dereference in ApiEvents::RepositoryTimerHandler

fixes #8535

9 years agoFix some whitespace
Jean-Marcel Flach [Wed, 25 Feb 2015 12:49:41 +0000 (13:49 +0100)]
Fix some whitespace

9 years agoFix another problem where Icinga doesn't detect that a cluster connection is dead
Gunnar Beutner [Wed, 25 Feb 2015 12:21:38 +0000 (13:21 +0100)]
Fix another problem where Icinga doesn't detect that a cluster connection is dead

refs #8485

9 years agoAdd check command for check_webinject
Blerim Sheqa [Wed, 25 Feb 2015 08:52:45 +0000 (09:52 +0100)]
Add check command for check_webinject

fixes #8429

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
9 years agoMake sure that Notification objects are activated after Host/Service objects
Gunnar Beutner [Wed, 25 Feb 2015 11:43:03 +0000 (12:43 +0100)]
Make sure that Notification objects are activated after Host/Service objects

fixes #8517

9 years agoFix troubleshoot not writing everything to file
Jean-Marcel Flach [Wed, 25 Feb 2015 10:08:05 +0000 (11:08 +0100)]
Fix troubleshoot not writing everything to file

9 years agoAdd a new test script to the ITL
Gunnar Beutner [Wed, 25 Feb 2015 09:17:26 +0000 (10:17 +0100)]
Add a new test script to the ITL

9 years agoRename troubleshootCollectCommand to troubleshootCommand
Jean-Marcel Flach [Wed, 25 Feb 2015 08:51:31 +0000 (09:51 +0100)]
Rename troubleshootCollectCommand to troubleshootCommand

9 years agoChange file type for ido-*.conf to config in the RPM spec file
Gunnar Beutner [Wed, 25 Feb 2015 08:30:51 +0000 (09:30 +0100)]
Change file type for ido-*.conf to config in the RPM spec file

fixes #8397

9 years agoReplace spaces with tabs in command-plugins.conf
Gunnar Beutner [Tue, 24 Feb 2015 20:56:32 +0000 (21:56 +0100)]
Replace spaces with tabs in command-plugins.conf

fixes #8520

9 years agoMerge branch 'Freeaqingme-snmpCheckCommandOptions'
Gunnar Beutner [Tue, 24 Feb 2015 20:52:47 +0000 (21:52 +0100)]
Merge branch 'Freeaqingme-snmpCheckCommandOptions'

fixes #8498

9 years agoAdd .mailmap alias for Freeaqingme
Dolf Schimmel (Freeaqingme) [Tue, 24 Feb 2015 20:41:29 +0000 (21:41 +0100)]
Add .mailmap alias for Freeaqingme

refs #8498

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
9 years agoAdd documentation for the new SNMP ITL custom attributes
Dolf Schimmel (Freeaqingme) [Tue, 24 Feb 2015 20:07:53 +0000 (21:07 +0100)]
Add documentation for the new SNMP ITL custom attributes

refs #8498

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
9 years agoITL: Add support for GETNEXT in SNMP CheckCommand
Dolf Schimmel (Freeaqingme) [Sat, 21 Feb 2015 13:25:15 +0000 (14:25 +0100)]
ITL: Add support for GETNEXT in SNMP CheckCommand

refs #8498

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
9 years agoITL: Implement various options for the 'snmp' CheckCommand, including mib-list
Dolf Schimmel (Freeaqingme) [Fri, 20 Feb 2015 20:33:52 +0000 (21:33 +0100)]
ITL: Implement various options for the 'snmp' CheckCommand, including mib-list

refs #8498

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
9 years agoDon't convert loop variables to string when using apply-for
Gunnar Beutner [Tue, 24 Feb 2015 16:51:16 +0000 (17:51 +0100)]
Don't convert loop variables to string when using apply-for

fixes #8519

9 years agoRemove leading slash and extra blank line in constants.conf.cmake
Tobias von der Krone [Tue, 24 Feb 2015 15:36:05 +0000 (16:36 +0100)]
Remove leading slash and extra blank line in constants.conf.cmake

refs #7209

9 years agoAdd missing locks in ApiListener::UpdateConfigDir
Gunnar Beutner [Tue, 24 Feb 2015 15:03:32 +0000 (16:03 +0100)]
Add missing locks in ApiListener::UpdateConfigDir

9 years agoImplement support for the 'Changelog' custom field in changelog.py
Gunnar Beutner [Tue, 24 Feb 2015 12:45:36 +0000 (13:45 +0100)]
Implement support for the 'Changelog' custom field in changelog.py