E-importnagiosql script and proxies.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

E-importnagiosql script and proxies.

Post 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!

yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: E-importnagiosql script and proxies.

Post by yaanatech »

Resolved:

Thank you -> support.nagios.com/wiki/index.php/Nagios_XI:FAQs#Problems_Using_Nagios_XI_With_Proxies
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: E-importnagiosql script and proxies.

Post by sreinhardt »

Just what I was going to say, glad you figured it out!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked