Need simple step by step to get Pushover notifications for interfaces

I have the android app, Pushover, and would like to use it to receive up and down going all interfaces notifications.(Of the router of course)

What are simple ways of doing this.

Without telegram and wechat

The old way is SNMP alerts to network management station.

Create a hotplug script that will talk to the service using their API.
That is quite easy to implement, but I'm wondering how you will send notifications when your WAN interface goes down.

1 Like

What about netifd?

Is there a way to make a simple bash script

AI Gemini came up with this:

#!/bin/bash
INTERFACE="$1"
ACTION="$2"

API_TOKEN="your_api_token"
USER_KEY="your_user_key"

# Customize the notification title and message
TITLE="Network Status Change"

if [ "$ACTION" = "up" ]; then
  MESSAGE="Interface $INTERFACE is now up."
elif [ "$ACTION" = "down" ]; then
  MESSAGE="Interface $INTERFACE is now down."
fi

# Send the Pushover notification
curl -s \
    --form-string "token=$API_TOKEN" \
    --form-string "user=$USER_KEY" \
    --form-string "message=$MESSAGE" \
    --form-string "title=$TITLE" \
    https://api.pushover.net/1/messages.json`Preformatted text

Keep cooking, of 1000 variations your AI spits out one will certainly work.
You have to write script yourself.

2 Likes

Whoa, First it's not "my AI"

second My limited Scripting knowledge is more or less basic

But Please if you have a answer to my original question to this post other than criticism, please feel free to share.

You kind of dont need human help.
Simplest way is to study API docs and write the script.

If I wanted to do that I wouldn't have asked. But thanks for the advice

It is a commercial service and curl command is on their first page. Your AI script is not functional, make your own. There are no volunteers to fix AI hallucinations.

1 Like

Out of curiosity, when WAN goes down, how will you receive a notification?

2 Likes

If I'm local I can also be notified

I've just decided if I have an issue just use OpenWrt's Manager apk

Much cheaper way is to derive absnce of wan from internet not working? Something pre-school kids can understand nowadays.

Preschool? lolz that's hyperbole bruh.

But please keep the underhanded comments coming after all it is election day

:us_outlying_islands::us:

You can't, the message still have to bounce off a central server.

But as @brada4 pointed out, if internet is down, your kids will start screaming within 5 sec.

1 Like

Forgive me if my context was off. I was referring to the actual app I'm using (OpenWrt manager apk file)

I verified it works via VPN to WAN and LAN as it doesn't need a central server. All you need is your phone with the app.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.