- 20 Jul, 2014 7 commits
-
-
Jonathan Michalon authored
Don't attempt to write a report after an arbitrary init time but after a regular report interval.
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
Jonathan Michalon authored
AttrTree failed to create correct sub-attributes of itself because the sub-attributes were not transmitted to the child. In fact, str.split()'s 2nd argument is the number of split, not the number of parts so '2' will split in 3 parts.
-
- 19 Jul, 2014 1 commit
-
-
Colomban Wendling authored
-
- 07 Jul, 2014 1 commit
-
-
Colomban Wendling authored
This allows mail clients to know to what message the followup is for, making it easy for an user to see what relates to what when there are several checks.
-
- 14 Jun, 2014 1 commit
-
-
Colomban Wendling authored
Some emails client don't know the date if this field is not present, and although some MTAs add it it can't be relied upon.
-
- 10 Jun, 2014 2 commits
-
-
Colomban Wendling authored
This fixes crashing the mail thread when there the queue is empty after config.emails.smtp_keepalive_timeout seconds.
-
Jonathan Michalon authored
-
- 09 Jun, 2014 1 commit
-
-
Colomban Wendling authored
Use a single SMTP connection and send all emails through it from a thread to avoid spamming the SMTP server with connections.
-
- 24 May, 2014 4 commits
-
-
Colomban Wendling authored
Fix all PEP8 errors but E221 (multiple spaces before operator).
-
Colomban Wendling authored
-
Colomban Wendling authored
Instead of depending on config.py defining several magic variables, move the default configuration in the config instance at the root of the lib module, and make config.py override them as needed.
-
Colomban Wendling authored
This eases renaming of the module, and helps the uneducated reader locate the source of the import.
-
- 16 May, 2014 2 commits
-
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
- 12 May, 2014 1 commit
-
-
Jonathan Michalon authored
-
- 11 May, 2014 2 commits
-
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
- 09 May, 2014 6 commits
-
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
Jonathan Michalon authored
Omitting addresses in Host instanciation now defaults to doc-reserved IP addresses, so that one can create hosts that are not dual-stacked.
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
- 08 May, 2014 2 commits
-
-
Jonathan Michalon authored
This implementation uses smtplib so that mails are sent via SMTP, even when the mail daemon could be local, to be as flexible as possible.
-
Jonathan Michalon authored
Users may configure a name string for hosts, and checks can have a named option that will be used as target name (useful for mails). Hosts' name default to "ipv4/ipv6" and checks' to "Unknown" as they may apply to any kind of things (like hosts of course but also zones, …)
-
- 06 May, 2014 4 commits
-
-
Jonathan Michalon authored
This uses nagios' /usr/lib/nagios/plugins/check_http as packaged within Debian.
-
Jonathan Michalon authored
"every" is a loop, meaning that it always has to rotate back to the begining when the threshold is met. But retry is more like a ceiling, menaning that after the threshold it is "too much". So modulo is perfect for "every" and for "retry", use min().
-
http://gitlab.netlib.re/b4n/picomonJonathan Michalon authored
Merge branch 'simpler-count-op' of http://gitlab.netlib.re/b4n/picomon into b4n/picomon-simpler-count-op
-
Jonathan Michalon authored
Split subprocess compatibility layers Split subprocess_compat into several modules to make it easier to maintenance and extend. Now, instead of having the threading fix in a class derived from the one enabling timeout support, have two classes both derived from subprocess.Popen, and merge them together at the package's root level: ``` subprocess.Popen / \ ._timeout_popen.Popen ._threaded_popen.Popen \ / .Popen ``` This completely splits up the timeout support and threading fixes, removing any dependency from one on the other, and allows to easily add or remove another compatibility class by simply adding or removing a parent class from the root Popen empty class.
-
- 05 May, 2014 1 commit
-
-
Colomban Wendling authored
Split subprocess_compat into several modules to make it easier to maintenance and extend. Now, instead of having the threading fix in a class derived from the one enabling timeout support, have two classes both derived from subprocess.Popen, and merge them together at the package's root level: subprocess.Popen / \ ._timeout_popen.Popen ._threaded_popen.Popen \ / .Popen This completely splits up the timeout support and threading fixes, removing any dependency from one on the other, and allows to easily add or remove another compatibility class by simply adding or removing a parent class from the root Popen empty class.
-
- 04 May, 2014 5 commits
-
-
Colomban Wendling authored
Move workaround for Python bug http://bugs.python.org/issue18851 to lib/subprocess_compat.py.
-
Colomban Wendling authored
-
Colomban Wendling authored
-
Colomban Wendling authored
-
Jonathan Michalon authored
-