Comments (11)
I tried to compile it on my own with a newer mattermost-server version and the demo app from https://github.com/mattermost/mattermost-plugin-demo/ but it still failed with
/usr/bin/go vet ./...
github.com/cpanato/mattermost-plugin-alertmanager/server [github.com/cpanato/mattermost-plugin-alertmanager/server.test]
server/webhook.go:23:14: undefined: notify.WebhookMessage
make: *** [Makefile:69: govet] Fehler 2
from mattermost-plugin-alertmanager.
@ltsavar thanks for the report, i will try to find some time to fix that
from mattermost-plugin-alertmanager.
same here you need to set an
existing team name
from mattermost-plugin-alertmanager.
for example the team name you can get in the URL (in the screenshot marked in the red box) and team (blue)
from mattermost-plugin-alertmanager.
Also tested with 5.17 and works
from mattermost-plugin-alertmanager.
The release version from: https://github.com/cpanato/mattermost-plugin-alertmanager/releases/download/v0.0.1/com.cpanato.alertmanager-0.0.1.tar.gz
is not working for me.
{"level":"error","ts":1579876719.0602252,"caller":"mlog/log.go:174","msg":"Unable to activate plugin","plugin_id":"com.cpanato.alertmanager","error":"unable to start plugin: com.cpanato.alertmanager: Channel.IsValid: Name must be 2 or more lowercase alphanumeric characters, id=75i5gjodp3bb5k5e5xndai67hr","errorVerbose":"Channel.IsValid: Name must be 2 or more lowercase alphanumeric characters, id=75i5gjodp3bb5k5e5xndai67hr\nunable to start plugin: com.cpanato.alertmanager\ngithub.com/mattermost/mattermost-server/plugin.(*Environment).Activate\n\t/go/src/github.com/mattermost/mattermost-server/plugin/environment.go:251\ngithub.com/mattermost/mattermost-server/app.(*App).SyncPluginsActiveState\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:100\ngithub.com/mattermost/mattermost-server/app.(*App).InitPlugins.func2\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:183\ngithub.com/mattermost/mattermost-server/config.(*emitter).invokeConfigListeners.func1\n\t/go/src/github.com/mattermost/mattermost-server/config/emitter.go:35\nsync.(*Map).Range\n\t/usr/local/go/src/sync/map.go:333\ngithub.com/mattermost/mattermost-server/config.(*emitter).invokeConfigListeners\n\t/go/src/github.com/mattermost/mattermost-server/config/emitter.go:33\ngithub.com/mattermost/mattermost-server/config.(*commonStore).set\n\t/go/src/github.com/mattermost/mattermost-server/config/common.go:90\ngithub.com/mattermost/mattermost-server/config.(*FileStore).Set\n\t/go/src/github.com/mattermost/mattermost-server/config/file.go:107\ngithub.com/mattermost/mattermost-server/app.(*App).SaveConfig\n\t/go/src/github.com/mattermost/mattermost-server/app/config.go:378\ngithub.com/mattermost/mattermost-server/app.(*App).EnablePlugin\n\t/go/src/github.com/mattermost/mattermost-server/app/plugin.go:333\ngithub.com/mattermost/mattermost-server/api4.enablePlugin\n\t/go/src/github.com/mattermost/mattermost-server/api4/plugin.go:298\ngithub.com/mattermost/mattermost-server/web.Handler.ServeHTTP\n\t/go/src/github.com/mattermost/mattermost-server/web/handlers.go:148\ngithub.com/NYTimes/gziphandler.GzipHandlerWithOpts.func1.1\n\t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/NYTimes/gziphandler/gzip.go:336\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:1995\ngithub.com/gorilla/mux.(*Router).ServeHTTP\n\t/go/src/github.com/mattermost/mattermost-server/vendor/github.com/gorilla/mux/mux.go:212\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2774\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1878\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1337"}
the team as just 2 Chars.
from mattermost-plugin-alertmanager.
@ltsavar is not complaining about the Team is failing in the Channel
Channel.IsValid: Name must be 2 or more lowercase alphanumeric characters
please review your channel name
from mattermost-plugin-alertmanager.
I did. Its correct. I tried an other one just in case. But still not working.
Same error but both channel exists.
from mattermost-plugin-alertmanager.
@ltsavar can you send to me your config? otherwise it is very hard to help you, since I'm able to run the plugin using lastest master and version 5.17.0 as well
from mattermost-plugin-alertmanager.
so the problem seems to be if i use just one Uppcase in the channel or in the team it brakes.
if i use lowercase everywhere its working. Maybe thats something we could quickfix somehow? :)
from mattermost-plugin-alertmanager.
I glad this is working.
all channels and team are lower case, the uppercase you see is the display name which can be any name.
closing this issue
from mattermost-plugin-alertmanager.
Related Issues (20)
- question about color bars HOT 4
- Rename the plugin and and update readme HOT 2
- Expire Silence button in the post is not working HOT 6
- Expiring a silence is a bit unclear as the configuration number is not obvious. HOT 2
- Intermittent issue - failed to list alerts... context canceled HOT 2
- Initial webhook event when an alert starts is not being delivered HOT 19
- Working with multiple teams? HOT 6
- Create 0.0.2 release HOT 2
- Plugin crashes on notification HOT 3
- Failed to start plugin 0.1.0 HOT 4
- Potential Alertmanager plugin improvements HOT 1
- duplicate alerts if alertmanager is running in HA
- Custom Templates HOT 2
- Support for differentiating multiple clusters HOT 1
- failed to start plugin 0.2.0 HOT 9
- Unable to enable the plugin on MM 9.4.1 HOT 3
- When adding multiple Alertmanager configs in the plugin, messages are posted to a random channel HOT 4
- Error with plugin HOT 7
- Support for Mattermost Cloud HOT 2
- alerts for different teams all ending up in the same channel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost-plugin-alertmanager.