Ad Widget

Collapse

Web scenarios not creating host items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wax66
    Junior Member
    • Apr 2009
    • 27

    #1

    Web scenarios not creating host items

    Running Ubuntu 10.10 server,
    mysql 5.1.41-3ubuntu12.10,
    apache 2.2.14-5ubuntu8.4,
    Zabbix Server v1.8.5 (revision 19050)

    This is pretty much a fresh install, but let me give you some basic steps I did to get to this point.

    Installed the system, installed pre-reqs, installed zabbix 1.8.1 through apt-get.

    Compiled 1.8.5 with
    ./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl --enable-agent

    Installed the binaries manually from the src/* directories, overwriting the apt-get ones.
    Installed the current front-end and changed the zabbix.conf.php to a symbolic link to /etc/zabbix/dbconfig.conf (some weird Ubuntu configuration).

    Everything works at this point, with one exception. Web checks do not create Items in the host so that I can create triggers off them.

    I thought, "Okay, this must be due to missing db parts, since I didn't upgrade the db at all from 1.8.1's config."

    So I dropped the db, re-created it, and executed the .sql files in schema/ and then the data and images sql files in data/.

    Everything works again, with the same exception. The web checks still don't create items in the host.

    I can add web checks, see them checking, look at the graphs, etc, but no items show up in the items table of the database;

    For example:

    Code:
    mysql> select * from httpstep;
    +------------+------------+--------+----+-----------------------+---------+-------+----------+--------------+
    | httpstepid | httptestid | name   | no | url                   | timeout | posts | required | status_codes |
    +------------+------------+--------+----+-----------------------+---------+-------+----------+--------------+
    |          1 |          1 | Google |  1 | http://www.google.com |      15 |       |          | 200          |
    +------------+------------+--------+----+-----------------------+---------+-------+----------+--------------+
    1 row in set (0.00 sec)
    
    mysql> select * from httpstep;
    +------------+------------+--------+----+-----------------------+---------+-------+----------+--------------+
    | httpstepid | httptestid | name   | no | url                   | timeout | posts | required | status_codes |
    +------------+------------+--------+----+-----------------------+---------+-------+----------+--------------+
    |          1 |          1 | Google |  1 | http://www.google.com |      15 |       |          | 200          |
    +------------+------------+--------+----+-----------------------+---------+-------+----------+--------------+
    1 row in set (0.00 sec)
    
    mysql> select * from items where description like "%Google%";
    Empty set (0.02 sec)
    
    mysql>
    Am I either missing something, such as a change? I did notice "[ZBX-3414] expressions for triggers with web items are marked as error in trigger wizard", but can't tell if that means that web test items are gone or not.

    Anyways... any help would be appreciated.
    -Ron
  • untergeek
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 512

    #2
    I don't know what to tell you. I just added some of my own WebScenarios on 1.8.5 and they are working just fine.

    Comment

    • wax66
      Junior Member
      • Apr 2009
      • 27

      #3
      Attempt 2: Same result

      Okay, so I tried everything from scratch with a new CentOS 5.6 VM, and sadly I got the same result. A new web scenario is still not creating items in the associated hosts's item list.

      New configuration:
      CentOS release 5.6 (Final)
      mysql-server.x86_64 5.0.77-4.el5_5.5
      httpd.x86_64 2.2.3-45.el5.centos.1
      Zabbix Server v1.8.5 (revision 19050)

      All CentOS repo RPMs with the exception of iksemel 1.3.1

      Here's my install script, which doesn't include the manual steps (obviously).

      Code:
      VERSION="1.8.5"
      
      yum install zlib-devel mysql-devel glibc-devel curl-devel gcc automake mysql libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel mysql-server php-bcmath php-gd php-mysql php-mbstring
      
      mkdir rpms
      cd rpms
      
      wget http://packages.sw.be/iksemel/iksemel-1.3-1.el5.rf.x86_64.rpm
      wget http://packages.sw.be/iksemel/iksemel-1.3-1.el5.rf.i386.rpm
      wget http://packages.sw.be/iksemel/iksemel-devel-1.3-1.el5.rf.x86_64.rpm
      wget http://packages.sw.be/iksemel/iksemel-devel-1.3-1.el5.rf.i386.rpm
      
      rpm -i *.rpm
      
      cd ..
      
      mkdir zabbix
      cd zabbix
      
      wget "http://prdownloads.sourceforge.net/zabbix/zabbix-${VERSION}.tar.gz?download"
      tar -zxvf zabbix-${VERSION}.tar.gz
      
      cd zabbix-${VERSION}
      
      ./configure --enable-server --with-mysql --with-net-snmp --with-jabber --with-libcurl --with-openipmi --enable-agent --with-ldap
      
      make install
      
      cd ..
      
      groupadd -g 166 zabbix
      useradd -m -s /bin/bash -g 166 -u 166 zabbix
      
      service mysqld start
      
      # Accept all default values and set the root pw
      mysql_secure_installation
      
      echo "Sleeping 5..."
      sleep 5
      
      mysql -uroot -pmypassword < sql/create-db.sql
      mysql -uroot -pmypassword zabbix < zabbix-1.8.5/create/schema/mysql.sql
      mysql -uroot -pmypassword zabbix < zabbix-1.8.5/create/data/data.sql
      mysql -uroot -pmypassword zabbix < zabbix-1.8.5/create/data/images_mysql.sql
      
      mkdir /etc/zabbix
      mkdir -p /home/zabbix/logs
      cp zabbix-1.8.5/misc/conf/{zabbix_server.conf,zabbix_agentd.conf} /etc/zabbix/
      
      chmod -R 660 /etc/zabbix
      chmod 770 /etc/zabbix
      chown -R zabbix:zabbix /etc/zabbix /home/zabbix
      
      cp init.d/* /etc/init.d/
      
      cp -R zabbix-${VERSION}/frontends/php/* /var/www/html/
      
      
      # In php.ini, be sure to:
      # Set these values:
      # date.timezone = America/New_York
      # memory_limit = 256M
      # post_max_size = 32M
      # upload_max_filesize = 16M
      # max_execution_time = 600
      # max_input_time = 600
      
      
      # Final Steps
      chkconfig zabbix_server on
      chkconfig zabbix_agent on
      chkconfig httpd on
      As you can see, it's pretty generic, nothing too special.

      The web checks work fine, I get graphs, etc.

      Any ideas?
      -Ron

      Comment

      • untergeek
        Senior Member
        Zabbix Certified Specialist
        • Jun 2009
        • 512

        #4
        I'm so sorry. I misunderstood.

        They pretty much stopped putting the web items in the "Latest Data" several point versions back, perhaps even with 1.8.0.

        To view latest data for Web items, you need to go to Monitoring -> Web and select the proper group & host.

        To make triggers, you still need to go to the proper trigger page for the host, and you can browse those items in the trigger UI still. They will show up there when you go to add them, just not in the hosts's regular "Latest Data" page.

        Comment

        • wax66
          Junior Member
          • Apr 2009
          • 27

          #5
          Ahhhh! Thank you!

          The last version I had ran at my previous job was 1.8.4, but of course that was an upgrade and I may not have even added any web checks after that point, so that clears things up.

          Thanks a ton, untergeek!
          -Ron

          Comment

          Working...