Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #7784] Implement the DISABLE_HOST_SVC_NOTIFICATIONS and ENABLE_HOST_SVC_NOTIFICATIONS commands #2300

Closed
icinga-migration opened this issue Nov 21, 2014 · 7 comments
Labels
area/notifications Notification events enhancement New feature or request
Milestone

Comments

@icinga-migration
Copy link

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

Created by Jaracz on 2014-11-21 13:28:14 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2015-02-11 15:50:03 +00:00)
Target Version: 2.3.0
Last Update: 2015-02-11 15:50:03 +00:00 (in Redmine)


DISABLE/ENABLE_HOST_SVC_NOTIFICATIONS are not working anymore.

[2014-11-21 14:10:16 +0100] information/ExternalCommandListener: Executing external command: [1416575416] DISABLE_HOST_SVC_NOTIFICATIONS;ca
[2014-11-21 14:10:16 +0100] warning/ExternalCommandListener: External command failed.../icinga/externalcommandprocessor.cpp(140): Throw in function static void icinga::ExternalCommandProcessor::Execute(double, const icinga::String&, const std::vector >&)
Dynamic exception type: N5boost16exception_detail10clone_implINS0_19error_info_injectorISt16invalid_argumentEEEE
std::exception::what: The external command 'DISABLE_HOST_SVC_NOTIFICATIONS' does not exist.
[PN6icinga10StackTraceE] =
        (0) libbase.so: void boost::throw_exception >(boost::exception_detail::error_info_injector const&) (+0x16f) [0x7f9f7dfd8c9f]
        (1) libicinga.so: icinga::ExternalCommandProcessor::Execute(double, icinga::String const&, std::vector > const&) (+0x236) [0x7f9f7cb843b6]
        (2) libicinga.so: icinga::ExternalCommandProcessor::Execute(icinga::String const&) (+0x24b) [0x7f9f7cb8c78b]
        (3) libcompat.so: icinga::ExternalCommandListener::CommandPipeThread(icinga::String const&) (+0x1ef) [0x7f9f7c367a8f]
        (4) libboost_thread-mt.so.5: thread_proxy (+0x77) [0x31a2e0ad47]
        (5) /lib64/libpthread.so.0() [0x319e6079d1]
        (6) libc.so.6: clone (+0x6d) [0x319e2e886d]


[PN6icinga12ContextTraceE] =


[2014-11-21 14:10:16 +0100] information/ExternalCommandListener: Executing external command: [1416575416] DISABLE_HOST_NOTIFICATIONS;ca





[2014-11-21 14:12:42 +0100] information/ExternalCommandListener: Executing external command: [1416575562] ENABLE_HOST_SVC_NOTIFICATIONS;ca
[2014-11-21 14:12:42 +0100] warning/ExternalCommandListener: External command failed.../icinga/externalcommandprocessor.cpp(140): Throw in function static void icinga::ExternalCommandProcessor::Execute(double, const icinga::String&, const std::vector >&)
Dynamic exception type: N5boost16exception_detail10clone_implINS0_19error_info_injectorISt16invalid_argumentEEEE
std::exception::what: The external command 'ENABLE_HOST_SVC_NOTIFICATIONS' does not exist.
[PN6icinga10StackTraceE] =
        (0) libbase.so: void boost::throw_exception >(boost::exception_detail::error_info_injector const&) (+0x16f) [0x7f9f7dfd8c9f]
        (1) libicinga.so: icinga::ExternalCommandProcessor::Execute(double, icinga::String const&, std::vector > const&) (+0x236) [0x7f9f7cb843b6]
        (2) libicinga.so: icinga::ExternalCommandProcessor::Execute(icinga::String const&) (+0x24b) [0x7f9f7cb8c78b]
        (3) libcompat.so: icinga::ExternalCommandListener::CommandPipeThread(icinga::String const&) (+0x1ef) [0x7f9f7c367a8f]
        (4) libboost_thread-mt.so.5: thread_proxy (+0x77) [0x31a2e0ad47]
        (5) /lib64/libpthread.so.0() [0x319e6079d1]
        (6) libc.so.6: clone (+0x6d) [0x319e2e886d]


[PN6icinga12ContextTraceE] =


[2014-11-21 14:12:42 +0100] information/ExternalCommandListener: Executing external command: [1416575562] ENABLE_HOST_NOTIFICATIONS;ca

DISABLE/ENABLE_SVC_NOTIFICATIONS work normally.

Before update (2.1.x) everything was OK. I couldn't find anything about it in ChangeLog to 2.2.0, so it could be a bug.

Best regards,

Jaracz

Changesets

2015-02-11 15:45:52 +00:00 by (unknown) 2ae06b7

Implement {EN,DIS}ABLE_HOST_SVC_NOTIFICATIONS commands

fixes #7784
@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-11-21 13:46:37 +00:00

  • Tracker changed from Bug to Feature
  • Subject changed from DISABLE/ENABLE_HOST_SVC_NOTIFICATIONS not working anymore to Implement the DISABLE_HOST_SVC_NOTIFICATIONS and ENABLE_HOST_SVC_NOTIFICATIONS commands

The real problem is that 2.1.x just didn't log an error message for invalid commands. The DISABLE_HOST_SVC_NOTIFICATIONS and ENABLE_HOST_SVC_NOTIFICATIONS commands just aren't implemented (yet) and 2.1.x silently ignored them.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-09 09:46:52 +00:00

  • Target Version set to 2.3.0

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-09 12:26:49 +00:00

  • Estimated Hours set to 3

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-09 12:42:02 +00:00

  • Assigned to set to mfriedrich

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-09 13:21:34 +00:00

  • Status changed from New to Assigned

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-11 15:42:49 +00:00

nbmif /etc/icinga2 # echo "[`date +%s`] DISABLE_HOST_SVC_NOTIFICATIONS;nbmif.int.netways.de" >> /var/run/icinga2/cmd/icinga2.cmd 
nbmif /etc/icinga2 # echo "[`date +%s`] ENABLE_HOST_SVC_NOTIFICATIONS;nbmif.int.netways.de" >> /var/run/icinga2/cmd/icinga2.cmd 
nbmif /etc/icinga2 # echo "[`date +%s`] DISABLE_HOST_SVC_NOTIFICATIONS;nbmif.int.netways.de" >> /var/run/icinga2/cmd/icinga2.cmd 

@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-02-11 15:50:03 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 2ae06b7.

@icinga-migration icinga-migration added enhancement New feature or request area/notifications Notification events labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/notifications Notification events enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant