I have installed zabbix agent in my windows host and zabbix server runs in the guest(virtualbox) ubuntu machine.
Updated zabbix agent configuration file with User Parameter key and command as below-
UserParameter=timetaken,"python c:\zabbix\extractstring.py"
and i have added the line "EnableRemoteCommands=1"
When i execute this command in Windows cmd prompt it gives me the output.
But in zabbix agent log file it throws the below error-
11264:20140421:120223.032 Run remote command ["python c:\zabbix\extractstring.py"] Result [66] [The filename, direct]...
11264:20140421:120223.033 Sending back [The filename, directory name, or volume label syntax is incorrect.]
Please help me on what might be the problem.
I have used print statement in the python script to print the output.
Will this be a problem /do i need do any other configuration changes.
Updated zabbix agent configuration file with User Parameter key and command as below-
UserParameter=timetaken,"python c:\zabbix\extractstring.py"
and i have added the line "EnableRemoteCommands=1"
When i execute this command in Windows cmd prompt it gives me the output.
But in zabbix agent log file it throws the below error-
11264:20140421:120223.032 Run remote command ["python c:\zabbix\extractstring.py"] Result [66] [The filename, direct]...
11264:20140421:120223.033 Sending back [The filename, directory name, or volume label syntax is incorrect.]
Please help me on what might be the problem.

I have used print statement in the python script to print the output.
Will this be a problem /do i need do any other configuration changes.
Comment