[ZBXNEXT-1803] Custom process names on Linux for Zabbix server and agent Created: 2013 Jun 27  Updated: 2013 Oct 08  Resolved: 2013 Jun 27

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G), Server (S)
Affects Version/s: 2.0.6
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: Igor Urazov Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Issue Links:
Duplicate
duplicates ZBXNEXT-1855 Support of setproctitle on Linux, Win... Closed

 Description   

It would be nice if Zabbix agent and server set custom process names for its childs. For example this is grep of 'ps aux' for nginx:

root 2436 0.0 0.0 78644 1516 ? Ss Jun20 0:00 nginx: master process /usr/sbin/nginx
www-data 2439 0.0 0.0 79712 4064 ? S Jun20 0:25 nginx: worker process
www-data 2441 0.0 0.0 79648 3980 ? S Jun20 0:24 nginx: worker process
www-data 2442 0.0 0.0 79628 3996 ? S Jun20 0:24 nginx: worker process
www-data 2443 0.0 0.0 79620 4048 ? S Jun20 0:28 nginx: worker process

For more details how to archive this see man prctl(2)http://man7.org/linux/man-pages/man2/prctl.2.html, PR_SET_NAME option.



 Comments   
Comment by Igor Urazov [ 2013 Jun 27 ]

I spoke too soon, it appears that nginx uses different mechanism to do this. See http://hg.nginx.org/nginx/file/88741ec7731a/src/os/unix/ngx_setproctitle.c for implementation details. This is doable not only on Linux, but on FreeBSD and Solaris too.

Comment by Andris Mednis [ 2013 Oct 08 ]

You might be interested to look at ZBXNEXT-1855 solution.

Generated at Sat Apr 19 22:21:07 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.