<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:12pt"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">I like this thread! It raised</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"> another thought.</span>..<br>(Please ignore me, if I am totally of track :-)<br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><br>If we think of it as two parts, a filebased DB backend<br>and a webservice. Wouldn't it make sense to take a<br>look at the DB schema used by Merlin & Ninja, or is it<br>too heavy? Possibly the same schema could be used and<br>potentially open for the use of Ninja (the officially<br>"new" Nagios GUI) without involving Merlin. Don't get<br>me wrong here. I</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">
really </span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">like Merlin, it rocks, but if<br>you do not need all</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"> its </span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">funtionality a lightweight<br>DB only alternative whould be nice.<br><br>I realize that some information will be missing, but<br>the potential of code re-use is there.<br><br></span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">For the backend my</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"> vote is on SQLite. It supports more<br>client apps any way.<br><br>I am not the man to judge pros & cons of JSON vs XML</span>.<br>But if we are talking web services, the client app<br>does not need to be a web page. Is JSON suitable for<br>other client apps as well? Just asking, I don't
know.<br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"></span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><br></span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">______________________________________________</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">Sven-Göran Bergh</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">Systemasis AB</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">______________________________________________</span><div><br></div><div style="font-family:
Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">Från:</span></b> "yann.jouanin.list@intelunix.fr" <yann.jouanin.list@intelunix.fr><br><b><span style="font-weight: bold;">Till:</span></b> Nagios Developers List <nagios-devel@lists.sourceforge.net><br><b><span style="font-weight: bold;">Skickat:</span></b> tisdag 18 augusti 2009 10:27:57<br><b><span style="font-weight: bold;">Ämne:</span></b> Re: [Nagios-devel] XML, JSON, Webservice or something new ?<br></font><br><br>Using CDB or SQLite look a good thing for me.<br><br>I didn't improved Nagios2JSON a lot cause it's a C CGI and it take long<br><br>time to sanitize everything.. but if someone wants to help me in improving<br><br>Nagios2JSON, then Welcome!<br><br><br><br>As pointed out Thomas, I also wrote a patch
to get status.dat directly<br><br>writen in JSON but I think the major problem is what ever you want you'll<br><br>parse the complete status.dat.<br><br>Having a File DB instead of status.dat would be a real way to help in<br><br>writing new XML or JSON interface in an easy way. I also did a python<br><br>status.dat parser and rewrite Nagios2JSON with it to test how easy it<br><br>becomes also with atomic query...<br><br><br><br>Yann<br><br><br><br><br><br><br><br><br><br><br><br><br><br>On Tue, 18 Aug 2009 04:11:09 -0400, Thomas Guyot-Sionnest <<a ymailto="mailto:dermoth@aei.ca" href="mailto:dermoth@aei.ca">dermoth@aei.ca</a>><br><br>wrote:<br><br>> -----BEGIN PGP SIGNED MESSAGE-----<br><br>> Hash: SHA1<br><br>> <br><br>> On 17/08/09 10:08 PM, Max wrote:<br><br>>> Hi Derrick,<br><br>>> <br><br>>> On Mon, Aug 17, 2009 at 8:32 PM, local.coder<<a ymailto="mailto:code@novageeks.org"
href="mailto:code@novageeks.org">code@novageeks.org</a>> wrote:<br><br>>>> I am back to writing some code for a new project involving Nagios. As<br><br>>>> part of this I need light weight data access to status.cgi data.<br><br>>>> Initially I was planning on modding ministatus.cgi which I know is not<br><br>>>> part of the contrib anymore but it is a good starting place. At the<br><br>same<br><br>>>> time I looked into the status of something more standardized. I would<br><br>>>> prefer to code to a standard that we can all get behind. The<br><br>Nagios2Json<br><br>>>> looks nice in that JSON is a basic format and gives me what I need,<br><br>>>> however the current project is not Version 3+ compliant. I also found<br><br>>>> the NXE addon for XML output but that has not been updated in some<br><br>time.<br><br>>> <br><br>>> The only problem with the current
nagios2json is that you cannot do<br><br>>> discrete queries of hosts/services etc, so not quite ready for AJAX<br><br>>> UIs.<br><br>> <br><br>> I like the JSON patch as it implement cleanly a different way of writing<br><br>> status data to status files. However I had in mind doing something<br><br>> similar but with CDB. CDB is a small and very efficient read-only<br><br>> database format that has a C and PHP (among others) APIs. It store only<br><br>> key-values and it is designed to be written once and acceded read-only;<br><br>> just as status.dat works currently. OTOH, unlike status.dat it could be<br><br>> queried instead of parsed in full so it would be a perfect fit for<br><br>> systems that use an advanced web interface but want to avoid the burden<br><br>> of ndodb.<br><br>> <br><br>>>> Before using one of these and making them work I would like to see a<br><br>>>> standardized
model for the XML or JSON data structure. I have seen<br><br>>>> several items on the wishlist for a webservice interface and that would<br><br>>>> also work really well but again a standard API would need to be<br><br>created.<br><br>>>><br><br>>>> What are others doing for small format host and service data and is<br><br>>>> anyone deeply interested in coming up with some standardized XML or<br><br>JSON<br><br>>>> data templates ?<br><br>>> <br><br>>> I vote JSON :), works well with all sorts of web frameworks and for<br><br>>> high volumes of data much less verbose than XML, we are needing this<br><br>>> as well and I have been speaking with a teammate of mine on enhancing<br><br>>> Nagios2JSON as we will be exposing a RESTful interface within our<br><br>>> organization that lets people GET data out of Nagios with HTTP and<br><br>>> will let them change
our Nagios configuration as well to perform CRUD<br><br>>> on our configs through web services. Nagios2JSON is Nagios 3<br><br>>> compatible (just have to use the VCS rev), maybe we could work<br><br>>> together on it to enhance Yann's existing code?<br><br>> <br><br>> I sure would vote JSON over XML, but with JSON you still have to parse<br><br>> the whole status file for every request. That just doesn't make any<br><br>> sense for things like showing the status of a single host, especially on<br><br>> large systems which have lots of services. This is even more true when<br><br>> AJAX comes in mind; to be usable scripts have to respond quickly. If for<br><br>> example you click to expand a host detail, it will be much faster if the<br><br>> backend can just fetch and parse that host's data instead of parsing a<br><br>> large file...<br><br>> <br><br>> - --<br><br>> Thomas<br><br>>
-----BEGIN PGP SIGNATURE-----<br><br>> Version: GnuPG v1.4.6 (GNU/Linux)<br><br>> Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br><br>> <br><br>> iD8DBQFKimId6dZ+Kt5BchYRAtDVAJ9qauN7iumyo6EI1pVcmdeRTXpb3gCeOG0P<br><br>> w+ECcF+BgA1Y1MR2sGDYgQs=<br><br>> =0ECl<br><br>> -----END PGP SIGNATURE-----<br><br>> <br><br>><br><br>------------------------------------------------------------------------------<br><br>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008<br><br>30-Day<br><br>> <br><br>> trial. Simplify your report design, integration and deployment - and<br><br>focus<br><br>> on <br><br>> what you do best, core application coding. Discover what's new with <br><br>> Crystal Reports now. <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br><br>>
_______________________________________________<br><br>> Nagios-devel mailing list<br><br>> <a ymailto="mailto:Nagios-devel@lists.sourceforge.net" href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br><br>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a><br><br>------------------------------------------------------------------------------<br>Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day <br>trial. Simplify your report design, integration and deployment - and focus on <br>what you do best, core application coding. Discover what's new with <br>Crystal Reports now. <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>_______________________________________________<br>Nagios-devel mailing list<br><a
ymailto="mailto:Nagios-devel@lists.sourceforge.net" href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a><br></div></div></div><br>
<hr size=1>
Låna pengar utan säkerhet.<br>
<a href=http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014>Sök och jämför lån hos Kelkoo.</a></body></html>