Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
picomon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
glucas
picomon
Commits
f6ad809a
Commit
f6ad809a
authored
Aug 31, 2014
by
Jonathan Michalon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README: old usage, s/-s/-c (typo), new 'Run it!' section
parent
59fb191b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
README.md
README.md
+22
-4
No files found.
README.md
View file @
f6ad809a
...
...
@@ -21,11 +21,15 @@ The DNS zone check calls [Bortzmeyer's](https://github.com/bortzmeyer/check_dns_
Usage
-----
usage: picomon
.py [-h] [-1
]
usage: picomon
[-h] [-1] [-D] [-c CONFIG
]
optional arguments:
-h, --help show this help message and exit
-1, --one single run with immediate output of check results (test/debug)
-h, --help show this help message and exit
-1, --one single run with immediate output of check results
(test/debug)
-D, --debug Set verbosity to DEBUG
-c CONFIG, --config CONFIG
Set config file (defauts to config.py)
Configuration
...
...
@@ -87,7 +91,21 @@ You have several solutions :
*
Set python module path by hand:
`PYTHONPATH=. bin/picomon`
The default config file is
`config.py`
, so either copy/link the sample one, write
your own or use the
`-s`
command line argument.
your own or use the
`-c`
command line argument.
Run it!
-------
A small watchdog is distributed which will send an email in case the main daemon
process exits (OOM, bug, etc.) to the same addresses than those used for check
status notifications. You may tune the subject with the config option
`emails.watchdog_subject`
.
For now, no sysv initscript / systemd unit / whatever for such a small daemon exists.
One simple way to run it is to use something like the following in
`/etc/rc.local`
(assuming a standard system-wide install with
`setup.py install`
):
for conf in /usr/local/etc/picomon/*.py; do sudo -u nobody picomon-watchdog -c $conf > /tmp/picomon-$(basename $conf .py).log 2>&1 & done
License
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment