[[+content_image]]
I
I
Ivan2020-08-11 16:21:07
Zabbix
Ivan, 2020-08-11 16:21:07

Jenkins and zabbix_agentd?

Such a story, the Jenkins service is running, but the agent does not see that it is active, what to see, where to dig?

[[email protected] ~]# zabbix_agentd -t proc.num[jenkins]
proc.num[jenkins] [u|0]
[[email protected] ~]# /etc/init.d/jenkins status
● jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Active: active (running) since Thu 2020-05-21 14:36:50 MSK; 2 months 21 days ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/jenkins.service
└─10198 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_...

May 21 14:36:48 wrs.dev.local systemd[1]: Starting LSB: Jenkins Automation Server...
May 21 14:36:48 wrs.dev.local runuser[9432]: pam_unix(runuser:session): session opened for user jenkins by (uid=0)
May 21 14:36:50 wrs.dev.local jenkins[9409]: Starting Jenkins [ OK ]
May 21 14:36:50 wrs.dev.local systemd[1]: Started LSB: Jenkins Automation Server.
Hint: Some lines were ellipsized, use -l to show in full.
[[email protected] ~]# /etc/init.d/jenkins stop
Stopping jenkins (via systemctl): [ OK ]
[[email protected] ~]# zabbix_agentd -t proc.num[jenkins]
proc.num[jenkins] [u|0]
[[email protected] ~]# /etc/init.d/jenkins start
Starting jenkins (via systemctl): [ OK ]
[[email protected] ~]# zabbix_agentd -t proc.num[jenkins]
proc.num[jenkins] [u|0]

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
V
Vitaly Karasik, 2020-08-11
@vitaly_il1

zabbix_agentd looks for the process name in the list of running processes.
jenkins has a process name of java and jenkins is one of the arguments. Read in the zabbix_agentd docs what to do in such cases.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question