Ad Widget

Collapse

Monitoring jenkins process through zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hound
    Junior Member
    • Aug 2015
    • 9

    #1

    Monitoring jenkins process through zabbix

    I am trying to monitor jenkins process through zabbix server, but proc.num always returns 0

    $ zabbix_get -s jenkins.com -k proc.num[,,all,jenkins]
    0

    Same is the case with artifactory process as well,
    $ zabbix_get -s artifactory -k proc.num[,,all,artifactory]
    0

    Can anyone help me to resolve this issue?
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    please post the output of the following command:

    Code:
    ps aux |grep -i jenkins
    and
    Code:
    ps aux |grep -i artifactory
    Debian-User

    Sorry for my bad english

    Comment

    • hound
      Junior Member
      • Aug 2015
      • 9

      #3
      Please find the output below

      $ ps aux |grep -i jenkins

      jenkins 1370 4.4 24.3 4861100 1993988 ? Ssl Aug03 1078:31 /usr/bin/java -jar /usr/share/jenkins/jenkins.war --webroot=/var/run/jenkins/war --httpPort=8080 --ajp13Port=-1 --preferredClassLoader=java.net.URLClassLoader --logfile=/var/log/jenkins/jenkins.log
      hound 13428 0.0 0.0 9392 944 pts/2 R+ 06:32 0:00 grep --color=auto -i jenkins


      $ ps aux |grep -i artifactory

      1002 9790 2.3 10.1 3784488 829692 ? Sl Aug19 11:45 /usr/lib/jvm/jdk1.7.0//bin/java -Djava.util.logging.config.file=/home/hound/artifactory-3.0.3/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLo aderLogManager -server -Xms512m -Xmx2g -Xss256k -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UseG1GC -Dartifactory.home=/home/hound/artifactory-3.0.3 -Djava.endorsed.dirs=/home/hound/artifactory-3.0.3/tomcat/endorsed -classpath /home/hound/artifactory-3.0.3/tomcat/bin/bootstrap.jar:/home/hound/artifactory-3.0.3/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/home/hound/artifactory-3.0.3/tomcat -Dcatalina.home=/home/hound/artifactory-3.0.3/tomcat -Djava.io.tmpdir=/home/hound/artifactory-3.0.3/tomcat/temp org.apache.catalina.startup.Bootstrap start
      hound 11647 0.0 0.0 9388 932 pts/2 S+ 06:33 0:00 grep --color=auto -i artifactory

      Comment

      • Colttt
        Senior Member
        Zabbix Certified Specialist
        • Mar 2009
        • 878

        #4
        sorry for the late response..
        jenkins is running by java, you can only monitor how many java process do you have

        maybe it is a better way to check for user? it looks like that you have different users for every job.., if so please try:
        proc.num[,jenkins]
        Debian-User

        Sorry for my bad english

        Comment

        Working...