[ixpmanager] Smokeping Integration

Mike Hammett ixp-manager at ics-il.net
Mon Jan 21 15:06:08 GMT 2019


I found it. I didn't read the documentation thoroughly to see that the grapher backends were defined all in one line. I had largely just copypasta. 

http://p.ip.fi/dEac 



[2019-01-21 10:00:01] production.ERROR: No graphing provider enabled (see configs/grapher.php) for smokeping {"exception":"[object] (IXP\\Exceptions\\Services\\Grapher\\BadBackendException(code: 0): No graphing provider enabled (see configs/grapher.php) for smokeping at /srv/ixpmanager/app/Services/Grapher.php:120) 





GRAPHER_BACKENDS="mrtg" 
... 

GRAPHER_BACKENDS="...|smokeping|..." 



I change that to: 





GRAPHER_BACKENDS="mrtg|smokeping" 


and it works. 

*sigh* If only I could figure it out one step earlier. I suppose running into the token bug where I couldn't get anything to work for a bit didn't help matters much. I started regressing and just stopped until I had confirmation. 





----- 
Mike Hammett 
Intelligent Computing Solutions 

Midwest Internet Exchange 

The Brothers WISP 

----- Original Message -----

From: "Barry O'Donovan" <barry.odonovan at inex.ie> 
To: "INEX IXP Manager Users Mailing List" <ixpmanager at inex.ie>, "Mike Hammett" <ixp-manager at ics-il.net> 
Sent: Monday, January 21, 2019 12:41:28 AM 
Subject: Re: [ixpmanager] Smokeping Integration 

Mike, 

Mike Hammett wrote on 20/01/2019 18:17: 
> I was running update-smokeping.sh and was getting EOF errors. 
> 
> I noticed two double quotes in line 58, so I removed one of them. I no 
> longer get EOF errors 

opps, thanks, fix committed for that. 

> but I'm not getting significantly further. 
> 
> root at ixpm:/srv/ixpmanager# ./update-smokeping.sh -d 
> Processing 1 - ipv4.... FAILED targets-vlan1-ipv4.cfg 
> Processing 1 - ipv6.... FAILED targets-vlan1-ipv6.cfg 
> Smokeping not reloading as no reload scheduled. 
> 
> 
> I did change the API, URL, smokeping, smokeping reload, and vlans 
> variables to suit my configuration. I've pasted them below in case 
> anyone more competent than I would notice anything. I will change the 
> API key once I figure this out. The URL will actually change before 
> going production as well. 

If you run this on the command like: 

curl -v --data "backend=smokeping&protocol=ipv4&vlanid=1" -X POST -H 
"Content-Type: application/x-www-form-urlencoded" -H 
"X-IXP-Manager-API-Key: 
RXITGKRgFVPz1MPKsR3vNV2AgSH6mRP5Pd74rGSLoH0yCTtb" 
'http://199.168.131.10/api/v4/grapher/config?backend=smokeping' 

you'll see the response headers have: 

< HTTP/1.1 500 Internal Server Error 


Can you tail storage/logs/laraval.log while running this and see what 
the error is? 

We have recently updated the webpage for support: 

https://www.ixpmanager.org/support 

Please see the section 'The Best Way to Ask for Help' - it includes a 
link to a useful pastebin for copying and pasting logs. 

Cheers, 

- Barry 







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20190121/edce59f7/attachment-0001.html>


More information about the ixpmanager mailing list