#254: Implement Slack Alert Notifications for Nagios Monitoring - Jenrite/OE2-project-group-B GitHub Wiki
First I installed the packages required for the slack-nagios integration
Here is the plugin file nagios.pl within this I added two lines, which tells nagios what domain/channel in slack to send the messages to.
I implemented these commands, which alert slack whenever a condition is met.
After this I added a contact which can be added to any existing contacts/services to notify slack, this uses the alert command when the service goes in the red sending a message to our slack channel.
Ola fixed the missing shebang line: #! /usr/bin/perl which was stopping the notification system from working. I then updated a check for storage to have a red alert when Storage goes below 99% making it send off alerts to the channel. This is proof it worked.