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 #8777] Server error: Service not found exception when service name begins or ends with whitespaces #1492

Closed
icinga-migration opened this issue Mar 17, 2015 · 4 comments
Labels
area/monitoring Affects the monitoring module bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by essener61 on 2015-03-17 10:01:27 +00:00

Assignee: elippmann
Status: Resolved (closed on 2015-05-18 11:40:03 +00:00)
Target Version: 2.0.0-rc1
Last Update: 2015-05-18 11:40:03 +00:00 (in Redmine)


in der Hosts.conf ist folgende Konfiguration hinterlegt :

/* Partition f */
vars.windisk [" Disk f"] ={
nscp_variable = "USEDDISKSPACE"
nscp_params =["f"]
nscp_warn = "85%"
nscp_crit = "90%"
}

in der Services.conf wird folgende Applyregel angezogen

apply Service for (windisk => config in host.vars.windisk) {
import "generic-service"
display_name = +host.vars.Responsible_OS “ FS “+windisk
check_command = "nscp"
vars +=config
assign where host.vars.os == "Windows" && (host.address || host.address6)
}

Der Check offensichtlich auch regelmäßig ausgeführt und im ICINGAWEB2 (2.0.0. beta3) mit dem entsprechenden Displayname angezeigt.
Klicke ich nun auf den Service um Einzelheiten zu sehen erscheint im Detailbereich des Services

Server error: Service not found

Service not found


#0 /usr/share/icingaweb2/library/Icinga/Web/Controller/ActionController.php(95): Monitoring_ServiceController->init()
#1 /usr/share/icingaweb2/library/vendor/Zend/Controller/Dispatcher/Standard.php(277): Icinga\Web\Controller\ActionController->__construct(Object(Icinga\Web\Request), Object(Icinga\Web\Response), Array)
#2 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Zend_Controller_Dispatcher_Standard->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#3 /usr/share/icingaweb2/library/Icinga/Application/Web.php(154): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#4 /usr/share/icingaweb2/library/Icinga/Application/webrouter.php(111): Icinga\Application\Web->dispatch()
#5 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/icin...')
#6 {main}

Im Debuglog ist kein Eintrag zu finden, der auf den Fehler hindeutet

Attachments

Changesets

2015-04-08 07:31:11 +00:00 by elippmann 6e6aabe

Don't trim filter expressions

Leading and trailing whitespaces may be significant for comparison.

refs #8777

2015-04-08 08:14:42 +00:00 by elippmann a185107

Trim off leading whitespaces from filter values when searching

Because whitespaces may be used when searching for entities using the query string format "column = value" we have to trim off leading whitespaces from filter values.
This loses the possibility for search for entities with leading whitespaces of course.

refs #8777

2015-04-08 08:18:42 +00:00 by elippmann 09acddb

Fix filter tests not taking whitespaces into account

refs #8777

2015-05-18 11:36:19 +00:00 by elippmann 2f98733

Merge branch 'bugfix/significant-whitespaces-8777'

fixes #8777

Relations:

@icinga-migration
Copy link
Author

Updated by essener61 on 2015-03-17 10:47:26 +00:00

Mar 17 11:46:22 VMFAILICI icingaweb2[31246]: Zend_Controller_Action_Exception in /usr/share/icingaweb2/modules/monitoring/application/controllers/ServiceController.php:33 with message: Service not found
Mar 17 11:46:22 VMFAILICI icingaweb2[31246]: Stacktrace: #0 /usr/share/icingaweb2/library/Icinga/Web/Controller/ActionController.php(95): Monitoring_ServiceController~~init()#12#1 /usr/share/icingaweb2/library/vendor/Zend/Controller/Dispatcher/Standard.php(277): Icinga\Web\Controller\ActionController>__construct(Object(Icinga\Web\Request), Object(Icinga\Web\Response), Array)#12#2 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Zend_Controller_Dispatcher_Standarddispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))#12#3 /usr/share/icingaweb2/library/Icinga/Application/Web.php(154): Zend_Controller_Front~~>dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))#12#4 /usr/share/icingaweb2/library/Icinga/Application/webrouter.php(111): Icinga\Application\Web->dispatch()#12#5 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/icin...')#12#6 {main}

Das habe ich gerade im Syslog gefunden

@icinga-migration
Copy link
Author

Updated by elippmann on 2015-03-30 11:53:57 +00:00

  • Subject changed from _Server error: Service not found _ to _Server error: Service not found exception when service name begins or ends with whitespaces _
  • Category changed from Dashboard to Monitoring
  • Status changed from New to Assigned
  • Assigned to set to elippmann
  • Target Version set to 2.0.0-rc1

Hi,

Thanks for the report. We'll fix it asap.

Cheers,
Eric

@icinga-migration
Copy link
Author

Updated by elippmann on 2015-05-18 11:40:03 +00:00

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

Applied in changeset 2f98733.

@icinga-migration
Copy link
Author

Updated by elippmann on 2015-05-20 11:37:41 +00:00

  • Duplicated set to 9006

@icinga-migration icinga-migration added bug Something isn't working area/monitoring Affects the monitoring module labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.0.0-rc1 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/monitoring Affects the monitoring module bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant