help me!
I have a script that runs on a server makes a backup directory on cheking side. But I do not know if my configuration on the UserParameter is correct . So I put the following:
UserParameter=bkp2,./home/db2inst1/scripts/backup_check_autom02.sh > /dev/null 2&>1 ; echo $?
when i execute the script direct on directory, gave me the correct result, but when i put in UserParameter with all path, the script behind result "1"!!
piece of log:
tail -f /var/log/zabbix_agent/zabbix_agentd.log | grep -i bkp2
"key""bkp2",
245320120510124418.483 In add_check('bkp2', 30, 0, 0)
245320120510124418.587 For key [bkp2] received value [1]
245320120510124418.587 In process_value() key'bkp2' value'1'
"key""bkp2",
245320120510124448.327 For key [bkp2] received value [1]
245320120510124448.327 In process_value() key'bkp2' value'1'
"key""bkp2",
245320120510124518.226 For key [bkp2] received value [1]
245320120510124518.226 In process_value() key'bkp2' value'1'
"key""bkp2",
245320120510124548.979 For key [bkp2] received value [1]
245320120510124548.979 In process_value() key'bkp2' value'1'
"key""bkp2",
"key""bkp2",
245320120510124619.876 In add_check('bkp2', 30, 0, 0)
245320120510124622.994 For key [bkp2] received value [1]
245320120510124622.994 In process_value() key'bkp2' value'1'
"key""bkp2",
who can help me
I have a script that runs on a server makes a backup directory on cheking side. But I do not know if my configuration on the UserParameter is correct . So I put the following:
UserParameter=bkp2,./home/db2inst1/scripts/backup_check_autom02.sh > /dev/null 2&>1 ; echo $?
when i execute the script direct on directory, gave me the correct result, but when i put in UserParameter with all path, the script behind result "1"!!
piece of log:
tail -f /var/log/zabbix_agent/zabbix_agentd.log | grep -i bkp2
"key""bkp2",
245320120510124418.483 In add_check('bkp2', 30, 0, 0)
245320120510124418.587 For key [bkp2] received value [1]
245320120510124418.587 In process_value() key'bkp2' value'1'
"key""bkp2",
245320120510124448.327 For key [bkp2] received value [1]
245320120510124448.327 In process_value() key'bkp2' value'1'
"key""bkp2",
245320120510124518.226 For key [bkp2] received value [1]
245320120510124518.226 In process_value() key'bkp2' value'1'
"key""bkp2",
245320120510124548.979 For key [bkp2] received value [1]
245320120510124548.979 In process_value() key'bkp2' value'1'
"key""bkp2",
"key""bkp2",
245320120510124619.876 In add_check('bkp2', 30, 0, 0)
245320120510124622.994 For key [bkp2] received value [1]
245320120510124622.994 In process_value() key'bkp2' value'1'
"key""bkp2",
who can help me