- 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 7 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
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
- 02 May, 2014 2 commits
-
-
Jonathan Michalon authored
-
Jonathan Michalon authored
Continuous polling means that the process runs forever, checking everything from time to time. To get results, a listing of checks' state is printed when SIGUSR1 is caught. Single run (for config or debug) is accessible with the -1 or --one command line switch.
-
- 01 May, 2014 1 commit
-
-
Jonathan Michalon authored
Don't show empty outputs and decode bytes (so that things like newlines are printed as such and not as litteral "\n").
-
- 30 Apr, 2014 2 commits
-
-
Jonathan Michalon authored
-
Jonathan Michalon authored
-
- 29 Apr, 2014 4 commits
-
-
Jonathan Michalon authored
-
Jonathan Michalon authored
The CheckDNSZone implementation now calls the check available here: https://github.com/bortzmeyer/check_dns_soa
-
Jonathan Michalon authored
-
Jonathan Michalon authored
Handle OSError exceptions (such as non-existing command) for the Popen command spawning. Surround that by a mutex as Popen is not atomic when failing!
-
- 27 Apr, 2014 2 commits
-
-
Jonathan Michalon authored
-
Jonathan Michalon authored
Create a directory "lib/", put the checks there. Move the compat file there too. Also put the config in a separate file so that users may edit without messing up the core. Would also ease intallation so that config may land in etc/ for example.
-
- 25 Apr, 2014 10 commits
-
-
Colomban Wendling authored
-
Colomban Wendling authored
-
Jonathan Michalon authored
-
Colomban Wendling authored
-
Colomban Wendling authored
Apparently, Popen.args is new and undocumented in Python 3.3, so don't rely on its existence and set it ourselves.
-
Colomban Wendling authored
-
Jonathan Michalon authored
Now the granularity is the check level, allowing to write checks without hosts. Checks don't deal with hosts anymore. Also the results of checks are now handled outside of the checking path, but this may change when the infinite loop and time intervals are going to be implemented.
-
Jonathan Michalon authored
-
-
Jonathan Michalon authored
Subprocess Timeout Adds support for timeout in subprocess communication for Python < 3.3, and use it in `Check.exec_with_timeout()`.
-
- 24 Apr, 2014 5 commits
-
-
Colomban Wendling authored
IPy is only used to get the version of an IP (4 or 6), but the IPs come from reasonably trustable sources and if incorrect would at worse make the test fail -- which is valid behavior. So, no need for a real library to distinguish them, do a naive check based on the presence of version-specific delimiters.
-
Colomban Wendling authored
-
Jonathan Michalon authored
Pep8 Fix style to conform to PEP8
-
Colomban Wendling authored
-
Jonathan Michalon authored
-