Ad Widget

Collapse

How to know if a process is running more than a day

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • angelhc
    Senior Member
    Zabbix Certified Specialist
    • Nov 2009
    • 226

    #1

    How to know if a process is running more than a day

    Hello!
    We're just looking the way to monitor if a process has being restarted in the last 24 hours, if I do a ps I can know but How can I implement on zabbix?

    #ps -efo stime,fname
    Nov_19 webservd
    Nov_19 ttymon
    09:51:45 oraclesrv
    Mar_16 xfs

    As you can see the process oraclesrv has a restart at 09:51:45 but we dont know how can we checkit.

    thanks!
    Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

    http://zabbixes.wordpress.com/
  • Jun.Liu
    Member
    • Apr 2007
    • 91

    #2
    you can write a script to check this on the server which you want to monitor. then in Zabbix, create an item whom type is ssh agent or telnet agent to run that script and get the result.

    Comment

    Working...