Ad Widget

Collapse

Fresh install, can't add new host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jerelev
    Junior Member
    • Feb 2015
    • 15

    #1

    Fresh install, can't add new host

    Hi
    I'm new in zabbix.
    I've just installed the latest version and i'm following the manual.
    I've created the DB and everything looks fine

    Now i'm trying to add a new host as mentioned here:


    Here is the error i get:
    ERROR: Cannot add host
    Undefined index: ip [ in /srv/www/htdocs/zabbix/hosts.php:420]
    Undefined index: dns [ in /srv/www/htdocs/zabbix/hosts.php:420]
    Undefined index: value [ in /srv/www/htdocs/zabbix/hosts.php:452]
    Incorrect arguments passed to function.

    I tried to look for an answer and there are some similar error but i couldn't find a suitable solution.

    Also got the following error when trying to add a "media" to a new user as mentionned here https://www.zabbix.com/documentation...ickstart/login
    Undefined index: sendto [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:194]
    Undefined index: period [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:195]
    Undefined index: severity [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:196]
    Undefined index: active [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:197]
    Undefined index: severity [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:200]
    Undefined index: severity [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:200]
    Undefined index: severity [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:200]
    Undefined index: severity [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:200]
    Undefined index: severity [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:200]
    Undefined index: severity [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:200]
    Undefined index: sendto [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:209]
    Undefined index: period [users.php:380 → CView->render() → include() in /srv/www/htdocs/zabbix/include/views/administration.users.edit.php:210]

    And when updating this new user permissions:
    ERROR: Cannot update user
    Invalid method parameters.


    Please help

    Thanks
    Jeremie.
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hi Jeremie,

    Welcome to Zabbix forums!

    Strange that you got such errors there. What version of Zabbix server and frontend are you using?

    What manual did you follow to install it?

    Best Regards,
    Ingus

    Comment

    • jerelev
      Junior Member
      • Feb 2015
      • 15

      #3
      I've downloaded a source package zabbix-2.4.3.tar.gz

      Working on SLES 11 SP2
      uname -a
      Linux iinf103 3.0.51-0.7.9-default #1 SMP Thu Nov 29 22:12:17 UTC 2012 (f3be9d0) x86_64 x86_64 x86_64 GNU/Linux

      Packages:
      iinf103 Linux #zypper search apache | grep ^i
      i | apache2 | The Apache Web Server Version 2.2 | package
      i | apache2-mod_php53 | PHP5 Module for Apache 2.0 | package
      i | apache2-prefork | Apache 2 "prefork" MPM (Multi-Processing Module) | package
      i | apache2-utils | Apache 2 utilities | package
      iinf103 Linux #zypper search php | grep ^i
      i | apache2-mod_php53 | PHP5 Module for Apache 2.0 | package
      i | php53 | PHP5 Core Files | package
      i | php53-bcmath | PHP5 Core Files | package
      i | php53-ctype | PHP5 Extension Module | package
      i | php53-dom | PHP5 Extension Module | package
      i | php53-gd | PHP5 Extension Module | package
      i | php53-gettext | PHP5 Extension Module | package
      i | php53-mbstring | PHP5 Extension Module | package
      i | php53-mysql | PHP5 Extension Module | package
      i | php53-pdo | PHP5 Extension Module | package
      i | php53-sockets | PHP5 Extension Module | package
      i | php53-xmlreader | PHP5 Extension Module | package
      i | php53-xmlwriter | PHP5 Extension Module | package
      i | php53-sockets | PHP5 Extension Module | package


      Installed with online manual.
      Thanks!!
      Last edited by jerelev; 22-02-2015, 10:56.

      Comment

      • jerelev
        Junior Member
        • Feb 2015
        • 15

        #4
        Anyone please?

        Comment

        • ingus.vilnis
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2014
          • 908

          #5
          Hi Jeremie,

          Could you please do the following:
          1. enable debug mode for your user

          2. try to create a new host and get to the point where you see the errors
          3. click on "Debug" link in top right corner
          4. post the full debug output here (in a file perhaps)
          5. verify that in frontend install step 2 you had everything green

          6. post the output of phpinfo.

          With this information we can try to find some additional clues what is actually wrong on your setup. Anyways you shouldn't see any of these error if the installation would be totally successful.

          Best Regards,
          Ingus

          Comment

          • jerelev
            Junior Member
            • Feb 2015
            • 15

            #6
            both files attached
            Thanks!!
            Attached Files

            Comment

            • ingus.vilnis
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Mar 2014
              • 908

              #7
              Hi,

              Thank you for the files!

              We found out from the debug that the interfaces for the host are not created correctly. However we were not able to reproduce the error.

              To understand this, can you please show a screenshot with the host configuration when you get the error or maybe even record the actions you did to reproduce?

              What database engine are you using?
              Can you show the database config file as well?

              Best Regards,
              Ingus

              Comment

              • ingus.vilnis
                Senior Member
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Mar 2014
                • 908

                #8
                Hi Jeremie,

                It is possible that PHP 5.3 on SLES is causing your problems.

                Could you try to manually upgrade PHP to 5.4 or later and see if it helps?

                Best Regards,
                Ingus

                Comment

                • jerelev
                  Junior Member
                  • Feb 2015
                  • 15

                  #9
                  Screenshot attached

                  /etc/my.cnf content:
                  [client]
                  port = 3306
                  socket = /var/lib/mysql/mysql.sock
                  [mysqld]
                  port = 3306
                  socket = /var/lib/mysql/mysql.sock
                  skip-locking
                  key_buffer = 16M
                  max_allowed_packet = 1M
                  table_cache = 64
                  sort_buffer_size = 512K
                  net_buffer_length = 8K
                  read_buffer_size = 256K
                  read_rnd_buffer_size = 512K
                  myisam_sort_buffer_size = 8M
                  skip-federated
                  server-id = 1
                  [safe_mysqld]
                  log-error=/var/lib/mysql/mysqld.log
                  [mysqldump]
                  quick
                  max_allowed_packet = 16M
                  [mysql]
                  no-auto-rehash
                  [isamchk]
                  key_buffer = 20M
                  sort_buffer_size = 20M
                  read_buffer = 2M
                  write_buffer = 2M
                  [myisamchk]
                  key_buffer = 20M
                  sort_buffer_size = 20M
                  read_buffer = 2M
                  write_buffer = 2M
                  [mysqlhotcopy]
                  interactive-timeout
                  [mysqld_multi]
                  mysqld = /usr/bin/mysqld_safe
                  mysqladmin = /usr/bin/mysqladmin
                  log = /var/log/mysqld_multi.log



                  I will try to update php
                  Thanks!
                  Attached Files

                  Comment

                  Working...