Skip to content

TKMAX777/LinuxTopSlackSynchronizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinuxTopSlackSynchronizer

About

This program uses the top command to display programs with high CPU utilization in Slack.

Install

go install github.com/TKMAX777/LinuxTopSlackSynchronizer@latest

Usage

Set the following environment variables

PROCESS_NUMBER='Number of processes to display'
SLACK_TOKEN='xoxb-*****'
SLACK_REGULAR_CHANNEL='Slack channel ID'
SLACK_ALERT_CHANNEL='Slack channel ID'
SLACK_ALERT_MODE='on / off'
SLACK_ALERT_LEVEL='CPU utilization when sending Alert'
SLACK_SEND_INTERVAL='Interval for updating Slack messages [second]'

Slack Scopes

channels:history 
channels:read

chat:write
chat:write.customize

About

This program uses the top command to display programs with high CPU utilization in Slack.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages