Comments (12)
Relevant PR where the support was added:
Icinga/icinga2#5996
from deb-icinga2.
And now I wonder why Mr. @dnsmichi deleted the docs about this topic:
Icinga/icinga2@f2102a1?diff=split
@Crunsher added the docs here and @dnsmichi overwrote them? Why?
from deb-icinga2.
Scroll down before making false accusations :) The content was just moved to the troubleshooting docs where this fits way better than "getting started" confusing the user.
from deb-icinga2.
Sorry I found the other file later. Too much hectic truble in this place today.
from deb-icinga2.
IMHO settings like Watchdog=
and Restart=
should be set by the user.
He was an easy possibility to do so. Docs exist.
Is this enabled for any other daemon by default?
from deb-icinga2.
Well, we already added this in an override for our installs, so here comes my own IMHO point:
Icinga is a monitoring solution, and if it stops working without anyone noticing, then bad things can happen.
The age-old question: who watches the watcher?
Systemd offers to supervise the process in a way, that ensures that is is working and operational.
I see no reason to not make use of that.
Aside: We are using the last status update in the database to check if icinga_programstatus.status_update_time
was too long ago, and then we send an SMS. And this happened more than a couple times in the past 2 years.
But, we had to write this and implement it. Now systemd offers this for free, why not make use of it?
from deb-icinga2.
You could at least add this in a commented out block in the service file, so people can decide to uncomment it. Maybe add a link to the docs. Because this troubleshooting file is maybe not easy to find.
from deb-icinga2.
Opinions? @dgoetz @dnsmichi @lippserd
from deb-icinga2.
Adding it to the docs would be better then making it a default in my opinion. While the restarting is nice it typically hides problems which should better be fixed.
The WatchdogSec=
we should set because the value has to be compatible with Icinga 2's own logic for sending heartbeats with sd_notify
, so the recommended value is twice the interval Icinga 2 is sending heartbeats. For Restart=
, StartLimitInterval=
, StartLimitBurst=
, StartLimitAction=
I would only add to the docs some recommended values and why you should set them (or not). Especially the StartLimit values are very difficult to set per default as the Interval may depend on size of the environment and the Action depends on availability requirements and reboot time of the system.
Also I would not provide an block to uncomment in the service file as user should better use systemd's override mechanism.
from deb-icinga2.
Quote from here: http://0pointer.de/blog/projects/watchdog.html
First of all, to make software watchdog-supervisable it needs to be patched to send out "I am alive" signals in regular intervals in its event loop. Patching this is relatively easy. First, a daemon needs to read the WATCHDOG_USEC= environment variable. If it is set, it will contain the watchdog interval in usec formatted as ASCII text string, as it is configured for the service. The daemon should then issue sd_notify("WATCHDOG=1") calls every half of that interval. A daemon patched this way should transparently support watchdog functionality by checking whether the environment variable is set and honouring the value it is set to.
So Icinga should follow the setting from the service file and adjust it s interval accordingly.
from deb-icinga2.
@lazyfrosch There's docs already for such a watchdog, I would just add it there. https://icinga.com/docs/icinga2/latest/doc/15-troubleshooting/#systemd-watchdog
from deb-icinga2.
I guess most followed me in saying that this is an optional feature. Similar like crash dumps are not enabled by default.
Docs can be improved, if you have a suggestion, please open a PR or issue for Icinga 2.
Thanks for your involvement in Icinga, we really appreciate feedback.
from deb-icinga2.
Related Issues (8)
- Disable configuration of icinga2-ido-pgsql via selection does not work HOT 3
- Init scripts out of sync with Icinga 2 main repo HOT 4
- systemd file out of date HOT 4
- Remove classicui package HOT 2
- Missing file / wrong config for latest icinga2-package HOT 13
- IDO MySQL feature isn't being turned on by Debian package configuration HOT 2
- icinga2-ido-mysql fails to init database if being installed together with mariadb-server HOT 3
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 deb-icinga2.