Ad Widget

Collapse

Agent can't retrieve process and interfaces information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mad
    Junior Member
    • Aug 2007
    • 3

    #1

    Agent can't retrieve process and interfaces information

    Hello,

    As said in the title, the zabbix agent can't retrieve process and interfaces informations.

    Here are a part of the log file :
    4267:20070804:194208 Requested [net.if.out[eth0,bytes]]
    4267:20070804:194208 Sending back [ZBX_NOTSUPPORTED]

    In fact, non root users can't read /proc/{pid}/ and /proc/net/dev on my system :
    mad:/$ cat: /proc/net/dev: Permission denied

    The problem is :
    dr-x------ 5 root root 0 2007-08-04 21:38 net
    A chmod +r /proc/net/dev in root doesn't change anything.


    Do you know how to solve this problem ? (I'm not quite confident in launching agentd in root)

    OS : Debian 4.0
    Kernel : 2.4.33grs-bipiv-ipv4-32

    Thanks.
    Mad.
    Last edited by mad; 05-08-2007, 18:49.
  • mad
    Junior Member
    • Aug 2007
    • 3

    #2
    Ok, the problem was that the security patch GRSEC was compiled in my linux kernel.

    I simply removed it.
    If someone has the same problem and want to keep GRSEC, you have to compile your kernel with these options (not tested) :
    CONFIG_GRKERNSEC_PROC_USERGROUP=y
    CONFIG_GRKERNSEC_PROC_GID=10
    CONFIG_GRKERNSEC_PROC_ADD=y

    These way the /proc files will be owned by root and readable by the GID 10.
    You'll just have to add the zabbix user to this group.

    Mad

    Comment

    Working...