I'm not sure if the queries are terribly unoptimized or if I'm doing something wrong with my PHP configuration. The server's no dog, it's a quad Xeon with 4 GB of RAM and a rather fast RAID 0+1 DB volume.
Edit: Neat, it looks like something is actually making PHP segfault:
Code: Select all
[Thu Aug 21 17:25:01 2008] [error] [client 143.48.3.13] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /usr/share/cacti/plugins/npc/lib/Doctrine/Table.php on line 1645, referer: http://monitor1/cacti/plugins/npc/npc.php?module=layoutDev&action=drawLayout
[Thu Aug 21 17:25:02 2008] [notice] child pid 19025 exit signal Segmentation fault (11)
Edit 2: I keep getting this:
Code: Select all
SELECT n.hostgroup_id AS n__hostgroup_id, n.instance_id AS n__instance_id, n.config_type AS n__config_type, n.hostgroup_object_id AS n__hostgroup_object_id, n.alias AS n__alias, n3.hoststatus_id AS n3__hoststatus_id, n3.host_object_id AS n3__host_object_id, n3.current_state AS n3__current_state, n3.output AS n3__output, n7.instance_id AS n7__instance_id, n7.instance_name AS n7__instance_name, n5.name1 AS n5__0, n6.name1 AS n6__1 FROM npc_hostgroups n INNER JOIN npc_hostgroup_members n2 ON n.hostgroup_id = n2.hostgroup_id INNER JOIN npc_hostgroup_members n4 ON n.hostgroup_id = n4.hostgroup_id INNER JOIN npc_hoststatus n3 ON n2.host_object_id = n3.host_object_id INNER JOIN npc_objects n5 ON n.hostgroup_object_id = n5.object_id INNER JOIN npc_objects n6 ON n3.host_object_id = n6.object_id INNER JOIN npc_instances n7 ON n.instance_id = n7.instance_id ORDER BY n5__0 ASC, n6__1 ASC;