diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-01-25 18:24:02 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-01-25 18:24:02 +0000 |
commit | 96820f29575fdcabaefa1532ac9bdf6db0d86a7f (patch) | |
tree | 9f4436c64e1aecbe5499dcfbf5fb29e315ffa080 /frontends/php/report1.php | |
parent | 05c2eb8ce34285ff930ff9afc3284a897288d5bb (diff) | |
download | zabbix-96820f29575fdcabaefa1532ac9bdf6db0d86a7f.tar.gz zabbix-96820f29575fdcabaefa1532ac9bdf6db0d86a7f.tar.xz zabbix-96820f29575fdcabaefa1532ac9bdf6db0d86a7f.zip |
- fixed report1.php to work under FreeBSD (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1206 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report1.php')
-rw-r--r-- | frontends/php/report1.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/report1.php b/frontends/php/report1.php index 048fd94f..560d559d 100644 --- a/frontends/php/report1.php +++ b/frontends/php/report1.php @@ -40,7 +40,7 @@ <td>Is zabbix_suckerd running ?</td> <?php $str="<font color=\"AA0000\">No</font>"; - if(exec("ps -ef|grep zabbix_suckerd|grep -v grep|wc -l")>0) + if( (exec("ps -ef|grep zabbix_suckerd|grep -v grep|wc -l")>0) || (exec("ps -ax|grep zabbix_suckerd|grep -v grep|wc -l")>0) ) { $str="<font color=\"00AA00\">Yes</font>"; } @@ -52,7 +52,7 @@ <td>Is zabbix_trapperd running ?</td> <?php $str="<font color=\"AA0000\">No</font>"; - if(exec("ps -ef|grep zabbix_trapperd|grep -v grep|wc -l")>0) + if( (exec("ps -ef|grep zabbix_trapperd|grep -v grep|wc -l")>0) || (exec("ps -ax|grep zabbix_trapperd|grep -v grep|wc -l")>0) ) { $str="<font color=\"00AA00\">Yes</font>"; } |