[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagios-devel
Subject:    Re: [Nagios-devel] creating CGI scripts and
From:       Malte Geierhos <malte () snapscouts ! de>
Date:       2010-04-01 12:00:55
Message-ID: 4BB48AF7.6080804 () snapscouts ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello Mohammed,

at first - sry for writing offlist ;) ...
regarding the cgi / css things - did you know about thruk.org ?
Its a catalyst  written new gui for Nagios / Icinga/ Shinken which uses
the Livestatus Plugin from Mr. Kettner for providing Realtime Access
to Nagios
Core data ( So besides beeing themeable its also a lot faster )

kind regards,
Malte


Am 31.03.10 20:19, schrieb Mohammed Murphy:
> Thanks for the hints Marc. Unfortunately I was not clear enough about my
> requirements before so I will expound a bit more.
>
> I only want to talk about the first issue of creating CGI scripts and
> break it down into two parts. Firstly, I would like to create a web page
> that contains the look & feel and header & footer info of the existing
> pages with my own customised web data in the middle. The important point
> is that I would like it to be automated, because (as I revealed in my
> last email) this is for an installer-type application. So for instance,
> if a Nagios user updates their Nagios system to a newer version with a
> slighly different look & feel, then the same installer-type application
> will still be able to generate the custom page appropriately. Is this
> possible?
>
> Secondly, is the issue of linking to my custom pages from exisitng
> pages. The fact that I want it to be automated means that I require a
> way of informing Nagios that a new custom page exists so Nagios will
> provide a way for the Nagios user to access it via a link on an existing
> page. I thought about parsing and then modifying side.html, but that is
> only reliable if that is guaranteed to remain the same in all versions
> of Nagios. nBoard, for instance, requires that a new html page simply be
> added to an 'extras' directory; so I wondered if the default Nagios web
> UI had a similar mechanism.
>
> Thanks for your time Marc. I hope I clarified my requirements a bit more.
>
> Marc Powell wrote:
>>
>>
>> On Tue, Mar 16, 2010 at 9:01 AM, Mohammed Murphy
>> <mohammed.murphy@tandberg.com <mailto:mohammed.murphy@tandberg.com>>
>> wrote:
>>
>>     Hey there,
>>
>>     I would like to able to write and run my own CGI scripts on the Nagios
>>     server that would be run by Nagios and have its output displayed
>>     as part
>>     of the Nagios web interface just like the existing CGIs.
>>
>>
>> Easy enough. Create it, put it in sbin and link to it from
>> share/side.html or wherever you want to.
>> 
>>
>>     In addition, I would like to able to interact with the
>>     pre-installed CGIs, for
>>     instance, by writing a plugin that creates a data file that is then
>>     used, by say, the histogram.cgi script. Is this possible?
>>
>>
>> Sure. Anything is possible; the only question is if you are capable.
>> To do the above, you'd just need to edit histogram.c, add your
>> specific code and recompile.
>> 
>>
>>     and if not, what other options are there for producing
>>     product-specific diagrams (on
>>     existing pages) using Nagios infrastructure?
>>
>>
>> It depends on what your requirements are. Custom links on
>> share/side.html or using host/service extended info pages (notes_url)
>> would be simple and might work for you, for example.
>>
>> --
>> Marc
>> formerly marc /at/ ena.com <http://ena.com>
>> ------------------------------------------------------------------------
>>
>>
------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Nagios-devel mailing list
>> Nagios-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>>  
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel


-- 
Malte Geierhos
Serverbetreuung / Administration


SnapScouts.de
Snapscouts Limited Zweigniederlassung Görlitz
Krischelstraße 14
02826 Görlitz

Fax:    +49 (0) 35 81 / 66 72 53
Mobil:  +49 (0) 1 51 / 27 00 22 70
E-Mail: malte@snapscouts.de

Web:    http://www.snapscouts.de


Geschäftsführer: Thomas von Skrbensky
Registergericht: Dresden HRB 25880
USt-IdNr.: DE254464823

Zweigniederlassung der Snapscouts Limited
69 Great Hampton Street
Birmingham, B18 6EW
Handelsreegister für England & Wales
Unternehmen Nr.: 6198239

Diese Information ist ausschließlich für den Adressaten bestimmt und
kann vertrauliche oder gesetzlich geschützte Informationen enthalten.
Wenn Sie nicht der bestimmungsgemäße Adressat sind, unterrichten Sie
bitte den Absender und vernichten Sie diese E-Mail. Anderen als dem
bestimmungsgemäßen Adressaten ist es untersagt, diese E-Mail zu lesen,
zu speichern, weiterzuleiten oder ihren Inhalt, auf welche Weise auch
immer, zu verwenden. Wir verwenden aktuelle Virenschutzprogramme.
Für Schäden, die dem Empfänger, gleichwohl durch von uns zugesandte
mit Viren befallene E-Mails entstehen, schließen wir jede Haftung aus.




[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Mohammed,<br>
<br>
at first - sry for writing offlist ;) ... <br>
regarding the cgi / css things - did you know about thruk.org ?<br>
Its a catalyst&nbsp; written new gui for Nagios / Icinga/ Shinken which
uses<br>
the Livestatus Plugin from Mr. Kettner for providing Realtime Access<br>
to Nagios<br>
Core data ( So besides beeing themeable its also a lot faster )<br>
<br>
kind regards,<br>
Malte<br>
<br>
<br>
Am 31.03.10 20:19, schrieb Mohammed Murphy:<br>
<span style="white-space: pre;">&gt; Thanks for the hints Marc.
Unfortunately I was not clear enough about my <br>
&gt; requirements before so I will expound a bit more.<br>
&gt;<br>
&gt; I only want to talk about the first issue of creating CGI
scripts and <br>
&gt; break it down into two parts. Firstly, I would like to create a
web page <br>
&gt; that contains the look &amp; feel and header &amp; footer info
of the existing <br>
&gt; pages with my own customised web data in the middle. The
important point <br>
&gt; is that I would like it to be automated, because (as I revealed
in my <br>
&gt; last email) this is for an installer-type application. So for
instance, <br>
&gt; if a Nagios user updates their Nagios system to a newer version
with a <br>
&gt; slighly different look &amp; feel, then the same installer-type
application <br>
&gt; will still be able to generate the custom page appropriately. Is
this <br>
&gt; possible?<br>
&gt;<br>
&gt; Secondly, is the issue of linking to my custom pages from
exisitng <br>
&gt; pages. The fact that I want it to be automated means that I
require a <br>
&gt; way of informing Nagios that a new custom page exists so Nagios
will <br>
&gt; provide a way for the Nagios user to access it via a link on an
existing <br>
&gt; page. I thought about parsing and then modifying side.html, but
that is <br>
&gt; only reliable if that is guaranteed to remain the same in all
versions <br>
&gt; of Nagios. nBoard, for instance, requires that a new html page
simply be <br>
&gt; added to an 'extras' directory; so I wondered if the default
Nagios web <br>
&gt; UI had a similar mechanism.<br>
&gt;<br>
&gt; Thanks for your time Marc. I hope I clarified my requirements a
bit more.<br>
&gt;<br>
&gt; Marc Powell wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Mar 16, 2010 at 9:01 AM, Mohammed Murphy <br>
&gt;&gt; &lt;<a class="moz-txt-link-abbreviated" \
href="mailto:mohammed.murphy@tandberg.com">mohammed.murphy@tandberg.com</a> <a \
class="moz-txt-link-rfc2396E" \
href="mailto:mohammed.murphy@tandberg.com">&lt;mailto:mohammed.murphy@tandberg.com&gt;</a>&gt; \
<br> &gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hey there,<br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; I would like to able to write and run my own CGI \
scripts on the Nagios<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; server that would be run by Nagios and have its \
output displayed<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; as part<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; of the Nagios web interface just like the existing \
CGIs.<br> &gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Easy enough. Create it, put it in sbin and link to it from <br>
&gt;&gt; share/side.html or wherever you want to.<br>
&gt;&gt;&nbsp; <br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; In addition, I would like to able to interact with \
the<br> &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; pre-installed CGIs, for<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; instance, by writing a plugin that creates a data \
file that is then<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; used, by say, the histogram.cgi script. Is this \
possible?<br> &gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Sure. Anything is possible; the only question is if you are
capable. <br>
&gt;&gt; To do the above, you'd just need to edit histogram.c, add
your <br>
&gt;&gt; specific code and recompile.<br>
&gt;&gt;&nbsp; <br>
&gt;&gt;<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; and if not, what other options are there for \
producing<br> &gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; product-specific diagrams (on<br>
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; existing pages) using Nagios infrastructure?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; It depends on what your requirements are. Custom links on <br>
&gt;&gt; share/side.html or using host/service extended info pages
(notes_url) <br>
&gt;&gt; would be simple and might work for you, for example. <br>
&gt;&gt;<br>
&gt;&gt; -- <br>
&gt;&gt; Marc<br>
&gt;&gt; formerly marc /at/ ena.com <a class="moz-txt-link-rfc2396E" \
href="http://ena.com">&lt;http://ena.com&gt;</a><br> &gt;&gt;
------------------------------------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt;
------------------------------------------------------------------------------<br>
&gt;&gt; Download Intel&amp;#174; Parallel Studio Eval<br>
&gt;&gt; Try the new software tools for yourself. Speed compiling,
find bugs<br>
&gt;&gt; proactively, and fine-tune applications for parallel
performance.<br>
&gt;&gt; See why Intel Parallel Studio got high marks during beta.<br>
&gt;&gt; <a class="moz-txt-link-freetext" \
href="http://p.sf.net/sfu/intel-sw-dev">http://p.sf.net/sfu/intel-sw-dev</a><br> \
                &gt;&gt;
------------------------------------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Nagios-devel mailing list<br>
&gt;&gt; <a class="moz-txt-link-abbreviated" \
href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br>
 &gt;&gt; <a class="moz-txt-link-freetext" \
href="https://lists.sourceforge.net/lists/listinfo/nagios-devel">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a><br>
 &gt;&gt;&nbsp;&nbsp; <br>
&gt;<br>
&gt;<br>
&gt;
------------------------------------------------------------------------------<br>
&gt; Download Intel&amp;#174; Parallel Studio Eval<br>
&gt; Try the new software tools for yourself. Speed compiling, find
bugs<br>
&gt; proactively, and fine-tune applications for parallel performance.<br>
&gt; See why Intel Parallel Studio got high marks during beta.<br>
&gt; <a class="moz-txt-link-freetext" \
href="http://p.sf.net/sfu/intel-sw-dev">http://p.sf.net/sfu/intel-sw-dev</a><br> &gt; \
_______________________________________________<br> &gt; Nagios-devel mailing \
list<br> &gt; <a class="moz-txt-link-abbreviated" \
href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br>
 &gt; <a class="moz-txt-link-freetext" \
href="https://lists.sourceforge.net/lists/listinfo/nagios-devel">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a></span><br>
 <br>
<br>
-- <br>
Malte Geierhos<br>
Serverbetreuung / Administration<br>
<br>
<br>
SnapScouts.de<br>
Snapscouts Limited Zweigniederlassung G&ouml;rlitz<br>
Krischelstra&szlig;e 14<br>
02826 G&ouml;rlitz<br>
<br>
Fax:&nbsp;&nbsp;&nbsp; +49 (0) 35 81 / 66 72 53<br>
Mobil:&nbsp; +49 (0) 1 51 / 27 00 22 70<br>
E-Mail: <a class="moz-txt-link-abbreviated" \
href="mailto:malte@snapscouts.de">malte@snapscouts.de</a><br> <br>
Web:&nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" \
href="http://www.snapscouts.de">http://www.snapscouts.de</a><br> <br>
<br>
Gesch&auml;ftsf&uuml;hrer: Thomas von Skrbensky<br>
Registergericht: Dresden HRB 25880<br>
USt-IdNr.: DE254464823<br>
<br>
Zweigniederlassung der Snapscouts Limited<br>
69 Great Hampton Street<br>
Birmingham, B18 6EW<br>
Handelsreegister f&uuml;r England &amp; Wales<br>
Unternehmen Nr.: 6198239<br>
<br>
Diese Information ist ausschlie&szlig;lich f&uuml;r den Adressaten bestimmt und<br>
kann vertrauliche oder gesetzlich gesch&uuml;tzte Informationen enthalten.<br>
Wenn Sie nicht der bestimmungsgem&auml;&szlig;e Adressat sind, unterrichten Sie<br>
bitte den Absender und vernichten Sie diese E-Mail. Anderen als dem<br>
bestimmungsgem&auml;&szlig;en Adressaten ist es untersagt, diese E-Mail zu lesen,<br>
zu speichern, weiterzuleiten oder ihren Inhalt, auf welche Weise auch<br>
immer, zu verwenden. Wir verwenden aktuelle Virenschutzprogramme.<br>
F&uuml;r Sch&auml;den, die dem Empf&auml;nger, gleichwohl durch von uns \
zugesandte<br> mit Viren befallene E-Mails entstehen, schlie&szlig;en wir jede \
Haftung aus.<br> <br>
<br>
<br>
</body>
</html>



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Nagios-devel mailing list
Nagios-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic