A Nagios plugin to send notifications to MS teams
Posted: Thu Jul 18, 2019 4:46 am
Microsoft Teams is becoming more and more popular and nowhere do I see descriptions of how to make a notification to MS Teams.
I found this plugin https://exchange.nagios.org/directory/P ... ms/details and I tested it in the command line.
When I test the command I have notification on channel in MS Teams
export NAGIOS_HOSTALIAS="hoge101" NAGIOS_SERVICEDESC="http" NAGIOS_SERVICESTATE="WARNING" NAGIOS_SERVICEOUTPUT="test output"
./nagios-msteams.pl --webhook 'https://outlook.office.com/webhook/xxx' I have notofication in MS Teams channel
Now I have problem with configure commands and contacts.
I use manual https://assets.nagios.com/downloads/nag ... ios-XI.pdf and compare with this one https://assets.nagios.com/downloads/nag ... ios-XI.pdf but it is not clearly for me.
How I can define commands and appropriate services for this notification? Any ideas?
Best wishes
I found this plugin https://exchange.nagios.org/directory/P ... ms/details and I tested it in the command line.
When I test the command I have notification on channel in MS Teams
export NAGIOS_HOSTALIAS="hoge101" NAGIOS_SERVICEDESC="http" NAGIOS_SERVICESTATE="WARNING" NAGIOS_SERVICEOUTPUT="test output"
./nagios-msteams.pl --webhook 'https://outlook.office.com/webhook/xxx' I have notofication in MS Teams channel
Now I have problem with configure commands and contacts.
I use manual https://assets.nagios.com/downloads/nag ... ios-XI.pdf and compare with this one https://assets.nagios.com/downloads/nag ... ios-XI.pdf but it is not clearly for me.
How I can define commands and appropriate services for this notification? Any ideas?
Best wishes