Is there a way to send the metrics of a Peplink modem out to a server? I like the API endpoints on the modem but when the modern fails over to the WAN connection, I’m not able to hit https://<device_ip_address>/api/, so if the Modem could send the data to an API endpoint or to a servers UDP port that would be great.
Is that something that can be done?
Yes Incontrol has them - are you using InControl?
Wired and Wireless WAN metrics are available on local Device API and on InControl API.
Yes on some modems, just the 1 year-free subscription.
I can’t hit the modem’s API when it’s using its WAN connection, only when it’s using its cell connection and WAN is priority 1.
I was hoping the modem could send that info to an API endpoint or TCP port on a server via its public IP address.
Why not? Do you only have routing via Cell? Can you use a vpn?
No not possible. YOU can send syslog data but it doesn’t send performance data.
The modem is behind a Starlink router and I don’t know what the IP address of it is and can’t do any port forwarding to it when on the WAN (Starlink).
OK. So you could:
Use IC2 and pay the annual subscription from year 2 to retain the ability to access IC2 API.
Host a fusionhub on vultr for $6/month and port forward from its public IP over PepVPN to the api of the Peplink router.
Run ngrok on a lan side device https://ngrok.com/
Perhaps you can export data from InControl? Just a guess.
Incontrol2 also has a lesser known notifications post option as well. Where it posts specific notifications to your server. Go to your group level notifications and enable the notification types and the URL to post to. Not sure if that would cover your metric needs?
Incontrol2 also has a lesser known notifications post option as well. Where it posts specific notifications to your server.trol2 also has a lesser known notifications post option as well. Where it posts specific notifications to your server.
Incontrol2 also has a lesser known notifications post option as well. Where it posts specific notifications to your server.trol2 also has a lesser known notifications post option as well. Where it posts specific notifications to your server.Incontrol2 also has a lesser known notifications post option as well. Where it posts specific notifications to your server.trol2 also has a lesser known notifications post option as well. Where it posts specific notifications to your server.
EDITED (again): I am able to call the GET /api/info.firmware since it doesn’t require authentication but anything else requires authentication. I always get code: 401 and Unauthorized when calling POST /api/auth.client. Not sure why though, the credentials I’m passing in are the exact same I use to log into the modem.
EDITED: I now see the problem, making API calls successfully now.
On some of my equipment, I can make API calls so I can call the modem’s private IP that way, verifying I can do that on other devices.
That said, I’m experimenting with making the API calls with a modem I have on hand and I keep getting the response below with every API call.
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>