{
  "id": 19291822,
  "title": "How to get a Discord alert when your Minecraft server goes down",
  "url": "https://urgent.news/2026/11/10/how-to-get-a-discord-alert-when-your-minecraft-server-goes-down",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-10T05:56:56.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/mineops/how-to-get-a-discord-alert-when-your-minecraft-server-goes-down-29m"
  },
  "original_language": "en",
  "account": "To receive instant notifications when your Minecraft server encounters issues, you can set up a free system using a Discord webhook, netcat, and a simple script. Start by creating a Discord webhook within the channel you want alerts sent to. Keep the webhook URL confidential, as anyone with access can post messages to that channel.\n\nNext, install netcat on your Linux machine, which allows for sending network packets. Save the provided bash script as ~/mc-check.sh and replace the webhook URL and the server details with your own information. Make the script executable with the command chmod +x ~/mc-check.sh.\n\nThe script checks the server's status every minute by querying its IP address and port using netcat. It stores a state file to avoid redundant alerts while the server remains down. When the server goes down, the script posts a notification to Discord stating \"Minecraft server is down.\" Conversely, when the server becomes operational again, it sends the message \"Minecraft server is back up.\"\n\nTo execute the script regularly, open the crontab by running crontab -e and add the line \"* * * * * $HOME /mc-check.sh.\" This configuration ensures the script runs once per minute.\n\nKeep in mind that this method only detects whether the server is accepting connections. It won't identify issues such as server freezing, heavy lag, full disk space, or a crash loop that restarts too quickly. For comprehensive monitoring, consider using a solution like MineOps, which provides real-time tracking of server performance metrics, Discord, Slack, or email notifications, and even automatic server restarts.",
  "summary": "If you run a Minecraft server at home, the first sign it's down is usually a message from a player. Here's a free way to hear about it first, with a short script, a cron job and a Discord webhook. It takes about ten minutes on any Linux box. 1. Make a Discord webhook In your Discord server, open the channel you want alerts in, then Edit Channel, Integrations, Webhooks, New Webhook. Copy the…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}