Ad Widget

Collapse

Zabbix fails to remove hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jcesario
    Member
    • Apr 2009
    • 65

    #1

    Zabbix fails to remove hosts

    I have an install of zabbix 1.8.1

    The problem is Im trying to delete some things and Zabbix doesnt seem to be doing anything about it except spinning its wheels

    Im currently trying to delete about 50 hosts with 996 items each attached to them through templates. When I hit the "Delete Selected" the web server just sits there and spins (with barely any resource utilization as well) - And then eventually times out.

    I would chalk this up to PHP except that when I watch the database I dont see any relevant DELETE queries that match the queries specified in function delete_host from include/hosts.inc.php. So Zabbix is stuck doing something else.

    ** On another note: clear and unlinking the template did not remove items from hosts and instead orphanned them all
  • zabbix_zen
    Senior Member
    • Jul 2009
    • 426

    #2
    You're probably exhausting the PHP memory limit with the mass operation.
    Aren't you getting any
    "Fatal error: Allowed memory size of [###] bytes exhausted (tried to allocate [###] bytes) in [path]/[file].php on line [###]"
    error ?

    You'll probably be successful mass updating a smaller set of hosts at a time.

    Anyways go to php.ini file
    (get it's location through
    php -i | grep php.ini)

    and check your
    memory_limit =

    if too small (<32Mb) you can increase it though bear in mind your Webserver will become sluggish and is expected to suck quite an amount of memory when processing this kind of operations.
    Now restart your Webserver.


    About the side note,
    that's the excepted behaviour.

    Comment

    • jcesario
      Member
      • Apr 2009
      • 65

      #3
      Were not throwing any memory exhaustion errors.

      [root@zabbix_web ~]# grep "memory_limit" /usr/local/zabbix_lighttpd/etc/php.ini
      memory_limit = 1024M


      If that is accepted behavior. How can I remove items from hosts using templates?

      Comment

      Working...