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 #9989] Service apply without name possible #3316

Closed
icinga-migration opened this issue Aug 24, 2015 · 2 comments
Closed

[dev.icinga.com #9989] Service apply without name possible #3316

icinga-migration opened this issue Aug 24, 2015 · 2 comments
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by jflach on 2015-08-24 14:37:18 +00:00

Assignee: gbeutner
Status: Resolved (closed on 2016-05-11 07:49:08 +00:00)
Target Version: 2.4.8
Last Update: 2016-05-11 07:49:08 +00:00 (in Redmine)

Icinga Version: 2.4.0
Backport?: Not yet backported
Include in Changelog: 1

jflach@jflach-i2dev ~$ icinga2 console                                                                                                                                130 ↵  
Icinga (version: v2.3.0-477-g4d74b33)
<1> => PluginDir = ""
null
<2> => include 
information/ConfigCompiler: Compiling config file: /home/jflach/i2/share/icinga2/include/itl
information/ConfigCompiler: Compiling config file: /home/jflach/i2/share/icinga2/include/command.conf
information/ConfigCompiler: Compiling config file: /home/jflach/i2/share/icinga2/include/command-icinga.conf
information/ConfigCompiler: Compiling config file: /home/jflach/i2/share/icinga2/include/timeperiod.conf
information/Utility: Loading library 'libmethods.so'
null
<3> => include 
information/ConfigCompiler: Compiling config file: /home/jflach/i2/share/icinga2/include/plugins
information/ConfigCompiler: Compiling config file: /home/jflach/i2/share/icinga2/include/command-plugins.conf
null
<4> => commit_objects()
information/ConfigItem: Committing config items
information/ConfigItem: Instantiated 50 CheckCommands.
information/ConfigItem: Instantiated 1 IcingaApplication.
information/ConfigItem: Triggering Start signal for config items
information/ConfigItem: Activated all objects.
true
<5> => object Host "foo"{ check_command = "hostalive" }
null
<6> => apply Service { assign where true, check_command = "ping4"}
null
<7> => commit_objects()
information/ConfigItem: Committing config items
information/ConfigItem: Instantiated 1 Service.
information/ConfigItem: Instantiated 1 Host.
information/ConfigItem: Triggering Start signal for config items
information/ConfigItem: Activated all objects.
true
<8> => get_objects(Service)
[null]
<9> => s = get_objects(Service)<0>
                               ^^^
syntax error, unexpected T_STRING_ANGLE, expecting $end
<10> =>  s = get_objects(Service)<0>
                                 ^^^
syntax error, unexpected T_STRING_ANGLE, expecting $end
<11> => s = get_objects(Service)[0]
null
<12> => s
Object of type 'icinga::Service'
<13> => s.name
"foo!"

Changesets

2016-05-11 07:48:18 +00:00 by gbeutner b9fdb3b

Make sure that object names aren't empty

fixes #9989

2016-05-12 09:11:02 +00:00 by gbeutner bd89693

Make sure that object names aren't empty

fixes #9989
@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-05-11 07:48:51 +00:00

  • Status changed from New to Assigned
  • Assigned to set to gbeutner
  • Target Version set to 2.4.8

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-05-11 07:49:08 +00:00

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

Applied in changeset b9fdb3b.

@icinga-migration icinga-migration added bug Something isn't working area/configuration DSL, parser, compiler, error handling labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.4.8 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant