Skip to content

richellin/monitor-send2slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monitor-send2slack

  • Send a message to slack using shell script

Use

bash shell script
Incoming Webhooks of Slack

Change

vi monitor.sh
# Your process list
processes=(nginx php-fpm)

# Your host list
hosts=(127.0.0.1 localhost)

vi send.sh
# Your channel name : #general
channel="#general"

# Your hook url
hook_url='https://hooks.slack.com/services/##########################'

Start

sh monitor.sh

#or clontab
@reboot /Your Path/monitor.sh

About

Send a msessage to slack using a shell script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages