Nixstats notification
Add Nixstats notifications via a new WebHook in Rocket.Chat
In Rocket.Chat go to Administration > Workspace > 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.
Hit 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 Rocket.Chat URL you've copied in step 4.
Paste this javascript in the "Script" textarea on Rocket.Chat webhook settings
Render nixstats graphs in Rocket.Chat
Add Nixstats notifications via a new WebHook in Rocket.Chat
In Rocket.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 URLs.Avatar 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 Rocket.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 IDs and load average.
ns graphs [serverid]
to retrieve a graph of Memory, Network, Load average and Disk usage of the specified server.
Last updated