E-importnagiosql script and proxies.
Posted: Mon Oct 07, 2013 3:08 pm
How do I get the "E-importnagiosql" script to work with a proxy? I set my environment variable for the proxy, it doesn't work with the scripts being executed here.
Code: Select all
# ./E-importnagiosql
httpd: no process killed
Starting httpd: [ OK ]
Sleeping...
NOTE: If prompted, enter the MySQL root password
NagiosQL database appears OK - continuing...
NDOUtils database appears OK - continuing...
Found config files to import - continuing...
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=n@gweb' -O nagiosql.login--2013-10-07 20:01:15-- http://localhost/nagiosql/index.php
Resolving proxy.myhostt.net... 216.x.x.x, 216.x.x.x
Connecting to proxy.host.net|216.x.x.x|:3128... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2013-10-07 20:01:15 ERROR 503: Service Unavailable.
NAGIOSQL LOGIN FAILED!