title: Nagios download report
body: <p>I'm trying to download the report through shell cmds, after some tutorials i got:</p>
  
  <pre><code>wget -v –user 'nagUser' –password '.C|n#q.U$#r' –no-check-certificate -O report.html "http://[IP]/nagios/cgi-bin/avail.cgi?show_log_entries=&amp;hostgroup=all&amp;timeperiod=lastweek"
  </code></pre>
  
  <p>but I got the following error:</p>
  
  <pre><code>--2017-04-27 09:23:05--  http://xn--user-z86a/
  Resolving –user (xn--user-z86a)... failed: Name or service not known.
  wget: unable to resolve host address ‘xn--user-z86a’
  --2017-04-27 09:23:05--  http://xn--user-z86a/
  Resolving –user (xn--user-z86a)... failed: Name or service not known.
  wget: unable to resolve host address ‘xn--user-z86a’
  --2017-04-27 09:23:05--  http://nagUser/
  Resolving nagUser(nagUser)... failed: Name or service not known.
  wget: unable to resolve host address ‘nagUser’
  --2017-04-27 09:23:05--  http://xn--password-rn3d/
  Resolving –password (xn--password-rn3d)... failed: Name or service not known.
  wget: unable to resolve host address ‘xn--password-rn3d’
  --2017-04-27 09:23:05--  http://xn--password-rn3d/
  Resolving –password (xn--password-rn3d)... failed: Name or service not known.
  wget: unable to resolve host address ‘xn--password-rn3d’
  --2017-04-27 09:23:05--  http://.c%7Cn/
  Resolving .c|n (.c|n)... failed: Name or service not known.
  wget: unable to resolve host address ‘.c|n’
  --2017-04-27 09:23:05--  http://xn--no-check-certificate-2t2l/
  Resolving –no-check-certificate (xn--no-check-certificate-2t2l)... failed: Name or service not known.
  wget: unable to resolve host address ‘xn--no-check-certificate-2t2l’
  --2017-04-27 09:23:05--  http://xn--no-check-certificate-2t2l/
  Resolving –no-check-certificate (xn--no-check-certificate-2t2l)... failed: Name or service not known.
  wget: unable to resolve host address ‘xn--no-check-certificate-2t2l’
  --2017-04-27 09:23:05--  http://[IP]/nagios/cgi-bin/avail.cgi?show_log_entries=&amp;hostgroup=all&amp;timeperiod=lastweek
  Connecting to [IP]:80... connected.
  HTTP request sent, awaiting response... 404 Not Found
  2017-04-27 09:23:05 ERROR 404: Not Found.
  </code></pre>
  
  <p>maybe I'm missing an argument?</p>