[dev.icinga.com #3961] Services with no host mappings are not accepted #1256
Comments
Updated by mfriedrich on 2013-04-12 16:56:26 +00:00 by host mapping, you mean "grpA,!grpB" would create an empty value (no match) as foo is assigned to both hostgroups, right? |
Updated by viranch on 2013-04-12 19:54:13 +00:00 yes, grpA would add foo and !grpB will discard it back, resulting in empty value (no match) as you said - which is okay and should not result in an error IMO. |
Updated by mfriedrich on 2013-04-13 13:51:00 +00:00 ok, sounds logical, though it must be tested properly in order not break with other stuff. i might reschedule that for an 1.9.1 if there's no time left for 1.9 - thanks for the patch. |
Updated by viranch on 2013-04-15 09:16:06 +00:00 JFYI a short explanation of the patch in case needed by anyone: prior to the patch- what the patch does- EDIT: another FYI- the patch is against the current master. |
Updated by mfriedrich on 2013-04-21 10:11:55 +00:00
|
Updated by mfriedrich on 2013-04-21 10:12:07 +00:00
|
Updated by mfriedrich on 2013-04-21 10:12:47 +00:00 i do not have time anymore before 1.9 happens, but we may fix it properly in next for 1.10 and backport into 1.9.x then. |
Updated by mfriedrich on 2013-06-22 16:13:44 +00:00 sorry for the delay. applied the patch, added a modified test config into tests/etc/3961.cfg - reproducable output, and none with the patch applied. thanks for your contribution! |
Updated by Anonymous on 2013-06-22 16:44:08 +00:00
Applied in changeset 347c328. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/3961
Created by viranch on 2013-04-12 13:53:33 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2013-06-22 16:44:08 +00:00)
Target Version: 1.10
Last Update: 2013-06-22 16:44:08 +00:00 (in Redmine)
dummy config:
this fails with the error: "Could not expand hostgroups and/or hosts specified in service" although services with no host mappings should be accepted (and simply ignored). however, the error does not happen if I have a service assigned to an empty hostgroup:
// above config is fine for icinga
attaching patch for a possible fix.
Attachments
Changesets
2013-06-22 16:11:08 +00:00 by (unknown) 347c328
The text was updated successfully, but these errors were encountered: