Re: [Shinken-devel] Patch for -use properties

2012-10-27 Thread Hartmut Goebel
pull-request. This would help developers most. -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP Goebel Consult http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/2012-02-bring-your-own-life-glosse Blog: http://www.goebel-consult.de/blog/2005

Re: [Shinken-devel] allow - as hostname

2012-09-25 Thread Hartmut Goebel
e applied and should go into 1.2.1. According to RFC 1034, sec.3.5, the hyphen character ('-') is a valid character in hostnames. If shinken doe not support this, this is a major annoyance IMHO. -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com |

[Shinken-devel] stable or develop -- we need a branching model

2012-09-05 Thread Hartmut Goebel
have learned a lot of it and am using this model for my projects. I recommend using this model (or a slightly adopted version). -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought ar

Re: [Shinken-devel] Planning the new log-system

2012-08-28 Thread Hartmut Goebel
ore than it seams to have use. What do you think about this proposal: - for brok-messages: no human format at all - for console-outpur: always human format - for local-log: always human format An I'll change the human format to the standard f

Re: [Shinken-devel] Serious design problem for logging

2012-08-27 Thread Hartmut Goebel
to wrote a "dump all > logs" module in the broker side) and if the module is smart enough to > split them, it just got to look at the brok :) -- Regards Hartmut Goebel | Hartmut Goebel | h.goe.

[Shinken-devel] Serious design problem for logging

2012-08-23 Thread Hartmut Goebel
, too, so each state-change would be send twice. IMHO we do not need to log state-messages at the scheduler only with level "DEBUG" which is not send to the broker. State-messages are not interesting at the scheduler side except for debugging. What do you think? -- Regards Ha

[Shinken-devel] Planning the new log-system

2012-08-23 Thread Hartmut Goebel
5) Do we need 'human format' for messages send as broks, too? -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compilers.com | compilers wh

Re: [Shinken-devel] doctests

2012-08-23 Thread Hartmut Goebel
Am 22.08.2012 15:44, schrieb Francois Mikus: > This may not be feasible because we already have a large test library in > /test. Doctests could provide an additional way for testing. If you find places, where doctests are useful, go ahead! -- Regards Hartmut Goebel | Hartmut

Re: [Shinken-devel] Error in logs of the arbiter - and maybe other shinken programs

2012-08-21 Thread Hartmut Goebel
mething else before posting... So this option should be available on platforms supporting it. -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought ar

Re: [Shinken-devel] Logging question - log level propagation

2012-08-20 Thread Hartmut Goebel
does not show up errors, I'll continue with the new logging module. So please be patient just a few more days :-) -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thou

Re: [Shinken-devel] Logging proposition

2012-08-18 Thread Hartmut Goebel
g only > interesting stuff. Debug has way too much information that > can There may (I don't know yet) be better ways to achieve this. Before implementing, please what some days. I'm already working on a new logging module, but need to implement performance-tests

[Shinken-devel] Please use more meaningful commit-messages

2012-07-29 Thread Hartmut Goebel
w to write a good commit message". I would really appreciate to see more meaningful commit messages in the future. -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compilers.com | compi

[Shinken-devel] Can we switch unitest2 (= unittest in Py 2.7)

2012-07-29 Thread Hartmut Goebel
crete default message. The switch could be build into shinken_test.py quite easy, so developers working with 2.7 do not need to install the backport. What do you think? What is requires for this, esp. to keep the Jenkins-tests running? -- Regards Hartmut Goebel | Hartmut Goebel |

Re: [Shinken-devel] code documentation

2012-07-27 Thread Hartmut Goebel
Am 27.07.2012 21:23, schrieb Hartmut Goebel: > "Convince me" is not such a good argument if you want to attract > developers :-\ I mean: "Convince me why I should follow the standard" is not such a good argument if you want to attract developers :-\ "Convince me

Re: [Shinken-devel] code documentation

2012-07-27 Thread Hartmut Goebel
e the Python way to do it, see PEP 8 and PEP 257. "Convince me" is not such a good argument if you want to attract developers :-\ -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compilers.com | compilers

Re: [Shinken-devel] code documentation

2012-07-26 Thread Hartmut Goebel
#99. Unfortunately Shinken is lacking here. -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | -- L

Re: [Shinken-devel] [shinken] Use standard object-config where nearly same and remove identical file. (2ac67a4)

2012-07-25 Thread Hartmut Goebel
eriods, to name just a few. As you can see, my cleanup is not about maintaining configs, but about keeping them tidy. > So > keeping all N distinct configuration files is even a good thing for tests, > especially regression check. This would require the test-case to check the regression. :

Re: [Shinken-devel] Why is there a complete own logging engine in shinken?

2012-07-24 Thread Hartmut Goebel
crash :p ). It would be great if you could hand over some examples or test-cases as test_logging.py is very, very basic ATM and does not really test anything (but just output). -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compi

Re: [Shinken-devel] Pushing minimum Python equirement to 2.5?

2012-07-16 Thread Hartmut Goebel
ease. > No Shinken in OMD for CentOS/RedHat 5.x which is a very bad idea (it's > already a castrated package because it includes no Shinken UI for these > versions) Yet another reason why OMD should include a recent Python version :-) -- Regards Hartmut Goebel | Hartmut

[Shinken-devel] Format of local log-file

2012-07-15 Thread Hartmut Goebel
kets). Is this intended? Or just caused by nobody cleaning this up until now? Is it okay if I'm going to remove the second timestamp and change this into 2012-07-15 20:12:48,397 Info: Some log-message -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com

[Shinken-devel] Any reason why shinken.__init__ import objects?

2012-07-14 Thread Hartmut Goebel
Hi, I'm wondering if there is any reason for importing `objects` in shinken.__init__. Thus *every* script or test-case importing shinken gets all the objects loaded, even if they are not required by the script or test-case at all. Can we remove this? -- Regards Hartmut Goebel | Hartmut G

[Shinken-devel] Why is there a complete own logging engine in shinken?

2012-07-14 Thread Hartmut Goebel
which are usefull for not reinventing the wheel. So if there is not reason for using a own implementation I'll change to a standard-implementation. I would do this in a separate branch for you to test and comment on it. -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-com

[Shinken-devel] Pushing minimum Python equirement to 2.5?

2012-07-14 Thread Hartmut Goebel
Hi, the WebUI is based on "bottle". As I just discovered, bottle requires Python 2.5 or newer. AFAIK The official minimum requirement for Shinken is still Python 2.4. I propose pushing the official minimum requirement for Shinken to at least 2.5, too. Any opinions? -- Regards Hart

Re: [Shinken-devel] Questions about external_mapping.py

2012-07-13 Thread Hartmut Goebel
-- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP Goebel Consult http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/2012-02-bring-your-own-life-glosse Blog: http://www.goebel-consult.de/blog/20050315 Goebel Consult ist Mitglied bei http:

[Shinken-devel] Good progress in PEP8 clean-up

2012-07-10 Thread Hartmut Goebel
The "multiple spaces after ':'" mostly originate from formatting properties into "tables". THis results in more readable code, but is not strictly PEP 8. -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.cra

Re: [Shinken-devel] Encoding error in test_utf8_log.py

2012-07-10 Thread Hartmut Goebel
test some > latin-9 caracter in comments for example)... Okay, So I changed the code to contain the same characters, but in octal-notation (\351) instead of a single byte. Output is still the same as the one you showed. -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSS

[Shinken-devel] Encoding error in test_utf8_log.py

2012-07-09 Thread Hartmut Goebel
octal 351 == int 233 == hex e9). In Latin-1, e9 is small letter e with accute. What is the intention of this line? What should be tested? -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP Goebel Consult http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-geflues

[Shinken-devel] Questions about external_mapping.py

2012-07-07 Thread Hartmut Goebel
would change the file and strip leading/trailing white-spaces which would make the file format more robust. -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impos

Re: [Shinken-devel] How to test code quality prior to commit?

2012-07-07 Thread Hartmut Goebel
_install. Thanks. -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP Goebel Consult http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/2011-09-kommerz-uber-recht-fdp-die-gefaellt-mir-partei Blog: http://www.goebel-consult.de/blog/20050620 G

[Shinken-devel] How to test code quality prior to commit?

2012-07-06 Thread Hartmut Goebel
on it)?. -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP Goebel Consult http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/2011-10-aus-der-schublade-in-die-koepfe Blog: http://www.goebel-consult.de/blog/20060215 Goebel Consult ist Mitglied

Re: [Shinken-devel] Error starting shinken

2011-03-08 Thread Hartmut Goebel
/launch_all.sh @nap: we should fix the documentation. Installation should be done using setup.py instead of copying. I also tried to start shinken as root : You must not run shinken as root for securiy reasons. (I'm thinking about building a save-guard into shinken.) -- Schönen Gruß - Regards Ha

Re: [Shinken-devel] Avoiding sys.path hacks

2011-03-03 Thread Hartmut Goebel
d I miss something? > If we comment it quite good, it's not a howful hack after all, and > it's quite even clear what we do (just set in the path so we can just > import shinken/ after all), we should add such a comment for imp too > after all. ACK for comments. -- Schönen

[Shinken-devel] Avoiding sys.path hacks

2011-03-02 Thread Hartmut Goebel
ot;, ".."])) This doe not change sys.path, but tries to import shinken from the current directory and the parent directory. This is what we want at last, isn't it? What do you think about this? -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Go

Re: [Shinken-devel] Lists as default values for StringProps?

2011-03-01 Thread Hartmut Goebel
ul is absolutely okay for me. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitglied bei http

Re: [Shinken-devel] Lists as default values for StringProps?

2011-03-01 Thread Hartmut Goebel
hold a list -- this contradicts teh semantics expressed by the name "StringProp". So again my question: What type of property is this? -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebu

Re: [Shinken-devel] Lists as default values for StringProps?

2011-03-01 Thread Hartmut Goebel
7;s all. So we can add a new property class, > rawobject or something like it, for such object we do not want to > "Pythonize". IMHO this should tell something about the type of the property, So "RawProperty" is not a good name. What are these values used for? Why th

[Shinken-devel] Lists as default values for StringProps?

2011-02-28 Thread Hartmut Goebel
e explain this to me? -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitglied bei http://www.7

[Shinken-devel] FYI: Changed `xx ==/!= None` into `xx is (not) None`

2011-02-27 Thread Hartmut Goebel
Hi, I just checked in some fixes for Changing `xx ==/!= None` into `xx is (not) None` as suggested by PEP 8. This has been done using another fixer based on lib2to3. So there should be semantic change within this. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP

Re: [Shinken-devel] NRPE module for the poller

2011-02-21 Thread Hartmut Goebel
IC. But in this case a verbose prfix like "python:" or "py:" would be much better and esier to understand. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel

Re: [Shinken-devel] setup.py: How many different owner/group-setting do we need?

2011-02-13 Thread Hartmut Goebel
user and *one* group. This is okay for me. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult m

[Shinken-devel] Please stop using slit and join on os.sep, os.path.sep and company

2011-02-11 Thread Hartmut Goebel
derstand, speaks for itself, handles alternate separators and is shorter, too. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cis

[Shinken-devel] setup.py: How many different owner/group-setting do we need?

2011-02-11 Thread Hartmut Goebel
job to set these ownerships? Isn't this better left over to the packagers? Awaiting your comments. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatlich

Re: [Shinken-devel] install python fail

2011-02-10 Thread Hartmut Goebel
ill in the script: - some paths are hard-codes (e.g. for all "data_files" - user and group is hard-coded My plan is to implement some more "sub-commands" (distutils terminology) to solve these issues. Hopefully I have time this weekend. -- Schönen Gruß - Regards Hartmut Go

Re: [Shinken-devel] NRPE module for the poller

2011-02-10 Thread Hartmut Goebel
quot;module_type" there already is a obvious way to do this (which is more flexible, too) So this feature does not add any functionality but only add future longstanding pollution. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spez

Re: [Shinken-devel] install python fail

2011-02-10 Thread Hartmut Goebel
Am 10.02.2011 13:31, schrieb Grégory Starck: > since the commit with distutils the "setup install" (& > test_end_to_end) are broken on my side :s Thanks for your report I'll look into it. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CIS

Re: [Shinken-devel] install python fail

2011-02-10 Thread Hartmut Goebel
Am 10.02.2011 19:57, schrieb Hartmut Goebel: > Am 10.02.2011 13:36, schrieb nap: >> Yes, it's a regression bug. We must get back the setup_parameters.cfg >> because packagers need it. I think with it quite a lot of the above >> bugs will disapears. > IMHO we should fix

Re: [Shinken-devel] install python fail

2011-02-10 Thread Hartmut Goebel
just a small change. setup_parameters.cfg has the big, big disadvantage of being non standard. Why use an additional config file if distutils already have one and read it automatically? -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sich

Re: [Shinken-devel] Bad shinken 0.5.1 init script

2011-02-09 Thread Hartmut Goebel
server restart. > > So it's a waste of time to operate in production and it takes longer > to package. > > Is it possible to return to the startup script are complying with the LSB? Can you please explain, what's the exact problem, the "bad idea". Then we can fix it

Re: [Shinken-devel] install python fail

2011-02-09 Thread Hartmut Goebel
sion_info (2, 6, 5, 'final', 0) >>> sys.version_info < (2,7) True >>> sys.version_info > (2,6) True # ough! >>> sys.version_info < (2,6) False >>> sys.version_info <= (2,6) False >>> sys.version_info >= (2,) True >>> s

Re: [Shinken-devel] install python fail

2011-02-09 Thread Hartmut Goebel
r rc versions and look if they keep the + or not. From > now, just comment this pythjon_version checking, 2.7 is good. IMHO the best solution is to drop this useless platform.python_version thing and simply use sys.version_info. I'll prepare commit a patch. -- Schönen Gruß - Regards Hartm

Re: [Shinken-devel] (no subject)

2011-02-09 Thread Hartmut Goebel
t later. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitglied bei http://www.7-it.de smi

Re: [Shinken-devel] New arbiter module : change on the fly the poller tag of a command

2011-02-07 Thread Hartmut Goebel
Am 07.02.2011 18:48, schrieb Gerhard Lausser: > Dead since 2008 after a few weeks of activity. The author probably found > out that it's not so easy to implement the native Java RMI in Python :-) So JMX is using RMI. Then this not a useful approach. -- Schönen Gruß - Regards Hartmut

Re: [Shinken-devel] New arbiter module : change on the fly the poller tag of a command

2011-02-07 Thread Hartmut Goebel
Shinken. Oh my God! PyPerl is a zombie! Stay away from it! IMHO it far less trouble rewriting the plugins in Python (using the new plugin base classes), than trying to make perl load into the Python process. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goe

Re: [Shinken-devel] New arbiter module : change on the fly the poller tag of a command

2011-02-07 Thread Hartmut Goebel
ller in Java, just to talk JMX. There is <http://code.google.com/p/pymx/> -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.c

Re: [Shinken-devel] Local log management

2011-02-07 Thread Hartmut Goebel
sntallations. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitglied bei http://www.7-it.de

Re: [Shinken-devel] Local log management

2011-02-04 Thread Hartmut Goebel
Am 04.02.2011 13:59, schrieb nap: > We can add the logging with simple rotation options, maybe the same > that the simple_log module, so users won't be lost. Yes, and we can reinvent the weel. SCNR -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goe

Re: [Shinken-devel] Design study for Python based plugins published

2011-02-04 Thread Hartmut Goebel
te-wmi # So a untested idea. And nothing to implement soon. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goe

Re: [Shinken-devel] Local log management

2011-02-04 Thread Hartmut Goebel
ng yet-another-mechanism-for-log-config. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitgli

Re: [Shinken-devel] Local log management

2011-02-04 Thread Hartmut Goebel
Am 04.02.2011 11:37, schrieb nap: > use_local_log=0 > local_log=%(workdir)s/pollerd.log Ough, this hurts! Why are you not using the default configurations options from the standard logging module? -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel C

Re: [Shinken-devel] Build fails with Python 2.4

2011-02-03 Thread Hartmut Goebel
you are on the save side (well, German proverb: auf der sicheren Seite) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-geflues

Re: [Shinken-devel] small question

2011-02-03 Thread Hartmut Goebel
a resp. bug regarding multiprocessing on windows: <http://bugs.python.org/issue5162>. In multiprocessing AFAIK no new interpreter is started, which makes me believe, such a bug is possible ;-) BTW: No offence meant :-) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.),

Re: [Shinken-devel] small question

2011-02-03 Thread Hartmut Goebel
Am 03.02.2011 11:46, schrieb nap: > > > On Thu, Feb 3, 2011 at 11:40 AM, Hartmut Goebel > mailto:h.goe...@goebel-consult.de>> wrote: > > Am 03.02.2011 11:32, schrieb nap: > > For the sys.path, it's a bug I've got in centos 5, python2.4, direct >

Re: [Shinken-devel] small question

2011-02-03 Thread Hartmut Goebel
What? Are you kidding? subprocess starts a new python interpreter which runs a new main script which should have a __file__ attribute then. I do not see, why this should not happen? Did you file a bugreport at python.org? -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CS

Re: [Shinken-devel] small question

2011-02-03 Thread Hartmut Goebel
is there. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitglied bei http://www.7-it

Re: [Shinken-devel] small question

2011-02-03 Thread Hartmut Goebel
ot; directory. > > Or am I missing something.. :-? I can't see, why this should be needed, too. Further: I can not imagine why the __main__ module could not have a __file__ attribute. (At least if __main__ is a Python script.) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (

[Shinken-devel] Design study for Python based plugins published

2011-02-02 Thread Hartmut Goebel
s) and a Result() object for returning the data. The major benefit for such a result object is that it can be processed quite easily, ads the dummy example for check_multi shows: Results are more or less simply added, no need to parse a string. Comments are welcome. -- Schönen Gruß - Regards H

Re: [Shinken-devel] move classes from bin/shinken-(.*) to shinken/$1daemon.py

2011-02-02 Thread Hartmut Goebel
ner, poller, etc. If someone wants to deploy a poller to a system then, he (ideally) only put there shinken/common and shinken/poller. If we may introduce namespace packages somewhen, this could even become something like easy_install shinken.poller shinken.plugins.oracle shinken.plugins.hpux That&

Re: [Shinken-devel] move classes from bin/shinken-(.*) to shinken/$1daemon.py

2011-02-02 Thread Hartmut Goebel
t, since I did not understand the code good enough ;-) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goeb

Re: [Shinken-devel] move classes from bin/shinken-(.*) to shinken/$1daemon.py

2011-02-02 Thread Hartmut Goebel
t an idea yet. I'm not going to implementent this now.) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel

Re: [Shinken-devel] Design for python-based checks

2011-01-31 Thread Hartmut Goebel
st()-Method is meant for. >> * The performance data will be a dict. Keys are strings, values are >> either integer, float or string (percent), or a list/tuple thereof. > What about min/max/thresholds? I thought, simple lists of values are enough. Am I missing something? -- Schön

Re: [Shinken-devel] Design for python-based checks

2011-01-31 Thread Hartmut Goebel
single "namespace". > (by the way, argparse is widely package for major distributions) I don't understand this sentence. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goeb

[Shinken-devel] Design for python-based checks

2011-01-31 Thread Hartmut Goebel
code of the check needs to be changed, the Open questions: * Should we use optparse or argparse? optparse is standard since Python 2.3 (AFAIR). argparse is standard staring with Python 2.7, but is available for 2.4, too (AFAIK). argparse has a much cleaner interface. -- Schönen Gruß

Re: [Shinken-devel] 2 more ideas

2011-01-26 Thread Hartmut Goebel
ules with a good "Class API". You are right. In addition a class enables some other possibilities without change to each "check". E.g. implementing threaded execution on choice of the application. Maybe I'll have time this weekend so I can implement an example as a base

Re: [Shinken-devel] 2 more ideas

2011-01-25 Thread Hartmut Goebel
#... parse args #... put a lot of magic here #... and run check if __name__ == '__main__': testrun() You may want to have a look at <http://svn.origo.ethz.ch/wsvn/pdfposter/trunk/pdftools/pdfposter/cmd.py> and <http://svn.origo.ethz.ch/wsvn/pdfposter/trunk/pdftools/pd

Re: [Shinken-devel] when/how python3 compatibility ?

2011-01-19 Thread Hartmut Goebel
Am 19.01.2011 16:57, schrieb Gerhard Lausser: > But it's still a release candidate. I agree with you on it will take some years until Python 3.x becomes widespread. But Python 3.x is no release candidate any more for quite some time now. -- Schönen Gruß - Regards Hartmut Goe

Re: [Shinken-devel] proposed enh: host address attribute not provided: get real address instead of copy host_name

2011-01-17 Thread Hartmut Goebel
This sounds reasonable :-) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitglied bei http:/

Re: [Shinken-devel] Introduction and bug reports...

2011-01-17 Thread Hartmut Goebel
tware quite fast, because all the backward-compatibility-stuff will bloat the code. *shiver* -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http:

Re: [Shinken-devel] proposed enh: host address attribute not provided: get real address instead of copy host_name

2011-01-17 Thread Hartmut Goebel
ad to double when > using > realms and/or split-DNS. > > Double? I don't understand it. If hostnames resolve differently on arbiter and worker, the worker may access the wrong machine. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP G

Re: [Shinken-devel] NEW SHINKEN LOGO ?

2011-01-17 Thread Hartmut Goebel
PDF next time?! So it can be locked at within the mail reader. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ G

Re: [Shinken-devel] proposed enh: host address attribute not provided: get real address instead of copy host_name

2011-01-17 Thread Hartmut Goebel
o the docs, "alias" is what I would call a "display name". So "alias" should become "display_name". BTW: Resolving the hostname on the arbiter may lead to double when using realms and/or split-DNS. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-In

Re: [Shinken-devel] Authentification between daemons

2011-01-14 Thread Hartmut Goebel
Am 14.01.2011 10:56, schrieb nap: > I hope realms and all the distributed features are considered as > "enterprise grade" features too ;) Of course. I should have written "another". But nevertheless please stop full-quoting. Thanks! -- Schönen Gruß - Regards Hartmut

Re: [Shinken-devel] Authentification between daemons

2011-01-14 Thread Hartmut Goebel
ing in it :) Yes, and send the password unencrypted. *gnaa* Please stop full-quoting, it's awesome! -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatlich

Re: [Shinken-devel] Authentification between daemons

2011-01-14 Thread Hartmut Goebel
proposing "enterprise grade" features :-) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mi

Re: [Shinken-devel] Standard daemons logs

2011-01-08 Thread Hartmut Goebel
lemented, this means: Use it. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitglied be

Re: [Shinken-devel] Standard daemons logs

2011-01-08 Thread Hartmut Goebel
logs to the broker) and one local (rotating log file, errors and warnings). If some admin wants more local logging, he simply changes the config file. @all: Please do not full quote. Thanks! -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spe

Re: [Shinken-devel] Standard daemons logs

2011-01-07 Thread Hartmut Goebel
be build on top of the current remote logging facility. Or can be enhanced to not format the message by it self, but pass it on the toe remote side to be filtered there. My idea is to switch to *completely* the standard logging module. No more print-statements anywhere. Everything is going via loggin

Re: [Shinken-devel] Questions about scheduler-broker communications, and livestatus module

2011-01-05 Thread Hartmut Goebel
nous communication, too. No need for backlogs. [Gosh, I'm repeating myself :-)] -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.ci

Re: [Shinken-devel] Questions about scheduler-broker communications, and livestatus module

2011-01-05 Thread Hartmut Goebel
ndicusses roadmap: Pass messages between components using a asynchronous mechanism, this is message queuing. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de M

Re: [Shinken-devel] Standard daemons logs

2011-01-05 Thread Hartmut Goebel
my personal, unpublished and undiscussed roadmap there is a point "using standard module logging for logging". But this is quite a big change, so we'll have to discuss it in depth first. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spez

Re: [Shinken-devel] Unknown boolean values lead to exception in property.py pythonize(val)

2011-01-04 Thread Hartmut Goebel
use one sees what went wrong. If the system makes assumptions, this may lead to wrong interpretation, inherited errors, more interpretation and chaos. This may destruct (monitoring) data and lead to wrong alerts. A small leak will sink a great ship. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-In

Re: [Shinken-devel] How to keep up-to-date a shinken installation?

2010-12-29 Thread Hartmut Goebel
stall So the proper way should be a) backup your config b run python setup.py install from the 0.4.1 release c) restore your config -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www

Re: [Shinken-devel] Log Improvements

2010-12-28 Thread Hartmut Goebel
ut in the log, and not only in the debug. IC. I should have looked at the source :-) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: htt

Re: [Shinken-devel] Error in init.d/shinken-poller

2010-12-28 Thread Hartmut Goebel
FILE Being in nitpicking mode today :-) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitgli

Re: [Shinken-devel] Log Improvements

2010-12-28 Thread Hartmut Goebel
Am 27.12.2010 14:08, schrieb nap: > Yes, but shinken manage 2.4 too :) (for RedHat 5 compatibility :( ). > Since pysqlite3 is the more enhanced version and is coming with current Python versions, I propose using pysqlite3, if this fails try pysqllite2. -- Schönen Gruß - Regards Hartmut

Re: [Shinken-devel] Unknown boolean values lead to exception in property.py pythonize(val)

2010-12-28 Thread Hartmut Goebel
boolean text, this is either a programming error or an error in the config file. Both have to be fixed are the origin place. Fall-backs are a bad solution IMHO. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexe

Re: [Shinken-devel] Config problems with windows linebreaks under linux

2010-12-28 Thread Hartmut Goebel
his will become ugly code spread all over the source and quite sure fail on MAC. See <http://docs.python.org/whatsnew/2.3.html#pep-278-universal-newline-support> for more information. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist

Re: [Shinken-devel] Not all daemons are starting

2010-12-23 Thread Hartmut Goebel
> Since this seams to trap others, too, I suggest to add a test for this to the code. -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http:

Re: [Shinken-devel] 0.4 is out, go prod, and look at the 0.5 :D

2010-12-21 Thread Hartmut Goebel
Am 20.12.2010 20:38, schrieb Gerhard Lausser: > if h.realm.realm_name.strip() != hg.realm.strip(): For me this looks like realm_name should not be a StringProp() (in post-0.4), but some ListProp() which normalizes the list elements on reading. -- Schönen Gruß - Regards Hartmut Goebel D

Re: [Shinken-devel] Questions regarding the "properties" patch (ticket 191)

2010-12-13 Thread Hartmut Goebel
is why :-) > > Emails are quite good too :) Yes, but it's easier to refer to concrete lines of code in the patch. I have been sceptical on this, but changed my mind. Esp. for larger changes (like this one) this helps finding bugs or errors early. > Thanks again for the patches and the

[Shinken-devel] Questions regarding the "properties" patch (ticket 191)

2010-12-11 Thread Hartmut Goebel
d = True?? I just uploaded a patch for fixing the issues named in the last three list items to <https://sourceforge.net/apps/trac/shinken/ticket/198> As you remember I suggested rietveld for discussion patches. This is why :-) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (uni

  1   2   >