Ad Widget

Collapse

Monitoring of Python processes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • five0va
    Junior Member
    • Mar 2015
    • 26

    #1

    Monitoring of Python processes

    Hello all! We are monitoring Alcatel-Lucent's VSD product with Zabbix and now are moving into another phase with it where we want to monitor the processes running on it. I'm familiar with monitoring normal processes (for instance, the ones that can be started|stopped|restarted from /etc/init.d), but have been so far, unsuccessful in getting any kind of data from the Python processes.

    Two processes we are trying to monitor are:

    /opt/vsd/sysmon/ejabberdStatus.py and jbossStatus.py.

    When these scripts are checked manually, we get:

    JBOSS deployment has not been successfully finished.
    JBOSS Status:FAIL
    JBOSS deployment has not been successfully finished.


    or

    JBOSS deployment has not been successfully finished.
    JBOSS Status:PASS
    JBOSS deployment has not been successfully finished.


    I've created custom Items, but all I get back is a 0. No matter what I try, I can't seem to get anything useful. Thank you in advance!

    VSD is running on CentOS 6.5.

    Our Zabbix Server is 2.4.4 and running CentOS 7 backed by MariaDB.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    hmm, you can create a script something like that:

    if jbossStatus.py = 'JBOSS deployment has not been successfully finished.'
    then echo 0
    else echo 1
    fi
    this script as a user parameter and you can check if 0 or 1 is coming..

    hope that is what you mean
    Debian-User

    Sorry for my bad english

    Comment

    Working...