Zabbix не бачить процесси

Zabbix-agent не бичить процесси, але вони запущені.

/usr/local/bin/zabbix_get -s 127.0.0.1 -p 10050 -k “proc.num[sshd].last(0)”
0

# ps -ax| grep sshd
637 ?? Is 0:13.32 /usr/sbin/sshd

Проблема в цьому….
sysctl -a | grep security.bsd.see_other

security.bsd.see_other_gids: 0
security.bsd.see_other_uids: 0

Якшо на сервері не критично поміняти то міняємо.
Якщо критично то..


To fix this simply change the user name in the following files after you run ./configure [options]

configure:
int
main ()
{

char *user = "flzabbix"; < --- change this to your new runtime user
initgroups(user, 0);

;
return 0;
}

configure.in:
[
char *user = "flzabbix"; <--- change this to your new runtime user
initgroups(user, 0);
],

src/libs/zbxnix/daemon.c
char user[9] = "flzabbix"; <--- change this to your new runtime user
*** Remember this is C and you must appropriately size the char array based on the length of your new runtime user.

Now make install and Zabbix will run as the proper user.

 

 

 

Варіант №2

Перевірено для zabbix2

vim zabbix_agentd.conf

Знаходимо

AllowRoot

Міняємо на

AllowRoot=1

 

 

Comments are closed.