Ad Widget

Collapse

php interface bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alj
    Senior Member
    • Aug 2006
    • 188

    #1

    php interface bug

    If you use host group in the "Actions" rule (like Host group = "groupname"), then if somebody deletes that host group, the reference to that group will not be deleted from Actions rules. Then if you try to edit Action rules to delete rule host group it will display error instead of rule and wont let you to delete it.

    The only fix for that right now is to go to the database and manually add group with the same group id as it had before, then you will be able to remove it from the Actions rule.
  • netod
    Member
    • Nov 2006
    • 36

    #2
    Originally posted by alj
    If you use host group in the "Actions" rule (like Host group = "groupname"), then if somebody deletes that host group, the reference to that group will not be deleted from Actions rules. Then if you try to edit Action rules to delete rule host group it will display error instead of rule and wont let you to delete it.

    The only fix for that right now is to go to the database and manually add group with the same group id as it had before, then you will be able to remove it from the Actions rule.

    What versions are you running?

    Comment

    • alj
      Senior Member
      • Aug 2006
      • 188

      #3
      Originally posted by netod
      What versions are you running?
      1.1.2 (debian package)

      Comment

      • NOB
        Senior Member
        Zabbix Certified Specialist
        • Mar 2007
        • 469

        #4
        Problem still in 1.4.5

        Originally posted by alj
        If you use host group in the "Actions" rule (like Host group = "groupname"), then if somebody deletes that host group, the reference to that group will not be deleted from Actions rules. Then if you try to edit Action rules to delete rule host group it will display error instead of rule and wont let you to delete it.

        The only fix for that right now is to go to the database and manually add group with the same group id as it had before, then you will be able to remove it from the Actions rule.
        Hi

        this bug seems to be present in 1.4.5 !

        It's exactly as described above, except that now the actions incl. the conditions are shown and therefore the fix is different (easier):

        It is sufficient to delete the condition with Hostgroup = "" from the
        list of conditions and save the action.

        This should be fixed with a patch, I think.
        I am not quite sure whether this action is still executed by the ZABBIX-Server.

        I'll test this bug in 1.6 and report whether it's still in there.

        Of what great value is the audit log:

        Code:
        2008.Aug.25 10:15:00	Admin	Host group	Deleted	Host group [SLA3_ZABBIX Server ] [4]
        And the display of something like no hostgroup with id [4] !

        Regards

        Norbert.

        Comment

        • NOB
          Senior Member
          Zabbix Certified Specialist
          • Mar 2007
          • 469

          #5
          Similar bug in 1.6 present

          Hi

          this bug no longer happens in 1.6, instead the whole action is deleted

          I created a new hostgroup "ActionTests" with no hosts in it.
          Then I created an Action "ActionTest" with three conditions:
          1. Trigger description like "none"
          2. Hostgroup = ActionTests
          3. Hostgroup = otherGroup-containing-one-monitored-Server


          and one operation: send mail to a non-empty user group.

          If I delete the (empty) hostgroup "ActionTests" the action is
          no longer shown in the user interface.


          Normally I would expect that the condition containing the deleted
          hostgroup is removed from the action and that's it.

          EDIT: Further investigations show, that the actions are still in the database (MySQL), just not shown
          on the Configuration/Actions web page !

          Regards

          Norbert.
          Last edited by NOB; 15-10-2008, 13:23. Reason: Further investigations

          Comment

          Working...