Skip to content

A bash script to send email notifications if a service is seen inactive on the server.

License

Notifications You must be signed in to change notification settings

KeepSec-Technologies/KStatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

KStatus

This bash script makes a cronjob to notify you when one of services is down configured 100% via user inputs prompts to make the configuration as easy as possible.

Prerequisites:

1) Being logged in as root or super-user

3) An internet domain pointing to your server, I recommend installing an SPF/DMARC record to pass through some email provider when sending your notifications.

That's it!

What's next:

1) Install the KStatus.sh file and make it executable.

To install it:

wget https://raw.githubusercontent.com/KeepSec-Technologies/KStatus/main/KStatus.sh

To make it executable:

chmod +x KStatus.sh

2) Then run:

./KStatus.sh

3) Answer the questions like the image below and you're good to go!

image

It will install everything you need and then we're done!

The cronjob is in /etc/cron.d/KStatus-[DOMAIN]-job

The cronjob logs is in /etc/KStatus/logs

If you want to remove only the configurations re-run the script and it will ask you for this: image

If you want to uninstall completely it do:

rm -f /etc/cron.d/KStatus-*
rm -fr /etc/KStatus

Feel free to modify the code if there's something that you want to change.

About

A bash script to send email notifications if a service is seen inactive on the server.

Topics

Resources

License

Stars

Watchers

Forks

Languages