Hi all;
Having a problem using proc.num according to the documetation v1.1. I have a server running multiple instances of apache (httpd)... we have many sites running on one machine using different configuration files and docroots.
My setup:
- RHEL ES 4.4
- zabbix 1.1.4
- debug level is set to 4
- sudo is configured properly for user 'zabbix' (tested thoroughly)
- EnableRemoteCommands=1
On the remote system (running zabbix_agentd):
'ps -f -C httpd | grep root'
Gives the following:
"/usr/sbin/httpd -f /cluster/funkyweb/httpd/conf/httpd.conf -k start"
with PID of 17830.
Still on remote system:
"cat /proc/17830/cmdline"
Gives:
"/usr/sbin/httpd-f/cluster/arincd3phweb/httpd/conf/httpd.conf-kstart"
...............
On zabbix server system:
"./bin/zabbix_get -s www.site.com -p 10050 -k proc.num[httpd,root,,funky]"
Reports: 0
"./bin/zabbix_get -s www.site.com -p 10050 -k proc.num[httpd,root,,httpd]"
Reports: 7
From what I can gather... I can use the proc.num() 'cmdline' argument only up to the first space of the actual command line in the ps outout ("-f")... which is why I get 7 instances returned. However, trying to use anything after the initial command doesn't work ("funky").
Alexei, any ideas?
Thank you!
Having a problem using proc.num according to the documetation v1.1. I have a server running multiple instances of apache (httpd)... we have many sites running on one machine using different configuration files and docroots.
My setup:
- RHEL ES 4.4
- zabbix 1.1.4
- debug level is set to 4
- sudo is configured properly for user 'zabbix' (tested thoroughly)
- EnableRemoteCommands=1
On the remote system (running zabbix_agentd):
'ps -f -C httpd | grep root'
Gives the following:
"/usr/sbin/httpd -f /cluster/funkyweb/httpd/conf/httpd.conf -k start"
with PID of 17830.
Still on remote system:
"cat /proc/17830/cmdline"
Gives:
"/usr/sbin/httpd-f/cluster/arincd3phweb/httpd/conf/httpd.conf-kstart"
...............
On zabbix server system:
"./bin/zabbix_get -s www.site.com -p 10050 -k proc.num[httpd,root,,funky]"
Reports: 0
"./bin/zabbix_get -s www.site.com -p 10050 -k proc.num[httpd,root,,httpd]"
Reports: 7
From what I can gather... I can use the proc.num() 'cmdline' argument only up to the first space of the actual command line in the ps outout ("-f")... which is why I get 7 instances returned. However, trying to use anything after the initial command doesn't work ("funky").
Alexei, any ideas?
Thank you!
Comment