Nixstats notification
Add Nixstats notifications via a new WebHook in Ministry.Chat
In Ministry.Chat go to "Administration"->"Integrations" and create "New Integration"
Choose Incoming WebHook
Follow all instructions like Enable, give it a name, link to channel etc. Set "Enable Script" to true and enter the javascript in the "Script" box
Press Save changes and copy the Webhook URL (added just below the script box)
Go to https://nixstats.com -> Settings -> Notification Contacts -> Add (or Edit a contact) contact
Paste the Ministry.Chat url you've copied in step 4
Paste this javascript in the "Script" textarea on Ministry.Chat webhook settings
Render nixstats graphs in Ministry.Chat
Add Nixstats notifications via a new WebHook in Ministry.Chat
In Ministry.Chat go to "Administration"->"Integrations" and create "New Integration"
Choose Outgoing WebHook
Select Message Sent as Event trigger
Enter ns as trigger word
Enter
<https://api.eu.nixstats.com/v1/>
as URLsAvatar URL
<https://nixstats.com/images/favicon.png>
Token, this is your nixstats API token, create an API key.
Script Enabled set to True
Paste this javascript in the "Script" textarea on Ministry.Chat webhook settings
After saving the data you can use the following commands to retrieve data.
ns servers list
to list your servers with their ID's and load average.
ns graphs [serverid]
to retrieve a graph of Memory, Network, Load average and Disk usage of the specified server.
Last updated