Jump to content

Search the Community

Showing results for tags 'Notifications'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. Your server's alerts are set up in Instances → your server → Notifications: choose how you hear about a script compile error (an alert on the instance page, an email, or both), and add Discord webhooks that post errors, game updates, mod updates, scheduled restarts and our announcements straight to your Discord channels. Each webhook picks its own message types, so script errors can go to a private admin channel while updates and restarts go to a public one. Links back to the panel are off by default, so a public channel never learns your panel address. On this page Open the Notifications tabUnderstand what happens when a script fails to compileChoose how you hear about script errorsCreate a webhook in DiscordAdd the webhook in the panelChoose what each webhook getsDecide whether messages link to the panelSend a test and manage your webhooksWhat the messages look like in DiscordTroubleshootingFrequently asked questions Before you start You are the server's owner. The Notifications tab sits next to Members on the instance page and, like it, is only shown to the owner; members who open it read Only the instance owner can change its notifications.For email alerts: your account, and those of any members you want to email, linked to a forum account. Emails go to the address on each person's forum account; the panel never sees or stores it.For Discord: a Discord server where you have the Manage Webhooks permission, and a channel to post into. Use a private channel for anything that includes script errors. 1. Open the Notifications tab Go to Instances → your server and choose the Notifications tab in the row under Overview. The page has two cards: Script compile errors: what happens in the panel and by email when a script fails to compile.Discord: your webhooks, each closed to a single line until you open it, and Add a webhook underneath. A closed webhook line shows its name, how many message types it takes and when it last posted, or a red Not working badge if Discord has stopped accepting it. The Notifications tab: script error alerts and email at the top, Discord webhooks underneath, each one collapsed to a single line. 2. Understand what happens when a script fails to compile If a script error stops your server compiling its scripts — a typo in init.c, a broken mod, two mods that clash — the server cannot finish starting and nobody can join. The panel spots this within seconds of the start, then: Shows a red Script compile error: the server can't start alert under Overview and in the notification bell, with the error, the file, the line, which mod or file is to blame, and the lines of script around the mistake.Stops the server if it is stuck on the error, about 30 seconds after it appears. Server Status then reads Not running: script compile error (fix it, then start the server).Holds automatic restarts, so the panel does not keep relaunching a server that will fail the same way every time. Fix the file the alert names, then press Start (or Restart). The alert clears itself as soon as the server starts again, and also when you stop the server yourself. If the new start fails too, you get a new alert for it. Note: The alert only appears for scripts that fail to compile. Script errors that happen while the server is running (often called VMEs) do not stop the server and are not reported here; they stay in the server's own logs. A DayZ script compile error as the panel reports it: the error, the file and line, who is to blame, and the failing line of init.c. 3. Choose how you hear about script errors In the Script compile errors card: OptionWhat it doesShow an alert on the instance pageThe red alert under Overview and in the bell. On by default.Send an email alertEmails the people you tick, through the forum, to the address on each person's forum account. Off by default. When Send an email alert is on, a list of you and your members appears. Tick who should get it. Anyone without a linked forum account is greyed out with no forum account linked, because the forum is what sends the email. Click Save when you are done; Reset puts back what was saved. If the card reads Email isn't available on this panel right now; the alert still shows., email sending is switched off on our side for the moment; the alert on the instance page and Discord still work. Note: Each failed start is emailed once. If the same error happens again within six hours, it is not emailed a second time, so a server that fails again after a restart does not flood your inbox. The alert on the instance page still updates every time. Script errors can also go to Discord: pick Script compile errors on a webhook in the next steps. 4. Create a webhook in Discord In Discord, open Server Settings → Integrations → Webhooks and click New Webhook. Give it a name, pick the channel it should post into, then click Copy Webhook URL. The URL looks like https://discord.com/api/webhooks/1234567890/…. Careful: Treat the webhook URL like a password. Anyone who has it can post into that channel. Paste it only into the panel, and if it leaks, delete the webhook in Discord and create a new one. One webhook posts into one channel. To send different things to different channels, create one webhook per channel and add each to the panel. 5. Add the webhook in the panel Back on the Notifications tab, click Add a webhook. Four numbered steps open: Name it: anything that tells your webhooks apart, such as the channel name #admin-alerts.Paste the webhook URL from Discord: the URL you copied. Only Discord webhook URLs are accepted; anything else is refused with That isn't a Discord webhook URL. It should look like https://discord.com/api/webhooks/…Choose what it gets: tick the message types this channel should receive. The next step explains each one.Links to the server: whether messages link to your server's page in the panel. Off by default; see the step after next. Click Add webhook. The new webhook opens straight away so you can send a test. You can add up to ten webhooks per server. Adding a Discord webhook to a DayZ server in four steps: name it, paste the URL, choose the message types, decide on links. 6. Choose what each webhook gets Message typeWhen it is postedScript compile errorsThe server failed to compile its scripts: the error, file, line, blame and the script around it. Once per failed start.Game updatesA new DayZ server build was installed on your server, with the old and new build numbers.Mod updatesA newer version of one of your Workshop mods was installed, with a link to its Workshop page. Installing a mod for the first time, or going back to an older version, is not posted.Scheduled restartsA restart from the Scheduler started (with the time the server will restart), completed, failed (with the reason) or was cancelled. Restarts you start by hand are not posted.Notices for this serverMessages our team posts for your server, such as a welcome message.Panel-wide noticesMaintenance announcements and news for every server, or for the node your server runs on. A new webhook starts with everything except Script compile errors ticked. Careful: Script error messages include file paths, line numbers and lines of your server's script code. Only tick Script compile errors on a webhook that posts to a private channel: anyone who can read the channel can read them. Notices are only posted if they appear after you tick the type, so ticking Panel-wide notices today does not post last week's announcements. 7. Decide whether messages link to the panel With Include direct links to this server in the panel ticked, every message ends with a bold Go to link named after your server, and the server name and title link there too. That is the quickest way to get from a Discord alert to the fix. It is off by default because a link shows your panel's address and your server's ID. Only people with access to your server can open the page, but there is no reason to publish either in a channel anyone can read. Leave it off for public channels and turn it on for private ones, such as your admins'. With it off, messages still carry our logo and a link to dzservers.host. 8. Send a test and manage your webhooks Click a webhook's line to open it. Inside are its Name, its Webhook URL (shown masked), What it gets and Links, with these buttons: ButtonWhat it doesSave changesSaves a new name, message types or links setting. Greyed out until you change something.Send testPosts a test message to the channel right now, listing the types this webhook takes. At most once every ten seconds.Replace URLSwap in a new webhook URL from Discord, for example after you recreate the webhook. Messages still waiting are sent to the new one.RemoveAsks first, then stops all posting to that channel, including messages still waiting. The webhook itself stays in Discord: delete it there too if you no longer need it. The full URL is never shown again after you save it, only its masked form, because it works like a password. An opened Discord webhook: rename it, change its message types and links, send a test or remove it. 9. What the messages look like in Discord Every message is posted by DZSERVERS.HOST with our logo, has a coloured bar for its type (red for script errors, green for completed updates and restarts), and names your server. Times, such as when a scheduled restart will happen, show in each reader's own time zone. Messages never ping anyone. Mentions are switched off, so even a server or mod called @everyone cannot notify the whole Discord. An example script compile error message in a private admin channel, with links to the server turned on. Troubleshooting My webhook shows Not working and nothing arrives in Discord Why it happens. Discord told the panel that the webhook no longer exists, usually because it was deleted in Discord, its channel was deleted, or it was regenerated. The panel stops posting to it rather than keep failing. How to fix it. Create a new webhook in Discord (Server Settings → Integrations → Webhooks), open the webhook in the panel, click Replace URL, paste the new URL and click Save changes. Then use Send test to check it. The test message arrives but no other messages do Why it happens. The webhook only gets the message types ticked under What it gets, and only for things that happen after you ticked them. Restarts you start by hand are never posted, only ones from the Scheduler. How to fix it. Open the webhook and check What it gets. To see a Scheduled restarts message, let a scheduled restart run, or use Run now on a restart task in the Scheduler tab. My Discord messages have no link to the server Why it happens. Include direct links to this server in the panel is off for that webhook. It is off by default so that public channels do not show your panel address. How to fix it. If the channel is private, open the webhook, tick Include direct links to this server in the panel and click Save changes. New messages will carry the Go to link. My server will not restart by itself after a script compile error Why it happens. That is deliberate. After a failed compile the panel holds automatic restarts, because the server would fail the same way on every restart. How to fix it. Fix the file named in the alert (the File Browser or SFTP both work), then press Start. Starting, restarting or stopping the server by hand lifts the hold. I cannot tick a member for email alerts Why it happens. Their panel account is not linked to a forum account. Email alerts are sent through the forum to the address on the forum account, so there is nowhere to send them. How to fix it. Accounts created through the website are linked automatically. If a member's account is not, open a support ticket with their panel username and we will link it; then tick them and click Save. I do not see a Notifications tab on my server Why it happens. The tab is only shown to the server's owner, the same as Members. Members of a server cannot see or change its notifications. How to fix it. Ask the owner to set up the alerts, or to add the webhook for the channel you want. See staff permissions for what members can do. Frequently asked questions Can I send different notifications to different Discord channels? Yes: add one webhook per channel and tick different message types on each, for example script errors to a private admin channel and game updates, mod updates and restarts to a public one. You can add up to ten webhooks per server. Is it safe to post script errors to a public Discord channel? No: script error messages contain file paths, line numbers and lines of your server's script code, so send them only to a private channel your admins can see. For public channels, leave Script compile errors and the links option off. Are restarts I start by hand posted to Discord? No, only restarts run by the Scheduler are posted, at the moment they start (with the restart time), and when they complete, fail or are cancelled. Does removing a webhook in the panel delete it in Discord? No, removing it in the panel only stops the panel posting to it, including messages still waiting; delete the webhook in Discord as well if you no longer need it. Will a Discord message ever ping @everyone? No, mentions are switched off in every message the panel sends, so names containing @everyone or @here are shown as plain text and nobody is notified. How do I clear a script compile error alert? Fix the file and start the server: the alert clears as soon as the server starts again, and also when you stop the server yourself. You can also dismiss it with the cross on the alert. Related guides Automatic restarts with the Schedulerinstalling Steam Workshop modsStaff permissions and API keys
×
×
  • Create New...