PDA

View Full Version : Path for Web-panel ZABBIX server is running


AlexWhite
07-06-2006, 10:56
My zabbix_server always is down???
No. Thanks this patch

--- /root/zabbix/zabbix-1.1/frontends/php/include/config.inc.php Fri Jun 2 14:11:36 2006
+++ config.inc.php Wed Jun 7 10:46:57 2006
@@ -1861,7 +1861,7 @@
global $DB_TYPE;
$status = array();
// server
- if( (exec("ps -ef|grep zabbix_server|grep -v grep|wc -l")>0) || (exec("ps -ax|grep zabbix_server|grep -v grep|wc -l")>0) )
+ if( (exec("ps -ef|grep zabbix_server|grep -v grep|wc -l")>0) || (exec("ps -ax|grep zabbix_server|wc -l")>1) )
{
$status["zabbix_server"] = S_YES;
}

My system is FreeBSD 6.1

epifanova
07-06-2006, 13:07
# uname -r
5.4-RELEASE-p7
# su www
$ whoami
www
$ ps -ax|grep zabbix_server|grep -v grep|wc -l
0
$exit
exit
# ps -ax|grep zabbix_server|grep -v grep|wc -l
16
# sysctl security.bsd.see_other_uids
security.bsd.see_other_uids: 0
# su www
$ sudo ps -ax|grep zabbix_server|grep -v grep|wc -l
16

your method is not a patch. It's don't working, becouse it alweys shows "YES" irrespective of real status of zabbix server.

you must set security.bsd.see_other_uids=1
or configure sudo whithout password prompt and then change "ps ... " to "sudo ps .. " in config.inc.php

AlexWhite
07-06-2006, 13:47
When this in FAQ, maybe :) I don't know. :mad:
Verry Thanks.