Comments (5)
Hi, I'm glad to hear you're using my Telegram bot.
In advance, the problem has nothing to do with Debian 11, I myself have 2 installations running under Debian 11 without problems. (Just btw. because of the title)
I would advise against removing /sbin/runuser! This will lose the function "🔄 RESCHEDULE CHECK" as well as possible future functions.
All other functions, you are right, should work.
I also think I already found the issue, in the service it tries to run runuser under "/usr/sbin/runuser" but you installed it under "/sbin/runuser".
Try it this way:
ExecStart=/sbin/runuser -l mhs -c 'cd /omd/sites/mhs/local/share/main && /omd/sites/mhs/bin/python3 /omd/sites/mhs/local/share/main/telegram_bot.py'
If this works, I will extend the install script so that it checks where runuser is installed beforehand. I still don't understand why apt decided to install it here but okay.
from checkmk-telegram-plus.
Hi,
thanks for the reply. I think i now know why it is in /sbin instead of /usr/sbin. All my VMs (lxc) have it installed in /sbin but all my physical hosts and qemu VMs) have it in /usr/sbin.
I was using the Debian 11 standard lxc template (provided via proxmox). I even fired up a new VM and its again just in /sbin.
Weird that there is a difference.
I slightly changed to Exec for my site
ExecStart=/sbin/runuser -l main -c 'cd /omd/sites/main/local/share/checkmk-telegram-plus/ && /omd/sites/main/bin/python3 /omd/sites/main/local/share/checkmk-telegram-plus/telegram_bot.py'
And yep, reschedule is working now. I thought it was working because even with the other line the bot replied with
RESCHEDULE CHECK WAS COMPLETED SUCCESSFULLY
but apparently it wasn't doing anything because now i also get the agent ([agent] Sucess etc.) data which wasn't there before.
To summarize: A check for the location of runuser during the install would be awesome 😄
Another thing i just found... (maybe i am just using it wrong)
- hit reschedule check
- select a hostgroup (and missclick on a group you don't want)
- type /cancel
bot replies with "Conversation cancelled X" - hit reschedule again
bot replies (without letting you select a hostgroup etc)
Failed to lookup IPv4 address of 🔄 RESCHEDULE CHECK via DNS: [Errno -2] Name or service not known
RESCHEDULE CHECK WAS COMPLETED SUCCESSFULLY
I don't know if this is me using it wrong (missunderstanding the /cancel command) or really a bug.
Anyway, thanks for the extension again. Loving it so far 👍 😄
from checkmk-telegram-plus.
I'm glad to hear that it now works this way. I will modify the installation script accordingly. As soon as the problem is solved, I will report here again for possible future users and close this post.
Regarding the issue with /cancel, I still have to check. Actually, cancel should cancel the entire conversation, but apparently the bot continues to interpret your requests. I'll have a look at it. Can you please open another post for this problem? Thanks!
And I'm glad you like the bot, by the way I'm always open for new features, so feel free to create a feature request here if you still need certain functions. As far as it should be possible for me to implement them, I will do it! 😄
from checkmk-telegram-plus.
Opened #3 for the cancel issue!
Thanks again for updating it and being open for feature requests etc 👍 😄
from checkmk-telegram-plus.
The problem should now be solved. I have tested it from my side, and it works as planned. So in the future, it should not matter where runuser is installed. 😄
from checkmk-telegram-plus.
Related Issues (9)
- Failed notification on fresh install / wrong line endings HOT 1
- Limit access admin menu HOT 3
- /cancel not cancelling the entire conversation when using "reschedule check" HOT 2
- Notification suddenly stops working HOT 27
- Response Error HOT 4
- AI setup not working HOT 3
- Debian 12 compatibility HOT 7
- Issue with checkmk Plugin on GitHub After Language Change HOT 2
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 checkmk-telegram-plus.