Ad Widget

Collapse

monitoring processes in /usr/sbin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fifty87
    Junior Member
    • May 2016
    • 8

    #1

    monitoring processes in /usr/sbin

    Hi!

    I'd like to monitor some processes (only availability) in /usr/sbin... like asterisk, tomcat etc. Could someone tell me what is the best way to do it in zabbix v. 2.2 using only snmp agent (not zabbix agent). Thanks in advance!
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Is the info you want in this?

    snmptable -v 2c -c community host.dns.or.ip .1.3.6.1.2.1.25.4.2 | grep sbin

    Comment

    • Fifty87
      Junior Member
      • May 2016
      • 8

      #3
      Ok, I got it. Thanks!

      But, unfortunately I'm a beginner and I've got a lot of problems to add an item and trigger for example to monitor availability of asterisk process - usr/sbin/asterisk. Could you help with the attachment?
      Attached Files

      Comment

      • LenR
        Senior Member
        • Sep 2009
        • 1005

        #4
        What you're needing to do is not really a beginner level task. It would be trivial if you could use the Zabbix agent.

        The problem with SNMP is that the hrSWRunIndex for the process in the table will probably change at each reboot and maybe even each restart of the service. Zabbix's LLD feature could get that list of processes, generate items and triggers based on prototypes for "asterisk" based on a filter rule, but when the index changes, it will probably fail.

        If your process opens a port (5036, 5060?) it would be easier to use a simple check on those, if the ports are open, you know the service is running. You would need firewall permission between you Zabbix server/proxy and the host for those ports for the test to work.

        Comment

        Working...