Ad Widget

Collapse

[1.5] FreeBSD 6.1 Agent / proc.num[]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #1

    [1.5] FreeBSD 6.1 Agent / proc.num[]

    Hi

    I modified the FreeBSD agent last night.
    Now, at least, the proc.num works for most of the running
    processes.

    The existing code in 1.5 does not work with the current layout of
    the procfs on FreeBSD 6.1, at least.

    This is not a complete solution, yet, because
    1. looking at man procfs not all information is available, e.g. used memory
    2. not all processes are seen, e.g. sshd, httpd, even if the security is relaxed

    but it works for the other processes.

    I am not sure whether I can modify the agent to see all processes
    using a different approach (based on the openbsd version). But I will
    give it a try.

    OK, it might be easy to replace the proc.num[sshd] by
    a UserParameter using ps and grep.
    But what about checking for running processes as a certain user ?
    And the other interesting requests, e.g. command line arguments, memory size ?

    Regards

    Norbert.
Working...