New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smokeping graphs not showing #122

Closed
pdxmaverick opened this Issue Jan 20, 2014 · 23 comments

Comments

Projects
None yet
4 participants
@pdxmaverick

pdxmaverick commented Jan 20, 2014

I have smokeping running and configured with /usr/local/ixp/bin/ixptool.php -a smokeping-cli.gen-conf

application.ini:
smokeping.conf.dstfile = '/etc/smokeping/config'
smokeping.conf.cgiurl = "https://portal.nwax.net/smokeping/smokeping.cgi"
smokeping.conf.imgcache = "/usr/share/smokeping/www/img"
smokeping.conf.imgurl = "/smokeping/img"
smokeping.conf.datadir = "/usr/share/smokeping/var"
smokeping.conf.piddir = "/etc/smokeping"
smokeping.conf.smokemail = "/etc/smokeping/smokemail"
smokeping.conf.pathnames = "/etc/smokeping/config.d/pathnames"
smokeping.oconf.tmail = "/etc/smokeping/tmail"
smokeping.oconf.syslogfacility = "local0"

In smokeping I see my members.

Ex: https://portal.nwax.net/smokeping/smokeping.cgi?target=infra_1.vlan_1.vlanint_14_ipv4

In IXP I do get the smokeping button but I do not get graphs when I go to that page
Ex: https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/14

Thanks,
Brian

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 20, 2014

Member

On 20/01/2014 02:31, Brian Thompson wrote:

In IXP I do get the smokeping button but I do not get graphs when I
go to that page Ex:
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/14

When you look at the source HTML of that page, you'll see generated
Smokeping image URLs like the following:

https://www.inex.ie/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/2/vlan/3/vlanint/94/proto/ipv4

IXP Manager will call something like file_get_contents(
'https://portal.nwax.net/smokeping/smokeping.cgi?.....' )

You should see these requests to Smokeping in your Apache log files. Can
you find these and compare them to the URLs that Smokeping itself
generates for its own display of the images?

From the documentation, did you complete this step:

Then, edit your IXP(s) (either from the IXPs menu item for multi-IXP
mode or via the Infrastructures menu item for single IXP mode); and
set the Smokeping URL to the htdocs directory of your Smokeping
installaltion - e.g. http://127.0.0.1/smokeping. This should be
accessible without username / password to the server running IXP
Manager.

So, you should have clicked 'Infrastructures' on the left hand side menu
and then followed the instructions at the end of that page to edit your
IXP. In the field marked 'Smokeping URL', I imagine you need to enter:

https://portal.nwax.net/smokeping

assuming you have an Apache conf like:

ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

  • Barry
Member

barryo commented Jan 20, 2014

On 20/01/2014 02:31, Brian Thompson wrote:

In IXP I do get the smokeping button but I do not get graphs when I
go to that page Ex:
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/14

When you look at the source HTML of that page, you'll see generated
Smokeping image URLs like the following:

https://www.inex.ie/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/2/vlan/3/vlanint/94/proto/ipv4

IXP Manager will call something like file_get_contents(
'https://portal.nwax.net/smokeping/smokeping.cgi?.....' )

You should see these requests to Smokeping in your Apache log files. Can
you find these and compare them to the URLs that Smokeping itself
generates for its own display of the images?

From the documentation, did you complete this step:

Then, edit your IXP(s) (either from the IXPs menu item for multi-IXP
mode or via the Infrastructures menu item for single IXP mode); and
set the Smokeping URL to the htdocs directory of your Smokeping
installaltion - e.g. http://127.0.0.1/smokeping. This should be
accessible without username / password to the server running IXP
Manager.

So, you should have clicked 'Infrastructures' on the left hand side menu
and then followed the instructions at the end of that page to edit your
IXP. In the field marked 'Smokeping URL', I imagine you need to enter:

https://portal.nwax.net/smokeping

assuming you have an Apache conf like:

ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

  • Barry
@pdxmaverick

This comment has been minimized.

Show comment
Hide comment
@pdxmaverick

pdxmaverick Jan 21, 2014

On Sun, Jan 19, 2014 at 11:25 PM, barryo notifications@github.com wrote:

On 20/01/2014 02:31, Brian Thompson wrote:

In IXP I do get the smokeping button but I do not get graphs when I
go to that page Ex:
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/14

When you look at the source HTML of that page, you'll see generated
Smokeping image URLs like the following:

https://www.inex.ie/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/2/vlan/3/vlanint/94/proto/ipv4

https://portal.nwax.net/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/1/vlan/1/vlanint/11/proto/ipv4

IXP Manager will call something like file_get_contents(
'https://portal.nwax.net/smokeping/smokeping.cgi?.....' )

correct

You should see these requests to Smokeping in your Apache log files. Can
you find these and compare them to the URLs that Smokeping itself
generates for its own display of the images?

example 74.121.28.6 - - [20/Jan/2014:16:09:06 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/31.0.1650.63 Safari/537.36"

From the documentation, did you complete this step: YES

Then, edit your IXP(s) (either from the IXPs menu item for multi-IXP
mode or via the Infrastructures menu item for single IXP mode); and
set the Smokeping URL to the htdocs directory of your Smokeping
installaltion - e.g. http://127.0.0.1/smokeping. This should be
accessible without username / password to the server running IXP
Manager.

So, you should have clicked 'Infrastructures' on the left hand side menu
and then followed the instructions at the end of that page to edit your
IXP. In the field marked 'Smokeping URL', I imagine you need to enter:

https://portal.nwax.net/smokeping

I had https://portal.nwax.net/smokeping/smokeping.cgi and tried with out
the cgi file

assuming you have an Apache conf like:

ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

Correct
ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

<Directory "/usr/share/smokeping/www">
Options FollowSymLinks

  • Barry


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32738710
.

pdxmaverick commented Jan 21, 2014

On Sun, Jan 19, 2014 at 11:25 PM, barryo notifications@github.com wrote:

On 20/01/2014 02:31, Brian Thompson wrote:

In IXP I do get the smokeping button but I do not get graphs when I
go to that page Ex:
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/14

When you look at the source HTML of that page, you'll see generated
Smokeping image URLs like the following:

https://www.inex.ie/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/2/vlan/3/vlanint/94/proto/ipv4

https://portal.nwax.net/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/1/vlan/1/vlanint/11/proto/ipv4

IXP Manager will call something like file_get_contents(
'https://portal.nwax.net/smokeping/smokeping.cgi?.....' )

correct

You should see these requests to Smokeping in your Apache log files. Can
you find these and compare them to the URLs that Smokeping itself
generates for its own display of the images?

example 74.121.28.6 - - [20/Jan/2014:16:09:06 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/31.0.1650.63 Safari/537.36"

From the documentation, did you complete this step: YES

Then, edit your IXP(s) (either from the IXPs menu item for multi-IXP
mode or via the Infrastructures menu item for single IXP mode); and
set the Smokeping URL to the htdocs directory of your Smokeping
installaltion - e.g. http://127.0.0.1/smokeping. This should be
accessible without username / password to the server running IXP
Manager.

So, you should have clicked 'Infrastructures' on the left hand side menu
and then followed the instructions at the end of that page to edit your
IXP. In the field marked 'Smokeping URL', I imagine you need to enter:

https://portal.nwax.net/smokeping

I had https://portal.nwax.net/smokeping/smokeping.cgi and tried with out
the cgi file

assuming you have an Apache conf like:

ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

Correct
ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

<Directory "/usr/share/smokeping/www">
Options FollowSymLinks

  • Barry


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32738710
.

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 21, 2014

Member

You should see these requests to Smokeping in your Apache log files. Can
you find these and compare them to the URLs that Smokeping itself
generates for its own display of the images?

example 74.121.28.6 - - [20/Jan/2014:16:09:06 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/31.0.1650.63 Safari/537.36"

What I'm interested in seeing is the requests directly to Smokeping (that should be generated from the file_get_contents() call).

Member

barryo commented Jan 21, 2014

You should see these requests to Smokeping in your Apache log files. Can
you find these and compare them to the URLs that Smokeping itself
generates for its own display of the images?

example 74.121.28.6 - - [20/Jan/2014:16:09:06 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/31.0.1650.63 Safari/537.36"

What I'm interested in seeing is the requests directly to Smokeping (that should be generated from the file_get_contents() call).

@pdxmaverick

This comment has been minimized.

Show comment
Hide comment
@pdxmaverick

pdxmaverick Jan 21, 2014

I do not see that in my apache log.
On Jan 21, 2014 8:10 AM, "barryo" notifications@github.com wrote:

You should see these requests to Smokeping in your Apache log files. Can
you find these and compare them to the URLs that Smokeping itself
generates for its own display of the images?

example 74.121.28.6 - - [20/Jan/2014:16:09:06 -0800] "GET

/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/31.0.1650.63 Safari/537.36"

What I'm interested in seeing is the requests directly to Smokeping (that
should be generated from the file_get_contents() call).


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32899822
.

pdxmaverick commented Jan 21, 2014

I do not see that in my apache log.
On Jan 21, 2014 8:10 AM, "barryo" notifications@github.com wrote:

You should see these requests to Smokeping in your Apache log files. Can
you find these and compare them to the URLs that Smokeping itself
generates for its own display of the images?

example 74.121.28.6 - - [20/Jan/2014:16:09:06 -0800] "GET

/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/31.0.1650.63 Safari/537.36"

What I'm interested in seeing is the requests directly to Smokeping (that
should be generated from the file_get_contents() call).


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32899822
.

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 21, 2014

Member

I just pushed a small tweak (b56da51) to increase logging. Can you update to master and then give us the output of tail -f var/log/2014/01/20140121.log as you request Smokeping graphs.

Member

barryo commented Jan 21, 2014

I just pushed a small tweak (b56da51) to increase logging. Can you update to master and then give us the output of tail -f var/log/2014/01/20140121.log as you request Smokeping graphs.

@pdxmaverick

This comment has been minimized.

Show comment
Hide comment
@pdxmaverick

pdxmaverick Jan 21, 2014

Barry,

I can not find any log file by that name.

This is what I get in my apache2\ssl_access.log
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/member-drilldown/ixp/1/vi/11 HTTP/1.1" 200 4087 "
https://portal.nwax.net/ixp/statistics/member-drilldown/shortname/acsalaska/category/bits/monitorindex/1"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET /ixp/js/min.bundle-v35.js
HTTP/1.1" 304 385 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/css/min.bundle-v35.css HTTP/1.1" 304 239 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2745 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/1year/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2745 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/10days/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:30 -0800] "-" 408 144 "-" "-"

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 8:36 AM, barryo notifications@github.com wrote:

I just pushed a small tweak (b56da51b56da51)
to increase logging. Can you update to master and then give us the output
of tail -f var/log/2014/01/20140121.log as you request Smokeping graphs.


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32902710
.

pdxmaverick commented Jan 21, 2014

Barry,

I can not find any log file by that name.

This is what I get in my apache2\ssl_access.log
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/member-drilldown/ixp/1/vi/11 HTTP/1.1" 200 4087 "
https://portal.nwax.net/ixp/statistics/member-drilldown/shortname/acsalaska/category/bits/monitorindex/1"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET /ixp/js/min.bundle-v35.js
HTTP/1.1" 304 385 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/css/min.bundle-v35.css HTTP/1.1" 304 239 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2745 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/1year/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2745 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:09 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/10days/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [21/Jan/2014:09:08:30 -0800] "-" 408 144 "-" "-"

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 8:36 AM, barryo notifications@github.com wrote:

I just pushed a small tweak (b56da51b56da51)
to increase logging. Can you update to master and then give us the output
of tail -f var/log/2014/01/20140121.log as you request Smokeping graphs.


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32902710
.

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 21, 2014

Member

Perhaps use a pastebin for logs like that. It'd be more readable. Or prefix them with four spaces.

Can you confirm (copy and paste) your logger config looks like (in application.ini):

ondemand_resources.logger.enabled = 1
ondemand_resources.logger.writers.stream.level = 7
ondemand_resources.logger.writers.stream.path  = APPLICATION_PATH "/../var/log"
ondemand_resources.logger.writers.stream.owner = www-data
ondemand_resources.logger.writers.stream.group = www-data

(I've excluded the email part as I'm not interested in that).

Member

barryo commented Jan 21, 2014

Perhaps use a pastebin for logs like that. It'd be more readable. Or prefix them with four spaces.

Can you confirm (copy and paste) your logger config looks like (in application.ini):

ondemand_resources.logger.enabled = 1
ondemand_resources.logger.writers.stream.level = 7
ondemand_resources.logger.writers.stream.path  = APPLICATION_PATH "/../var/log"
ondemand_resources.logger.writers.stream.owner = www-data
ondemand_resources.logger.writers.stream.group = www-data

(I've excluded the email part as I'm not interested in that).

@pdxmaverick

This comment has been minimized.

Show comment
Hide comment
@pdxmaverick

pdxmaverick Jan 21, 2014

ok, I was looking in the wrong place.

2014-01-21T09:27:21-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/smokeping.cgi/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4

verse

https://portal.nwax.net/smokeping/smokeping.cgi?displaymode=n;start=2014-01-21%2006:26;end=now;target=infra_1.vlan_1.vlanint_11_ipv4

It is adding an extra forward slash

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 9:19 AM, barryo notifications@github.com wrote:

Perhaps use a pastebin for logs like that. It'd be more readable. Or
prefix them with four spaces.

Can you confirm (copy and paste) your logger config looks like (in
application.ini):

ondemand_resources.logger.enabled = 1
ondemand_resources.logger.writers.stream.level = 7
ondemand_resources.logger.writers.stream.path = APPLICATION_PATH "/../var/log"
ondemand_resources.logger.writers.stream.owner = www-data
ondemand_resources.logger.writers.stream.group = www-data

(I've excluded the email part as I'm not interested in that).


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32907104
.

pdxmaverick commented Jan 21, 2014

ok, I was looking in the wrong place.

2014-01-21T09:27:21-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/smokeping.cgi/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4

verse

https://portal.nwax.net/smokeping/smokeping.cgi?displaymode=n;start=2014-01-21%2006:26;end=now;target=infra_1.vlan_1.vlanint_11_ipv4

It is adding an extra forward slash

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 9:19 AM, barryo notifications@github.com wrote:

Perhaps use a pastebin for logs like that. It'd be more readable. Or
prefix them with four spaces.

Can you confirm (copy and paste) your logger config looks like (in
application.ini):

ondemand_resources.logger.enabled = 1
ondemand_resources.logger.writers.stream.level = 7
ondemand_resources.logger.writers.stream.path = APPLICATION_PATH "/../var/log"
ondemand_resources.logger.writers.stream.owner = www-data
ondemand_resources.logger.writers.stream.group = www-data

(I've excluded the email part as I'm not interested in that).


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32907104
.

@nickhilliard

This comment has been minimized.

Show comment
Hide comment
@nickhilliard

nickhilliard Jan 21, 2014

Member

On 21/01/2014 17:29, Brian Thompson wrote:

https://portal.nwax.net/smokeping/smokeping.cgi/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4

that looks like a configuration file thing then. What does your apache
configuration look like for smokeping?

Member

nickhilliard commented Jan 21, 2014

On 21/01/2014 17:29, Brian Thompson wrote:

https://portal.nwax.net/smokeping/smokeping.cgi/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4

that looks like a configuration file thing then. What does your apache
configuration look like for smokeping?

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 21, 2014

Member

It is indeed. Your Smokeping URL in the IXP configuration should be:

https://portal.nwax.net/smokeping

Then, in your Apache config, you need something like:

<Directory "/usr/share/smokeping/www">
    Options FollowSymLinks

    DirectoryIndex smokeping.cgi
</Directory>

I.e. I think the DirectoryIndex is missing. Please check and I'll update the documentation (or code).

Member

barryo commented Jan 21, 2014

It is indeed. Your Smokeping URL in the IXP configuration should be:

https://portal.nwax.net/smokeping

Then, in your Apache config, you need something like:

<Directory "/usr/share/smokeping/www">
    Options FollowSymLinks

    DirectoryIndex smokeping.cgi
</Directory>

I.e. I think the DirectoryIndex is missing. Please check and I'll update the documentation (or code).

@pdxmaverick

This comment has been minimized.

Show comment
Hide comment
@pdxmaverick

pdxmaverick Jan 21, 2014

I have a file smokeping.conf in /etc/apache2/sites-enabled/smokeping.conf
ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

<Directory "/usr/share/smokeping/www">
Options FollowSymLinks

I added DirectoryIndex smokeping.cgi and restarted apache2

I still get the extra slash in the log

I did notice that I receive the following message when restarting Apache

root@portal:/etc/apache2/sites-enabled# service apache2 restart

  • Restarting web server apache2

    [Tue Jan 21 09:38:14 2014] [warn] The ScriptAlias directive in
    /etc/apache2/sites-enabled/smokeping.conf at line 1 will probably never
    match because it overlaps an earlier ScriptAlias.
    [Tue Jan 21 09:38:14 2014] [warn] The Alias directive in
    /etc/apache2/sites-enabled/smokeping.conf at line 2 will probably never
    match because it overlaps an earlier Alias.
    apache2: Could not reliably determine the server's fully qualified domain
    name, using 127.0.1.1 for ServerName
    ... waiting [Tue Jan 21 09:38:15 2014] [warn] The ScriptAlias directive in
    /etc/apache2/sites-enabled/smokeping.conf at line 1 will probably never
    match because it overlaps an earlier ScriptAlias.
    [Tue Jan 21 09:38:15 2014] [warn] The Alias directive in
    /etc/apache2/sites-enabled/smokeping.conf at line 2 will probably never
    match because it overlaps an earlier Alias.
    apache2: Could not reliably determine the server's fully qualified domain
    name, using 127.0.1.1 for ServerName

                                                                  [ OK ]
    

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 9:36 AM, barryo notifications@github.com wrote:

It is indeed. Your Smokeping URL in the IXP configuration should be:

https://portal.nwax.net/smokeping

Then, in your Apache config, you need something like:

<Directory "/usr/share/smokeping/www">
Options FollowSymLinks

DirectoryIndex smokeping.cgi

I.e. I think the DirectoryIndex is missing. Please check and I'll update
the documentation (or code).


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32908817
.

pdxmaverick commented Jan 21, 2014

I have a file smokeping.conf in /etc/apache2/sites-enabled/smokeping.conf
ScriptAlias /smokeping/smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www

<Directory "/usr/share/smokeping/www">
Options FollowSymLinks

I added DirectoryIndex smokeping.cgi and restarted apache2

I still get the extra slash in the log

I did notice that I receive the following message when restarting Apache

root@portal:/etc/apache2/sites-enabled# service apache2 restart

  • Restarting web server apache2

    [Tue Jan 21 09:38:14 2014] [warn] The ScriptAlias directive in
    /etc/apache2/sites-enabled/smokeping.conf at line 1 will probably never
    match because it overlaps an earlier ScriptAlias.
    [Tue Jan 21 09:38:14 2014] [warn] The Alias directive in
    /etc/apache2/sites-enabled/smokeping.conf at line 2 will probably never
    match because it overlaps an earlier Alias.
    apache2: Could not reliably determine the server's fully qualified domain
    name, using 127.0.1.1 for ServerName
    ... waiting [Tue Jan 21 09:38:15 2014] [warn] The ScriptAlias directive in
    /etc/apache2/sites-enabled/smokeping.conf at line 1 will probably never
    match because it overlaps an earlier ScriptAlias.
    [Tue Jan 21 09:38:15 2014] [warn] The Alias directive in
    /etc/apache2/sites-enabled/smokeping.conf at line 2 will probably never
    match because it overlaps an earlier Alias.
    apache2: Could not reliably determine the server's fully qualified domain
    name, using 127.0.1.1 for ServerName

                                                                  [ OK ]
    

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 9:36 AM, barryo notifications@github.com wrote:

It is indeed. Your Smokeping URL in the IXP configuration should be:

https://portal.nwax.net/smokeping

Then, in your Apache config, you need something like:

<Directory "/usr/share/smokeping/www">
Options FollowSymLinks

DirectoryIndex smokeping.cgi

I.e. I think the DirectoryIndex is missing. Please check and I'll update
the documentation (or code).


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32908817
.

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 21, 2014

Member

First you need to solve those issues. Smokeping install probably dropped a file / symlink into /etc/apache2/conf.d (or conf-enabled on newer versions).

Remove that and then ensure Smokeping still works.

Member

barryo commented Jan 21, 2014

First you need to solve those issues. Smokeping install probably dropped a file / symlink into /etc/apache2/conf.d (or conf-enabled on newer versions).

Remove that and then ensure Smokeping still works.

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 21, 2014

Member

Then give us the output of:

SELECT `smokeping` FROM ixp;

It should be:

https://portal.nwax.net/smokeping

based on the information you've provided. NB: no trailing slash.

Member

barryo commented Jan 21, 2014

Then give us the output of:

SELECT `smokeping` FROM ixp;

It should be:

https://portal.nwax.net/smokeping

based on the information you've provided. NB: no trailing slash.

@pdxmaverick

This comment has been minimized.

Show comment
Hide comment
@pdxmaverick

pdxmaverick Jan 21, 2014

mysql> SELECT smokeping FROM ixp;
+-------------------------------------------------+
| smokeping |
+-------------------------------------------------+
| https://portal.nwax.net/smokeping/smokeping.cgi |
+-------------------------------------------------+
1 row in set (0.00 sec)

mysql>

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 9:48 AM, barryo notifications@github.com wrote:

Then give us the output of:

SELECT smokeping FROM ixp;

It should be:

https://portal.nwax.net/smokeping

based on the information you've provided. NB: no trailing slash.


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32909980
.

pdxmaverick commented Jan 21, 2014

mysql> SELECT smokeping FROM ixp;
+-------------------------------------------------+
| smokeping |
+-------------------------------------------------+
| https://portal.nwax.net/smokeping/smokeping.cgi |
+-------------------------------------------------+
1 row in set (0.00 sec)

mysql>

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 9:48 AM, barryo notifications@github.com wrote:

Then give us the output of:

SELECT smokeping FROM ixp;

It should be:

https://portal.nwax.net/smokeping

based on the information you've provided. NB: no trailing slash.


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32909980
.

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 21, 2014

Member

So change it to:

https://portal.nwax.net/smokeping
Member

barryo commented Jan 21, 2014

So change it to:

https://portal.nwax.net/smokeping
@pdxmaverick

This comment has been minimized.

Show comment
Hide comment
@pdxmaverick

pdxmaverick Jan 21, 2014

Ok error from apache2 resolved. I removed the .conf from the sites-enabled

yes there is a symlink in /etc/apache2/conf.d smokeping ->
/etc/smokeping/apache2.conf

I have added DirectoryIndex smokeping.cgi to
/etc/smokeping/apache2.conf/smokeping

I have updated mysql to https://portal.nwax.net/smokeping

No joy, still getting extra slash

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 9:50 AM, barryo notifications@github.com wrote:

So change it to:

https://portal.nwax.net/smokeping


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32910248
.

pdxmaverick commented Jan 21, 2014

Ok error from apache2 resolved. I removed the .conf from the sites-enabled

yes there is a symlink in /etc/apache2/conf.d smokeping ->
/etc/smokeping/apache2.conf

I have added DirectoryIndex smokeping.cgi to
/etc/smokeping/apache2.conf/smokeping

I have updated mysql to https://portal.nwax.net/smokeping

No joy, still getting extra slash

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Tue, Jan 21, 2014 at 9:50 AM, barryo notifications@github.com wrote:

So change it to:

https://portal.nwax.net/smokeping


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-32910248
.

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 22, 2014

Member

Can you restart Memcached just to be sure. The cached IXP object is flushed on an update but let's be certain.

No joy, still getting extra slash

So, can you:

  • post the Apache log of the request so we can see what effect if any the update had;
  • post the IXP Manager logs from the Smokeping request;
  • post the MySQL query from above again to confirm the database update;
  • restart memcache.

If all that fails, can you try running the following on the command line:

php -r 'echo file_get_contents( "https://..." );'

where you replace https://... with the full Smokeping URL from the logs. Post the command you run and the output (as long as the output isn't a full image!).

Member

barryo commented Jan 22, 2014

Can you restart Memcached just to be sure. The cached IXP object is flushed on an update but let's be certain.

No joy, still getting extra slash

So, can you:

  • post the Apache log of the request so we can see what effect if any the update had;
  • post the IXP Manager logs from the Smokeping request;
  • post the MySQL query from above again to confirm the database update;
  • restart memcache.

If all that fails, can you try running the following on the command line:

php -r 'echo file_get_contents( "https://..." );'

where you replace https://... with the full Smokeping URL from the logs. Post the command you run and the output (as long as the output isn't a full image!).

@pdxmaverick

This comment has been minimized.

Show comment
Hide comment
@pdxmaverick

pdxmaverick Jan 22, 2014

ok restarted memcached, no joy

tail -f /var/log/apache2/ssl_access.log
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/member-drilldown/ixp/1/vi/11 HTTP/1.1" 200 4098 "
https://portal.nwax.net/ixp/statistics/member-drilldown/shortname/acsalaska/category/bits/monitorindex/1"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET /ixp/js/min.bundle-v35.js
HTTP/1.1" 304 385 "https://portal.nwax.net/ixp/admin/index" "Mozilla/5.0
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/css/min.bundle-v35.css HTTP/1.1" 304 239 "
https://portal.nwax.net/ixp/admin/index" "Mozilla/5.0 (Windows NT 6.1;
WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76
Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2745 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/1year/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2745 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/10days/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:37:11 -0800] "-" 408 144 "-" "-"
74.121.28.6 - - [22/Jan/2014:09:37:11 -0800] "-" 408 144 "-" "-"

nothing in /var/log/apache2/error.log

tail -f /usr/local/ixp/var/log/2014/01/20140122.log
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Logger instantiated
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Serving Smokeping
infra_1.vlan_1.vlanint_11_ipv4 to bthompson from [
https://portal.nwax.net/smokeping/?displaymode=a;start=now-3hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
]
2014-01-22T09:39:20-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/?displaymode=a;start=now-3hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Logger instantiated
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Serving Smokeping
infra_1.vlan_1.vlanint_11_ipv4 to bthompson from [
https://portal.nwax.net/smokeping/?displaymode=a;start=now-1year;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
]
2014-01-22T09:39:20-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/?displaymode=a;start=now-1year;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Logger instantiated
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Serving Smokeping
infra_1.vlan_1.vlanint_11_ipv4 to bthompson from [
https://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
]
2014-01-22T09:39:20-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Logger instantiated
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Serving Smokeping
infra_1.vlan_1.vlanint_11_ipv4 to bthompson from [
https://portal.nwax.net/smokeping/?displaymode=a;start=now-10days;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
]
2014-01-22T09:39:20-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/?displaymode=a;start=now-10days;end=now;target=infra_1.vlan_1.vlanint_11_ipv4

mysql> SELECT smokeping FROM ixp;
+-----------------------------------+
| smokeping |
+-----------------------------------+
| https://portal.nwax.net/smokeping |
+-----------------------------------+
1 row in set (0.00 sec)

root@portal:~# php -r 'echo file_get_contents( "
https://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4"
);'
PHP Deprecated: Comments starting with '#' are deprecated in
/etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
PHP Warning: file_get_contents(
https://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4):
failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
in Command line code on line 1

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Wed, Jan 22, 2014 at 2:01 AM, barryo notifications@github.com wrote:

Can you restart Memcached just to be sure. The cached IXP object is
flushed on an update but let's be certain.

No joy, still getting extra slash

So, can you:

  • post the Apache log of the request so we can see what effect if any
    the update had;
  • post the MySQL query from above again to confirm the database update;
  • restart memcache.

If all that fails, can you try running the following on the command line:

php -r 'echo file_get_contents( "https://..." );'

where you replace https://... with the full Smokeping URL from the logs.
Post the command you run and the output (as long as the output isn't a full
image!).


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-33007551
.

pdxmaverick commented Jan 22, 2014

ok restarted memcached, no joy

tail -f /var/log/apache2/ssl_access.log
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/member-drilldown/ixp/1/vi/11 HTTP/1.1" 200 4098 "
https://portal.nwax.net/ixp/statistics/member-drilldown/shortname/acsalaska/category/bits/monitorindex/1"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET /ixp/js/min.bundle-v35.js
HTTP/1.1" 304 385 "https://portal.nwax.net/ixp/admin/index" "Mozilla/5.0
(Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/css/min.bundle-v35.css HTTP/1.1" 304 239 "
https://portal.nwax.net/ixp/admin/index" "Mozilla/5.0 (Windows NT 6.1;
WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76
Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/3hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2745 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/1year/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2745 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/10days/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:36:50 -0800] "GET
/ixp/smokeping/retrieve-image/ixp/1/scale/30hours/infra/1/vlan/1/vlanint/11/proto/ipv4
HTTP/1.1" 200 2600 "
https://portal.nwax.net/ixp/smokeping/member-drilldown/ixp/1/vi/11"
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/32.0.1700.76 Safari/537.36"
74.121.28.6 - - [22/Jan/2014:09:37:11 -0800] "-" 408 144 "-" "-"
74.121.28.6 - - [22/Jan/2014:09:37:11 -0800] "-" 408 144 "-" "-"

nothing in /var/log/apache2/error.log

tail -f /usr/local/ixp/var/log/2014/01/20140122.log
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Logger instantiated
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Serving Smokeping
infra_1.vlan_1.vlanint_11_ipv4 to bthompson from [
https://portal.nwax.net/smokeping/?displaymode=a;start=now-3hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
]
2014-01-22T09:39:20-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/?displaymode=a;start=now-3hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Logger instantiated
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Serving Smokeping
infra_1.vlan_1.vlanint_11_ipv4 to bthompson from [
https://portal.nwax.net/smokeping/?displaymode=a;start=now-1year;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
]
2014-01-22T09:39:20-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/?displaymode=a;start=now-1year;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Logger instantiated
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Serving Smokeping
infra_1.vlan_1.vlanint_11_ipv4 to bthompson from [
https://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
]
2014-01-22T09:39:20-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Logger instantiated
2014-01-22T09:39:20-08:00 DEBUG (7) [74.121.28.6]: Serving Smokeping
infra_1.vlan_1.vlanint_11_ipv4 to bthompson from [
https://portal.nwax.net/smokeping/?displaymode=a;start=now-10days;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
]
2014-01-22T09:39:20-08:00 NOTICE (5) [74.121.28.6]: Could not load
Smokeping
https://portal.nwax.net/smokeping/?displaymode=a;start=now-10days;end=now;target=infra_1.vlan_1.vlanint_11_ipv4

mysql> SELECT smokeping FROM ixp;
+-----------------------------------+
| smokeping |
+-----------------------------------+
| https://portal.nwax.net/smokeping |
+-----------------------------------+
1 row in set (0.00 sec)

root@portal:~# php -r 'echo file_get_contents( "
https://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4"
);'
PHP Deprecated: Comments starting with '#' are deprecated in
/etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
PHP Warning: file_get_contents(
https://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4):
failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found
in Command line code on line 1

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Wed, Jan 22, 2014 at 2:01 AM, barryo notifications@github.com wrote:

Can you restart Memcached just to be sure. The cached IXP object is
flushed on an update but let's be certain.

No joy, still getting extra slash

So, can you:

  • post the Apache log of the request so we can see what effect if any
    the update had;
  • post the MySQL query from above again to confirm the database update;
  • restart memcache.

If all that fails, can you try running the following on the command line:

php -r 'echo file_get_contents( "https://..." );'

where you replace https://... with the full Smokeping URL from the logs.
Post the command you run and the output (as long as the output isn't a full
image!).


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-33007551
.

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 22, 2014

Member

Brian - the links from your IXP Manager logs and the file_get_contents() are all working fine for me. I.e. this link works.

BTW, the trailing slash here is fine now that you have a working DirectoryIndex set in Apache.

It does raise one thing - you need to put an IP access restriction on that as I can access those graphs from here,

So - now the question is, why does this not work locally. Most likely you have a DNS / /etc/hosts issue.

Can you paste your /etc/hosts file. I suspect you need a single entry for portal.nwax.net which matches:

198.236.254.46  portal.nwax.net
Member

barryo commented Jan 22, 2014

Brian - the links from your IXP Manager logs and the file_get_contents() are all working fine for me. I.e. this link works.

BTW, the trailing slash here is fine now that you have a working DirectoryIndex set in Apache.

It does raise one thing - you need to put an IP access restriction on that as I can access those graphs from here,

So - now the question is, why does this not work locally. Most likely you have a DNS / /etc/hosts issue.

Can you paste your /etc/hosts file. I suspect you need a single entry for portal.nwax.net which matches:

198.236.254.46  portal.nwax.net
@pdxmaverick

This comment has been minimized.

Show comment
Hide comment
@pdxmaverick

pdxmaverick Jan 22, 2014

Barry, that was the issue. The server is actually a private address behind
NAT. I added portal.nwax.net 127.0.0.1 and now my graphs work.

THANK YOU

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Wed, Jan 22, 2014 at 10:54 AM, barryo notifications@github.com wrote:

Brian - the links from your IXP Manager logs and the file_get_contents()are all working fine for me. I.e. this
link workshttps://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
.

BTW, the trailing slash here is fine now that you have a working
DirectoryIndex set in Apache.

It does raise one thing - you need to put an IP access restriction on that
as I can access those graphs from here,

So - now the question is, why does this not work locally. Most likely you
have a DNS / /etc/hosts issue.

Can you paste your /etc/hosts file. I suspect you need a single entry for
portal.nwax.net which matches:

198.236.254.46 portal.nwax.net


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-33054555
.

pdxmaverick commented Jan 22, 2014

Barry, that was the issue. The server is actually a private address behind
NAT. I added portal.nwax.net 127.0.0.1 and now my graphs work.

THANK YOU

Brian Thompson
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
www.iovation.com http://www.iovation.com/

On Wed, Jan 22, 2014 at 10:54 AM, barryo notifications@github.com wrote:

Brian - the links from your IXP Manager logs and the file_get_contents()are all working fine for me. I.e. this
link workshttps://portal.nwax.net/smokeping/?displaymode=a;start=now-30hours;end=now;target=infra_1.vlan_1.vlanint_11_ipv4
.

BTW, the trailing slash here is fine now that you have a working
DirectoryIndex set in Apache.

It does raise one thing - you need to put an IP access restriction on that
as I can access those graphs from here,

So - now the question is, why does this not work locally. Most likely you
have a DNS / /etc/hosts issue.

Can you paste your /etc/hosts file. I suspect you need a single entry for
portal.nwax.net which matches:

198.236.254.46 portal.nwax.net


Reply to this email directly or view it on GitHubhttps://github.com/inex/IXP-Manager/issues/122#issuecomment-33054555
.

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 23, 2014

Member

Great news :)

Note that your Smokeping is exterally available via https://portal.nwax.net/smokeping/. You might want to lock that down to internal access only.

Member

barryo commented Jan 23, 2014

Great news :)

Note that your Smokeping is exterally available via https://portal.nwax.net/smokeping/. You might want to lock that down to internal access only.

@barryo barryo closed this Jan 23, 2014

@barryo

This comment has been minimized.

Show comment
Hide comment
@barryo

barryo Jan 23, 2014

Member

I've add a new section on Apache config and trouble shooting to the Smokeping documentation based on this.

Member

barryo commented Jan 23, 2014

I've add a new section on Apache config and trouble shooting to the Smokeping documentation based on this.

@MHammett

This comment has been minimized.

Show comment
Hide comment
@MHammett

MHammett Jul 28, 2016

I would also like to note that if you configured it incorrectly (with the server's public instead of loopback IP) to start with and then change your public IP, you'll break your graphs. They'll take forever to timeout, then displaying, "No image found".

Do it right the first time (by using 127.0.0.1) so you don't have to do it again. Added for future Googlers.

MHammett commented Jul 28, 2016

I would also like to note that if you configured it incorrectly (with the server's public instead of loopback IP) to start with and then change your public IP, you'll break your graphs. They'll take forever to timeout, then displaying, "No image found".

Do it right the first time (by using 127.0.0.1) so you don't have to do it again. Added for future Googlers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment