Ad Widget

Collapse

Error to update a host configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exkg
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Mar 2007
    • 718

    #1

    Error to update a host configuration

    Hi,


    We have a error when update a host:

    Code:
    PHP Fatal error:  Wrong parameters for Exception([string $exception [, long $code ]]) in /var/www/html/zabbix-1.8/api/classes/class.apiexception.php on line 27

    []s,
    Luciano
    --
    Luciano Alves
    www.zabbix.com
    Brazil | México | Argentina | Colômbia | Chile
    Zabbix Performance Tuning
  • imarinkovic
    Junior Member
    • Nov 2009
    • 20

    #2
    Doesn't happen with rev. 9303

    Comment

    • brian
      Member
      • Dec 2009
      • 45

      #3
      The same error message for me.
      Using revision 9303.
      Host has only 1 template linked, and it is in 2 host groups.

      I cannot remove one usergroup from the user...


      Until it is fixed, I can remove the user from the group using the host group window...

      Comment

      • imarinkovic
        Junior Member
        • Nov 2009
        • 20

        #4
        In my case, works when remove or add the host to a group from the host update page...

        Comment

        • brian
          Member
          • Dec 2009
          • 45

          #5
          As the monitored host was was renamed, I wanted to rename the host in Zabbix also.
          Using rev. 9309

          * Undefined variable: host[/var/www/zabbix/api/classes/class.chost.php:904]
          * Invalid argument supplied for foreach()[/var/www/zabbix/api/classes/class.chost.php:965]
          * reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/zabbix/api/classes/class.chost.php:989]
          * DBcondition Error: [hostid] =
          * [ CHost::update ] reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/zabbix/api/classes/class.chost.php:989]
          Last edited by brian; 14-01-2010, 12:23.

          Comment

          • brian
            Member
            • Dec 2009
            • 45

            #6
            I went back to the released 1.8 version, and it works without any error.

            I was able to remove the host from the group and assign it to another.

            Comment

            • mvrk
              Member
              • Oct 2008
              • 71

              #7
              I've got the same problem on build 9485

              Comment

              • brian
                Member
                • Dec 2009
                • 45

                #8
                Using build 9512 I tried it on another zabbix server, and it is the same...

                Steps:

                1. Create host "testhost" with nothing special (only name, dns name and group is set)
                2. Rename host to "testhost2" gives the above error.

                If I go to host's configuration page and do nothing, only hit "Save" I get the following error:
                Code:
                Fatal error: Wrong parameters for Exception([string $exception [, long $code ]]) in /var/www/zabbix/api/classes/class.apiexception.php on line 27
                However I can delete the host without error.
                Last edited by brian; 23-01-2010, 01:35.

                Comment

                • mvrk
                  Member
                  • Oct 2008
                  • 71

                  #9
                  Anyone opened a bug on the tracker?

                  Comment

                  • brian
                    Member
                    • Dec 2009
                    • 45

                    #10
                    Originally posted by mvrk
                    Anyone opened a bug on the tracker?
                    I think not.


                    With 1.8 rev 9622 I get different errors:

                    * Undefined variable: host[/var/www/zabbix/api/classes/class.chost.php:904]
                    * Invalid argument supplied for foreach()[/var/www/zabbix/api/classes/class.chost.php:965]
                    * reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/zabbix/api/classes/class.chost.php:989]
                    * DBcondition Error: [hostid] =
                    * [ CHost::update ] reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object[/var/www/zabbix/api/classes/class.chost.php:989]

                    Comment

                    • brian
                      Member
                      • Dec 2009
                      • 45

                      #11
                      Seems to fixed.


                      For me it is ok with rev. 9709.

                      Comment

                      Working...