[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: |
|
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 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 |