Page 1 of 1

E-importnagiosql script and proxies.

Posted: Mon Oct 07, 2013 3:08 pm
by yaanatech
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!


Re: E-importnagiosql script and proxies.

Posted: Mon Oct 07, 2013 3:12 pm
by yaanatech
Resolved:

Thank you -> support.nagios.com/wiki/index.php/Nagios_XI:FAQs#Problems_Using_Nagios_XI_With_Proxies

Re: E-importnagiosql script and proxies.

Posted: Mon Oct 07, 2013 3:13 pm
by sreinhardt
Just what I was going to say, glad you figured it out!