summaryrefslogtreecommitdiffstats
path: root/frontends/php/actionconf.php
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-09-14 11:06:27 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-09-14 11:06:27 +0000
commit8755f9643aba3cffc5320321618fbe8e7b78b73b (patch)
tree61f79790fee2222b1d3c5c3cd3faf09c9de8f168 /frontends/php/actionconf.php
parent220a18752f8fefdd0af90ccd17cc045c2e6ae1a6 (diff)
downloadzabbix-8755f9643aba3cffc5320321618fbe8e7b78b73b.tar.gz
zabbix-8755f9643aba3cffc5320321618fbe8e7b78b73b.tar.xz
zabbix-8755f9643aba3cffc5320321618fbe8e7b78b73b.zip
Initial integration of distributed monitoring.
Changes 3196:HEAD of branches/distributed git-svn-id: svn://svn.zabbix.com/trunk@3306 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/actionconf.php')
-rw-r--r--frontends/php/actionconf.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/frontends/php/actionconf.php b/frontends/php/actionconf.php
index afc9a1a6..d28bcbd6 100644
--- a/frontends/php/actionconf.php
+++ b/frontends/php/actionconf.php
@@ -179,7 +179,8 @@
/* GROUP ACTIONS */
elseif(isset($_REQUEST["group_enable"])&&isset($_REQUEST["g_actionid"]))
{
- $result=DBselect("select distinct actionid from actions");
+ $result=DBselect("select distinct actionid from actions".
+ " where mod(actionid,100)=".$ZBX_CURNODEID);
while($row=DBfetch($result))
{
if(!in_array($row["actionid"], $_REQUEST["g_actionid"])) continue;
@@ -190,7 +191,8 @@
}
elseif(isset($_REQUEST["group_disable"])&&isset($_REQUEST["g_actionid"]))
{
- $result=DBselect("select distinct actionid from actions");
+ $result=DBselect("select distinct actionid from actions".
+ " where mod(actionid,100)=".$ZBX_CURNODEID);
while($row=DBfetch($result))
{
if(!in_array($row["actionid"], $_REQUEST["g_actionid"])) continue;
@@ -201,7 +203,8 @@
}
elseif(isset($_REQUEST["group_delete"])&&isset($_REQUEST["g_actionid"]))
{
- $result=DBselect("select distinct actionid from actions");
+ $result=DBselect("select distinct actionid from actions".
+ " where mod(actionid,100)=".$ZBX_CURNODEID);
while($row=DBfetch($result))
{
if(!in_array($row["actionid"], $_REQUEST["g_actionid"])) continue;
@@ -250,7 +253,9 @@
S_REPEATS,
S_STATUS));
- $result=DBselect("select * from actions where actiontype=".$_REQUEST["actiontype"]." order by actiontype, source");
+ $result=DBselect("select * from actions where actiontype=".$_REQUEST["actiontype"].
+ " and mod(actionid,100)=".$ZBX_CURNODEID.
+ " order by actiontype, source");
while($row=DBfetch($result))
{
$conditions="";