>remove a comment/downtime/acknowledgement >acknowledge problematic hosts or services >display a summary of current host and service status numbers >request a service status (or short "ss") of any or all services >request a host status (or short "hs") of any or all hosts >answers simply with pong if slack bot is running d, -daemon define if the script is run as a systemd daemon Use the botįollowing commands are currently implemented: Icinga-slack-bot comes with a default config file Run the bot usage: icinga-bot.py [-l You can also use this icon to represent the bot in Slack properly. Use the displayed Bot User OAuth Access Token to add to your config. Confirm this in the bottom by selecting Allow.Go to "OAuth & Permissions" and use the Install App to Workspace button.Add a display name and the bot username like "icinga2".Go to "App Home" and use the Add legacy Bot User button.Just give it a name and select the workspace.You need to install a Classic Slack Bot app Permissions = įor further details check the Icinga2 API documentation Get Slack Bot Token This would be an Icinga Slack bot API user # vim /etc/icinga2/conf.d/nf Now you should be able to run the image with following command docker run -d -v /PATH/TO/icinga-bot.ini:/app/icinga-bot.ini -name bot icinga-bot Icinga API permissions Sudo systemctl enable icinga-slack-bot Run with Docker git clone Ĭopy the config from the example to icinga-bot.ini and edit Run as a serviceīut needs to be changed if the installation path is different > cp icinga-bot.iniĬhange config options according your environment.Īfter you entered the Slack tokens you should be able to start the bot. > It is recommended to create your own config Most likely the start will fail as the config is not fully set up. Now you would be able to start the bot with Here we assume we install the bot in /opt cd /opt Setting up the virtual env would be done like this On RedHat/CentOS you need to install python3.6 and virtualenv from EPEL first yum install python36-virtualenv Icinga2 instance with API feature enabled.Used to narrow down the returned status list. Icinga2 API to get Host/Service status details. It can be used to interact with Icinga2 from your Slack client.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |