I've got a custom script on the box that will pull out some specific metrics I'm interested in when provided with the process name.
For testing I've got the entry in zabbix_agent.conf:
UserParameter=dirty[*],/usr/local/bin/dirty $1
running it with part of the process name:
if I try and run it with a little bit more:
as soon as I add in that "-" it switches to NOTSUPPORTED, and if you look at the command line it says it's running its decided to repeat the name of the script, and not substitute in the $1 I passed it..
Running the script manually works fine:
Is this a bug in the agent or am I missing something obvious?
For testing I've got the entry in zabbix_agent.conf:
UserParameter=dirty[*],/usr/local/bin/dirty $1
running it with part of the process name:
Code:
/usr/local/sbin/zabbix_agent -t dirty[8115] dirty[/usr/local/bin/dirty 8115] [t|579.578]
Code:
/usr/local/sbin/zabbix_agent -t dirty[8115-alf] dirty[/usr/local/bin/dirty /usr/local/bin/dirty $1] [m|ZBX_NOTSUPPORTED]
Running the script manually works fine:
Code:
/usr/local/bin/dirty 8115-alf 579.32
Comment