Hi all,
I'm experiencing a strange error with UserParameter.
I've create a python script that makes a sql query to a db. The script has been named query.sh, it has the execution permission enabled for world and it begins with !#/usr/python. If I exec it on shell it works : ./query.sh and returns 0 or 1.
I've added in the agent conf file :
UserParameter=system.db_query,/usr/local/bin/query.sh
and configured the server to read the item system.db_query from the host where I placed the script.
But the server responds to that item with "Not supported". Either if I specify in the agent conf file
UserParameter=Yes
it doesn't work.
Some suggestions?
Thanks in advance,
steff
I'm experiencing a strange error with UserParameter.
I've create a python script that makes a sql query to a db. The script has been named query.sh, it has the execution permission enabled for world and it begins with !#/usr/python. If I exec it on shell it works : ./query.sh and returns 0 or 1.
I've added in the agent conf file :
UserParameter=system.db_query,/usr/local/bin/query.sh
and configured the server to read the item system.db_query from the host where I placed the script.
But the server responds to that item with "Not supported". Either if I specify in the agent conf file
UserParameter=Yes
it doesn't work.
Some suggestions?
Thanks in advance,
steff
Comment