Ad Widget

Collapse

Linux item creation help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Govenor
    Junior Member
    • Dec 2009
    • 11

    #1

    Linux item creation help!

    I know very little about Linux and I am trying to monitor a specific process that is running a dozen or two different Linux machines. I am planning on modifying the Linux template to accomodate this need. However I am not sure what key i would use to accomplish this goal.

    Would I use proc.num[processname] ? then for the trigger put last(0)=0 if the process stopps running? Would that work?


    Thanks!
  • ericgearhart
    Senior Member
    • Jan 2009
    • 115

    #2
    Originally posted by Govenor
    Would I use proc.num[processname] ? then for the trigger put last(0)=0 if the process stopps running? Would that work?
    Basically, yes

    You can see an example from the Linux template (in Zabbix 1.8 anyway... not sure about older versions)

    Item name - Number of running processes sshd
    Key - proc.num[sshd]

    And there's a trigger bound to that item, named "Sshd is not running on {HOSTNAME}"

    The expression for it is:
    Code:
    {Template_Linux:proc.num[sshd].last(0)}<1
    But doing "=0" on the end would have the same effect....
    Last edited by ericgearhart; 31-12-2009, 02:01. Reason: Added quote

    Comment

    Working...