Hello Zabbix-addicts 
I wanna try to check if an external FTP server is accepting my credentials so I can see if the FTP server is up. I found this thread: http://www.zabbix.com/forum/showthread.php?t=10741 and use the cURL commands from there and created an item in Zabbix, but always the return-code is 0? Even when I change the credentials, servername, etc.
The command I use on the shell is: curl ftp://user
assword@host >/dev/null 2>&1 | echo $?
I'am not a scripter, sorry, but what's going wrong here? Tried to search on Google, the cURL manual, but no succes!
Thanks in advance!
Edit: When I use no /dev/null I get the errors in the way when I change credentials and/or host:
0
curl: (6) Couldn't resolve host 'host'
AND
0
curl: (67) Access denied: 530
Always that 0 at the beginning and when it succeed I wil get a file list of the FTP server.

I wanna try to check if an external FTP server is accepting my credentials so I can see if the FTP server is up. I found this thread: http://www.zabbix.com/forum/showthread.php?t=10741 and use the cURL commands from there and created an item in Zabbix, but always the return-code is 0? Even when I change the credentials, servername, etc.
The command I use on the shell is: curl ftp://user
assword@host >/dev/null 2>&1 | echo $?I'am not a scripter, sorry, but what's going wrong here? Tried to search on Google, the cURL manual, but no succes!

Thanks in advance!
Edit: When I use no /dev/null I get the errors in the way when I change credentials and/or host:
0
curl: (6) Couldn't resolve host 'host'
AND
0
curl: (67) Access denied: 530
Always that 0 at the beginning and when it succeed I wil get a file list of the FTP server.

Comment