Send server statistics from Slack
BotsArtificial IntelligenceDocument/File
What it does
When someone runs the get server stats command in Slack, this automation executes a script on the server to retrieve processor usage and IP address. It posts the results back to the channel so the team has the information instantly.
Who it's for
IT teams who need to check server statistics from Slack without logging into a remote system.
How teams use this
Check processor usage from Slack
Run the get server stats command with the processor parameter to retrieve current load percentage on the server. The result appears in the channel thread without needing remote access.
Retrieve server IP address instantly
Query the server IP address from Slack during troubleshooting or network configuration tasks. The automation executes the script and posts the address back to the conversation.
Monitor multiple servers from one channel
Set up the command to accept a server name parameter so the team can query different servers from a shared Slack channel. Only the script parameter changes to target each server.
Alert on high processor usage
Add a condition to check if processor usage exceeds a threshold and send an alert to an on-call channel. The automation still retrieves the statistics and only the notification destination changes based on the result.
How it works
- Run the get server stats command. Type the get server stats command in a Slack channel or direct message with the server type parameter.
- Execute the script on the server. Onprem Command Line Scripts runs the script on the server to query processor usage and IP address based on the type parameter provided.
- Post results to Slack. Reply in the same Slack conversation with the processor usage and IP address so the team sees the server statistics.