is there an addon like this?

Lars Michelsen lars.lists at googlemail.com
Fri Mar 13 20:44:58 CET 2009


Hello Steven,
just for your interest if you use or consider to use. There is a new
feature in NagVis (1.4rc2 or newer) called context menus. You can add
customized links to the objects "right-click" menus to connect to your
monitored systems directly from your NagVis maps.

There is an example howto in the NagVis 1.4 documentation
(http://docs.nagvis.org/1.4/en_US/extending/custom_context_actions.html).
This example is for ssh connecting on a linux box but its very
adaptable to other systems. Some guy in nagios-portal.org adapted this
already to rdp connection via rdesktop client
(http://www.nagios-portal.org/wbb/index.php?page=Thread&postID=97042&highlight=rdesktop#post97042).
It's in german but google translate should be able to translate this.

Regards,
Lars

2009/2/27  <nagios-devel-request at lists.sourceforge.net>:
> Send Nagios-devel mailing list submissions to
>        nagios-devel at lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://lists.sourceforge.net/lists/listinfo/nagios-devel
> or, via email, send a message with subject or body 'help' to
>        nagios-devel-request at lists.sourceforge.net
>
> You can reach the person managing the list at
>        nagios-devel-owner at lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Nagios-devel digest..."
>
>
> Today's Topics:
>
>   1. is there an addon like this? (StevenXu(gmail))
>   2. Re: is there an addon like this? (Thomas Guyot-Sionnest)
>   3. Re: is there an addon like this? (StevenXu(gmail))
>   4. patch for a small typo in extinfo.c (Johannes Dagemark)
>   5. servicestatus attributes (Badri Pillai)
>   6. Strange service scheduling (Ricardo Maraschini)
>   7. event_handler pipe fd inheritation (Bastian Friedrich)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 24 Feb 2009 00:16:47 -0800
> From: "StevenXu(gmail)" <516888 at gmail.com>
> Subject: [Nagios-devel] is there an addon like this?
> To: nagios-devel at lists.sourceforge.net
> Message-ID:
>        <b1be2e4f0902240016i61719310if94239db97ee27d4 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi folks,
> I am looks for an addon does SSH server function, which can launch ssh or
> telnet window inside nagios web page by clicking the host icon. The
> SSH/Telnet session is connected between nagios web server and target host.
> it  will not need client computer install any remote control program. To try
> monitoring the network status, I only need to login Nagios web page once
> from any computer which can browse internet.
> Is this kind of addon or software already come out yet?
>
> Thanks for your time and please point me to the right way, how can i do it?
>
> Steven
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 2
> Date: Tue, 24 Feb 2009 03:31:56 -0500
> From: Thomas Guyot-Sionnest <dermoth at aei.ca>
> Subject: Re: [Nagios-devel] is there an addon like this?
> To: Nagios Developers List <nagios-devel at lists.sourceforge.net>
> Message-ID: <49A3B07C.5000303 at aei.ca>
> Content-Type: text/plain; charset=ISO-8859-1
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 24/02/09 03:16 AM, StevenXu(gmail) wrote:
>> Hi folks,
>>
>> I am looks for an addon does SSH server function, which can launch ssh
>> or telnet window inside nagios web page by clicking the host icon. The
>> SSH/Telnet session is connected between nagios web server and target
>> host. it  will not need client computer install any remote control
>> program. To try monitoring the network status, I only need to login
>> Nagios web page once from any computer which can browse internet.
>> Is this kind of addon or software already come out yet?
>>
>> Thanks for your time and please point me to the right way, how can i do it?
>
> There are most likely CGIs out there for that (I'd start by searching on
> freshmeat.net). To integrate it with Nagios, use the action_url or
> notes_url (you can template the definition by using macros like
> $HOSTNAME$ and $HOSTADDDRESS$ for the CGI parameters).
>
> - --
> Thomas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJo7B86dZ+Kt5BchYRAtyMAJ4hdli92oZqhBo9bktYND/35udX6wCeIXSd
> nvxFlYPA8TKZ9/GHU9hnE0Y=
> =J+kC
> -----END PGP SIGNATURE-----
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 24 Feb 2009 12:55:19 -0800
> From: "StevenXu(gmail)" <516888 at gmail.com>
> Subject: Re: [Nagios-devel] is there an addon like this?
> To: nagios-devel at lists.sourceforge.net
> Message-ID:
>        <b1be2e4f0902241255y37a720cfm8c11eef68f8435b7 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Thanks so much for the valuable information from Carl Ekman and Thomas, I
> will dig into Java based SSH client and action_URLs directions.
> Thanks for the quick reply again,
>
> Steven
>
> On Tue, Feb 24, 2009 at 3:17 AM, Carl Ekman <carl.ekman at net-defence.co.uk>wrote:
>
>> Steven,
>>
>> You could solve it using a java based ssh client. If you create a PHP, Perl
>> or
>> other web page that takes inparameters as GET variables (for hostname etc)
>> and
>> puts them as parameters for a java applet that is your SSH client, you can
>> then put the URL for that page as your management url in nagios.
>>
>> I think there are a few java based SSH apps out there. I have used one
>> called
>> mindterm - I think they have one commercial and one free version (as in no
>> cost, not as in Free Software).
>>
>> Regards,
>>
>> Carl Ekman
>>
>>
>> Senior Technical Consultant
>>
>> NET-DEFENCE
>>
>> A division of Ogilvie Communications
>>
>> M>_ 07920 452066
>> W>_ http://www.net-defence.co.uk/
>>
>>
>>
>> On Tuesday 24 February 2009 8:16:47 am StevenXu(gmail) wrote:
>> > Hi folks,
>> >
>> > I am looks for an addon does SSH server function, which can launch ssh or
>> > telnet window inside nagios web page by clicking the host icon. The
>> > SSH/Telnet session is connected between nagios web server and target
>> host.
>> > it  will not need client computer install any remote control program. To
>> > try monitoring the network status, I only need to login Nagios web page
>> > once from any computer which can browse internet. Is this kind of addon
>> or
>> > software already come out yet?
>> >
>> > Thanks for your time and please point me to the right way, how can i do
>> it?
>> >
>> > Steven
>>
>>
>> CONFIDENTIALITY NOTICE: This email and any attachments may be confidential.
>> They may contain privileged information and are intended for the named
>> addressee only. They must not be distributed without our consent. If you are
>> not the intended recipient, please notify us immediately and delete the
>> message and any attachments from your computer, do not disclose, distribute,
>> or retain this email or any part of it.
>>
>> DISCLAIMER: Internet communications are not secure and therefore Ogilvie
>> Group Ltd does not accept legal responsibility for the contents of this
>> message.  Unless expressly stated, opinions in this email are those of the
>> individual sender and not of Ogilvie Group Ltd.   Ogilvie Group Ltd checks
>> outgoing e-mails with anti-virus software that is regularly updated however
>> this does not guarantee that any files attached to this e-mail are virus
>> free. You must therefore take full responsibility for virus checking.
>> Ogilvie Group Ltd reserves the right to monitor all email communications
>> through their networks.
>>
>> Ogilvie Communications ltd
>> Registered in Scotland No. 116592
>> Ogilvie House
>> Pirnhall Business Park
>> Stirling
>> FK7 8ES
>>
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 4
> Date: Thu, 26 Feb 2009 09:24:15 +0100
> From: Johannes Dagemark <jd at op5.com>
> Subject: [Nagios-devel] patch for a small typo in extinfo.c
> To: nagios-devel at lists.sourceforge.net
> Message-ID: <49A651AF.8050706 at op5.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello All
>
> Here is a small patch for a typo in extinfo.c
>
> Cheers
>
> --
> Johannes Dagemark
> VP Engineering
> ________________________________________
>
> op5 AB
> F?rsta L?nggatan 19
> SE-413 27 Gothenburg
> cell: +46 733-70 90 24
> fax:  +46 31-774 04 32
> Email: jd at op5.com
> http://www.op5.com/
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: typo-in-extinfo.c.patch
> Type: text/x-patch
> Size: 947 bytes
> Desc: not available
>
> ------------------------------
>
> Message: 5
> Date: Thu, 26 Feb 2009 09:53:55 +0100
> From: Badri Pillai <badri at diglinks.com>
> Subject: [Nagios-devel] servicestatus attributes
> To: nagios-devel at lists.sourceforge.net
> Message-ID: <49A658A3.1000606 at diglinks.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi all,
>
> while writing a parser for "status.log" (logfile defined by status_file
> in nagios.cfg)
> I noticed that the following two variables are repeated twice with same
> values??
>
>        current_event_id
>        last_event_id
>
> nagios version: 3.0.6
>
> my question: is it a bug or feature?
>
> Regards,
>
> Badri
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 26 Feb 2009 11:38:51 -0300 (BRT)
> From: Ricardo Maraschini <ricardo.maraschini at opservices.com.br>
> Subject: [Nagios-devel] Strange service scheduling
> To: nagios-devel at lists.sourceforge.net
> Message-ID:
>        <5133665.416641235659131188.JavaMail.root at mail.opservices.com.br>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello,
>
>   We had a strange behaviour with a service schedule last night; The service was scheduled to be checked only on February/2010(Fri Feb 26 00:08:36 2010). This is very strange, looking to the code we found the following piece:
>
> -------
>
> base/checks.c:
>
> /* the service could not be rescheduled properly - set the next check time for next year, but don't actually reschedule it */
>     if(time_is_valid==FALSE && next_valid_time==preferred_time){
>
> --------
>
>   Looking to status.log we saw that the last service check was performed at 22:48 of yesterday, and the time period defined for this service finish at 22:58 thus the next check could be scheduled to 22:53(theoretically) because the normal check interval was defined to 5 minutes.
>   Considering that we have a high latency problem(about 300 seconds) Nagios theoretically tried to check the service OUT of time period scope(22:53 + ~300 seconds of latency problem) thus rescheduling the check for the next valid time following time period definition;
>
>   Is the above reasoning right?
>   If yes, why it was scheduled for the next year and not for the next valid time in time period definition?
>
>   Below follow the timeperiod definition:
>
> define timeperiod{
>        timeperiod_name  mytimeperiod
>        alias            a simple timeperiod definition
>        sunday           00:05-23:58
>        monday           00:05-05:44,06:21-23:58
>        tuesday          00:05-23:58
>        wednesday        00:05-23:58
>        thursday         00:05-23:58
>        friday           00:05-23:58
>        saturday         00:05-23:58
> }
>
>    Any help is welcome. Thanks in advance.
>
> -rm
>
>
>
> ------------------------------
>
> Message: 7
> Date: Fri, 27 Feb 2009 12:26:49 +0100
> From: Bastian Friedrich <bf+develop.nagios-dev at collax.com>
> Subject: [Nagios-devel] event_handler pipe fd inheritation
> To: nagios-devel at lists.sourceforge.net
> Message-ID: <200902271226.49708.bf+develop.nagios-dev at collax.com>
> Content-Type: text/plain; charset="iso-8859-15"
>
> Hi,
>
> we are using a mechanism in our event_handlers that shall try to restart
> broken local services; eventually, normal init scripts (/etc/init.d/...) are
> started, which in turn start arbitrary daemons (say, mysql).
>
> nagios creates a pipe to its event_handlers (and possibly other executables)
> in base/util.c for parent/child communication. The file descriptor to this
> pipe is (currently) not given the FD_CLOEXEC. This results in this fd being
> inherited by the event_handler (started by "popen()"), and, in our case, by
> the daemon (say, mysql). (The pipe is, e.g., visible in /proc/<whatever>/fd).
> As our daemons do not tend to close arbitrary fd's, this fd is never closed
> from the event_handler. As nagios waits for the file to be closed to continue
> its work, this results in a "denial of service" for the time that the daemon
> runs.
>
> The pipe fd should be set the FD_CLOEXEC flag; it is then not inherited by the
> event_handler.
>
> Patch attached.
>
> Best regards
>   Bastian
>
> --
> Collax GmbH . Burkheimer Stra?e 3 . 79111 Freiburg . Germany
> p: +49 (0) 761-45684-28
> f: +49 (0) 761-45684-10        www.collax.com
>
> Gesch?ftsf?hrer: Boris Nalbach
> AG M?nchen HRB 158898 . Ust.-IdNr: DE 814464942
> \ "I am two fools, I know, for loving, and for saying so."
> \          John Donne
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: cloexec-pipe-in-event_handler.patch
> Type: text/x-diff
> Size: 528 bytes
> Desc: not available
>
> ------------------------------
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
>
> ------------------------------
>
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
>
> End of Nagios-devel Digest, Vol 33, Issue 13
> ********************************************
>

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com




More information about the Developers mailing list