jhoffart
2013-10-21 19:59:43 UTC
jhoffart [http://community.zenoss.org/people/jhoffart] created the discussion
"Curl commands"
To view the discussion, visit: http://community.zenoss.org/message/75018#75018
--------------------------------------------------------------
Hi,
    I am fairly new to zenoss and am having some trouble writing a curl command for zenoss. My instance of zenoss is based off of an older version that was in use before I came into the picture. The current command i have is
/usr/bin/curl --max-time 100 --retry 6 --retry-max-time 5 --retry-delay 5 --silent --trace-time --trace-ascii /heartbeat/bond `date "+%Y%m%d%H%M%S"`.txt http://192.168.179.199/heartbeat http://192.168.179.199/heartbeat
evertime i run it i get the following error:
16:06:44.369652 == Info: getaddrinfo(3) failed for +%Y%m%d%H%M%S`.txt:80Â
16:06:44.369717 == Info: Couldn't resolve host '+%Y%m%d%H%M%S`.txt'Â
here is the full output for the command:
/usr/bin/curl --max-time 100 --retry 6 --retry-max-time 5 --retry-delay 5 --silent --trace-time --trace-ascii /heartbeat/bond `date "+%Y%m%d%H%M%S"`.txt http://192.168.179.199/heartbeat http://192.168.179.199/heartbeatÂ
16:06:44.258486 == Info: getaddrinfo(3) failed for `date:80Â
16:06:44.258597 == Info: Couldn't resolve host '`date'Â
16:06:44.258620 == Info: Closing connection #0Â
16:06:44.369652 == Info: getaddrinfo(3) failed for +%Y%m%d%H%M%S`.txt:80Â
16:06:44.369717 == Info: Couldn't resolve host '+%Y%m%d%H%M%S`.txt'Â
16:06:44.369739 == Info: Closing connection #0Â
16:06:44.369816 == Info: About to connect() to 192.168.179.199 port 80 (#0)Â
16:06:44.369853 == Info:Â Â Trying 192.168.179.199... 16:06:44.370224 == Info: connectedÂ
16:06:44.370246 == Info: Connected to 192.168.179.199 (192.168.179.199) port 80 (#0)Â
16:06:44.370290 => Send header, 179 bytes (0xb3)Â
0000: GET /heartbeat HTTP/1.1Â
0019: User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7Â
0059:Â NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2Â
008d: Host: 192.168.179.199Â
00a4: Accept: */*Â
00b1:Â
16:06:44.495096 <= Recv header, 17 bytes (0x11)Â
0000: HTTP/1.1 200 OKÂ
16:06:44.495154 <= Recv header, 37 bytes (0x25)Â
0000: Date: Mon, 21 Oct 2013 19:57:32 GMTÂ
16:06:44.495183 <= Recv header, 94 bytes (0x5e)Â
Any help on this would be appriciated.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75018#75018]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Curl commands"
To view the discussion, visit: http://community.zenoss.org/message/75018#75018
--------------------------------------------------------------
Hi,
    I am fairly new to zenoss and am having some trouble writing a curl command for zenoss. My instance of zenoss is based off of an older version that was in use before I came into the picture. The current command i have is
/usr/bin/curl --max-time 100 --retry 6 --retry-max-time 5 --retry-delay 5 --silent --trace-time --trace-ascii /heartbeat/bond `date "+%Y%m%d%H%M%S"`.txt http://192.168.179.199/heartbeat http://192.168.179.199/heartbeat
evertime i run it i get the following error:
16:06:44.369652 == Info: getaddrinfo(3) failed for +%Y%m%d%H%M%S`.txt:80Â
16:06:44.369717 == Info: Couldn't resolve host '+%Y%m%d%H%M%S`.txt'Â
here is the full output for the command:
/usr/bin/curl --max-time 100 --retry 6 --retry-max-time 5 --retry-delay 5 --silent --trace-time --trace-ascii /heartbeat/bond `date "+%Y%m%d%H%M%S"`.txt http://192.168.179.199/heartbeat http://192.168.179.199/heartbeatÂ
16:06:44.258486 == Info: getaddrinfo(3) failed for `date:80Â
16:06:44.258597 == Info: Couldn't resolve host '`date'Â
16:06:44.258620 == Info: Closing connection #0Â
16:06:44.369652 == Info: getaddrinfo(3) failed for +%Y%m%d%H%M%S`.txt:80Â
16:06:44.369717 == Info: Couldn't resolve host '+%Y%m%d%H%M%S`.txt'Â
16:06:44.369739 == Info: Closing connection #0Â
16:06:44.369816 == Info: About to connect() to 192.168.179.199 port 80 (#0)Â
16:06:44.369853 == Info:Â Â Trying 192.168.179.199... 16:06:44.370224 == Info: connectedÂ
16:06:44.370246 == Info: Connected to 192.168.179.199 (192.168.179.199) port 80 (#0)Â
16:06:44.370290 => Send header, 179 bytes (0xb3)Â
0000: GET /heartbeat HTTP/1.1Â
0019: User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7Â
0059:Â NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2Â
008d: Host: 192.168.179.199Â
00a4: Accept: */*Â
00b1:Â
16:06:44.495096 <= Recv header, 17 bytes (0x11)Â
0000: HTTP/1.1 200 OKÂ
16:06:44.495154 <= Recv header, 37 bytes (0x25)Â
0000: Date: Mon, 21 Oct 2013 19:57:32 GMTÂ
16:06:44.495183 <= Recv header, 94 bytes (0x5e)Â
Any help on this would be appriciated.
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/75018#75018]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]