[Nagios-users] nagios3 and embeded perl

2008-03-19 Thread Sébastien Barbereau
Hi list,
I've been planning to upgrade to Nagios3 lately and wanted to start using
the ePN.
Compiling with or without ePN works fine. But if I try to run the perl
enabled Nagios version it nicely segfaults at startup.
(Of course the non ePN Nagios daemon works fine)

[EMAIL PROTECTED]:/usr/local/nagios-3.0/bin ../bin/nagios  
/usr/local/nagios-3.0
/etc/nagios.cfg

Nagios 3.0
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 03-13-2008
License: GPL

Nagios 3.0 starting... (PID=11943)
Local time is Wed Mar 19 11:16:23 GMT 2008
Segmentation fault
[EMAIL PROTECTED]:/usr/local/nagios-3.0/bin

Enabling debugging in the config doesn't bring any details.
Doing a strace gives this out (shortened for clarity):
.
_llseek(0, 0, 0xbf97ed50, SEEK_CUR) = -1 ESPIPE (Illegal seek)
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
_llseek(1, 0, 0xbf97ed50, SEEK_CUR) = -1 ESPIPE (Illegal seek)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...})
= 0
_llseek(2, 0, 0xbf97ed50, SEEK_CUR) = -1 ESPIPE (Illegal seek)
open(/usr/local/nagios-3.0/bin/p1.pl, O_RDONLY|O_LARGEFILE) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf97ee08) = -1 ENOTTY
(Inappropriate ioctl for device)
_llseek(4, 0, [0], SEEK_CUR)= 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0664, st_size=31892, ...}) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
readlink(/proc/self/exe, /usr/local/nagios-3.0/bin/nagios, 4095) = 32
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 1935 detached


I'm wondering if anyone ran into this issue or has an idea on how to fix it?

Thanks,
Seb.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Anyone know of add-ons / patches to Nagios that produce XML output for host and service statuses?

2008-03-11 Thread Sébastien Barbereau
Hi,
if you are using the ndo backend it is very simple to create an xml from a
db : mysqldump -xml ...

Seb.

On Mon, Mar 10, 2008 at 10:50 PM, Max [EMAIL PROTECTED] wrote:

 Hi,

 I saw NXE, but it was for 1.x.  Ideally status.cgi would have a
 mode=xml param :) to produce well-formed XML output so that external
 programs could have a nice HTTP-based interface, I think this would be
 hugely useful.

 I have searched for other projects, but only found NXE.

 Anyone know of others?  I really wish I had the time to patch
 status.cgi and create an XML mode :) .. anyone made attempts at this?

 Regards,
 Max

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Best way to monitor application clusters

2007-09-24 Thread Sébastien Barbereau
In similar cases I've always used  the NDO database to query the status of a
group of things.

There are also some other options check_multi for example (
http://my-plugin.de/wiki/doku.php/check_multi)

of course the nagios documentation may help you on this:
http://nagios.sourceforge.net/docs/2_0/clusters.html

Concerning the simple login web page, I would again suggest you to have a
look at NDO. Creating a simple PHP/Python/Perl/ASP page to query the
database is not complicated and would allow you to create custom displays
for specific usages.


On 9/24/07, Paul Weaver [EMAIL PROTECTED] wrote:

  I've recently started using nagios in our development environment, and
 have knocked a few plugins for some of our programs (i.e. monitor a log on
 a remote server to make sure it's growing, but not growing too fast or too
 slow, or jumbo pings between two remote machines), which is very impressive.

 One thing I would like to monitor is a group of hosts/services, and flag a
 warning if x% are not available, and a critical if y% are offline. A common
 example would be checking DNS services. If you have 4 DNS servers, you don't
 want to be woken up at 3AM if one falls offline, but if 3 are offline you
 would, and if 4 are offline you want an APB. You still want to see the
 servers are offline though on a webpage, and possible a notification in work
 hours.

 I'm aware of host/service groups, being one way of doing it, however I'm
 unsure if notifications can be set based on % of hosts/services available in
 a group.

 Another way would be a virtual host, with a custom check_host_alive
 which checks all hosts in a collection, and returns an OK/critical/warning
 based on the number of failures, and likewise with virtual services. The
 original hosts could then be monitored separately, or even not at all.

 For example, a service I would like to check is whether 3 mysql databases
 are in sync with each other. I currently have a web page that compares the
 log positions. It seems to me that logically the service should run on the
 mysql boxes, however I only want it running on

 Another example would be I have a piece of java software (call it A)
 that must run on at least one of 4 machines, and preferably on 2 of them. I
 don't care which machine it's on, but if it's not running I want to be
 notified in red lights.

 I could have a simple virtual service A, which would critical on 0, warn
 on 1 and OK on 2 or more.
 This would be attached to virtual host A, which would critical on 0,
 warn on 1 and OK on 2 or more of the servers that the service runs on.

 I'd also like a simple login to the web page which would only display
 the clusters of services/hosts, rather than the total view, which would
 allow our support engineers to easilly see real problems, and allow
 management to sleep hapilly with lots of green lights.

 I must admit I'm leaning to the virtual host/service thing, but I was
 wondering if there's a standard/better way of monitoring these kind of
 things?

 Thanks

 http://www.bbc.co.uk
 This e-mail (and any attachments) is confidential and may contain personal
 views which are not the views of the BBC unless specifically stated.
 If you have received it in error, please delete it from your system.
 Do not use, copy or disclose the information in any way nor act in
 reliance on it and notify the sender immediately.
 Please note that the BBC monitors e-mails sent or received.
 Further communication will signify your consent to this.

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] guest access

2007-07-30 Thread Sébastien Barbereau
Can't you just do this by playing with the apache and nagios configs?
I've done this in the past and it was not really a catch the only thing is
that you need
2 nagios configurations files: one serving the unauthenticated content with
no exec permissions,
one with the authenticated content with the exec permissions (this also
means that you need two set
of cgi scripts reading different nagios config files).

Other options is to not use apache native authentication but to create your
own apache auth module. This can be done
in perl using mod-perl or mod-python. In this case you setup a proper
authentication mechanism under apache with a default
guest user account to fallback if no proper auth is provided. This is
probably nicer and provides more flexibility but is probably more
complicated.
Some examples
of apache authentication modules:
perl: apache::authcookie (
http://search.cpan.org/~mschout/Apache-AuthCookie-3.10/lib/Apache2/AuthCookie.pm
)
python:
http://www.modpython.org/live/current/doc-html/tut-more-complicated.html
I've done some code on this here:
http://www.barbich.net/websvn/wsvn/nagios/nagios/doc/mod_apache_authentication/?rev=0sc=0


On 7/29/07, Paul Dugas [EMAIL PROTECTED] wrote:

 Been fiddling with this for a while now and am stumped.  I figure I'm
 not the first to want this so before I get a brain cramp I'll ask.

 I run a couple Nagios server on internal networks and I want internal
 users to get read access without having to log in.  I want a select
 number of users to be able to login and get higher level access.  I've
 been trying to get the HTTP interface default to the guest account and
 the HTTPS interface to require a login.  My admins and I would use the
 HTTPS interface while our customers would use the standard HTTP
 interface.

 Anybody got something like this going?  Perhaps something else that
 would accomplish the same?  Any info would be appreciated.

 pd
 --
 Paul Dugas, Computer EngineerDugas Enterprises, LLC
 [EMAIL PROTECTED]phone: 404-932-1355 522 Black Canyon Park
 http://dugas.ccfax: 866-751-6494 Canton, GA 30114 USA
 --
 This e-mail and any attachments are confidential.  If you receive
 this message in error or are not the intended recipient, you should
 not retain, distribute, disclose or use any of this information and
 you should destroy the e-mail and any attachments or copies.

 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Printable Documentation

2007-03-06 Thread Sébastien Barbereau

Hi,
the broken link has been fixed.
There are differences betwen the PDF I've generated and the official pdf
from Holger Weiss. Especially about printed output (alternate margins, table
of contents, page formatting ...).
URL: http://runnagios.be/doc.html
Seb.


On 3/5/07, Holger Weiss [EMAIL PROTECTED] wrote:


* Lars Stavholm [EMAIL PROTECTED] [2007-03-05 00:07]:
 Andy Shellam wrote:
  Personally I use the official PDF:
 
 
http://nagios.sourceforge.net/download/contrib/documentation/english/Nagios_2_0_Docs.pdf

 Is that one really up to date?

I had created it for Nagios 2.0 and the docs haven't changed that much
since then.  However, here's an updated version:

ftp://ftp.in-berlin.de/pub/users/weiss/nagios/doc/nagios-2.pdf

Holger

--
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] What to Monitor

2007-02-17 Thread Sébastien Barbereau

tpc port state
service answer
mailqueueS (amount of mails per mail queue, size of mailqueueS) = depends
on your smtp software

disk space
number of smtp processes
number of AV/anti-spam and related processes
number of open ports on the host
log file
DNS service behabiors (resolv working or cache OK)

of course there are also all other system related services which may be
running on the servers: snmpd, sshd, traffic on interface,...



On 2/17/07, Jay Chandler [EMAIL PROTECTED] wrote:


I'm primarily responsible for mailservers at my site.

So far I have monitors running on the host's responding to pings, to
load average, and to the mail queue.  Anything else anyone can suggest
that I monitor?  I've only got three or four mailservers, so I don't
mind going a smidgen overboard on their monitoring...

--
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: A star wars satellite accidently blew up the WAN.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Several map views of Nagios

2007-01-24 Thread Sébastien Barbereau

Hi,
you may want to have a look a nagvis (http://www.nagvis.org/doku.php) which
is interresting to provide different customisable views and has a simple
built in editor. Of course if you have more than 50 hosts it starts to be
difficult to set them up by hand. Therefor I'd suggest you also look at
graphviz ( http://www.graphviz.org/) to automagically calculate proper
coordinates for your hosts based on the parent relationship between them ...

Seb.

On 1/24/07, naim abu darwish [EMAIL PROTECTED] wrote:


Well, i have similar problem,
I have 530 hosts, so having all those on one map would be meaningless.
I just need the routers and the wireless machines on there. If i chose
what to exclude from the status map, it will still keep links pointing
to hidden devices and thus the map will still be cluttered. I found a
patch on  the Pkg-nagios-devel debian mailing list, a post dating back
to Tue, 28 Jun 2005. so i guess that patch was made to work with maybe
nagios-1.x ?? anyway, link to original post ::


http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/2005-June/000804.html

this is supposed to make the map only show certain selective
hostgroups on the statusmap. i tried the patch on statusmap.c , I am
using nagios 2.5. the patch failed. Im not very good at reading C
code, could someone help out here ? maybe fix the patch for the
current nagios version, also seems a good idea to include in future
nagios versions

Help appreciated

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios and Graphs

2007-01-04 Thread Sébastien Barbereau

this may be what you're looking for:
http://www.ederdrom.de/doku.php/nagios/pnp_en

On 1/4/07, Kyle Vorster [EMAIL PROTECTED] wrote:


Hi Guys,

I am looking for some kind of graphing software to show ping times,

I am pinging google.com and a few other sites to check what speed I get
to those sites but I would like to display this on a graph to see when I
have slow ping times and so forth.

Any one know of any good software for this.

Kind Regards,
Kyle Vorster

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Daily status report?

2006-08-15 Thread Sébastien Barbereau
Have a look at the mailing list archive:http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg06430.htmlShould provide you with the necessary tool and information. 
(at least I hope so)Seb.On 8/15/06, Marc Belanger [EMAIL PROTECTED] wrote:
Greetings,I have nagios 2.x installed on Solaris 10 monitoring ~100 hosts, and ~1000 services. I am collecting perfdata, As the admin/engineer, I'm quite happy with the http interface for checking the status of systems and knowing what needs to get fixed/looked at. I installed/configured nagios originally for my benefit anyways, as part of a data center lights out effort.
The problem: Management saw the website (I blame myself, screensaver is my new best friend). We all know what happens when suits get involved... yes, they want a daily report. Apparently clicking on a link, and logging into a website is too much work.
My first solution:Heh, I'd snap a screen print of a custom report, and mail it. Life was good, until I went on vacation.My second solution:Google, google, google. I'm surprised that I still cannot snap a txt formatted host up/down for 'report period' (in my case 7am-5pm defined in the cfg's) without using cacti, rrdtool, or any other add-ons.
My third solution:I'm giving in to rrdtool (I think). It seems like a lot more work than I want to invest, but I can perl/shell script it and crontab it, so the suits get thier daily eye candy, and I can go back on vacation.
My questions:- Is there a better way I haven't thought of, or found?- Is there an EASIER way I haven't thought of, or found?- HALP!- Any off the cuff suggestions? Aside from screensavers.Thanks much in advance,
-Marc

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.::: Messages without supporting info will risk being sent to /dev/null
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Implementation Plan for Network monitoring project

2006-08-11 Thread Sébastien Barbereau
Hi list,I'm looking to gather some of your experience in implementing your network  system monitoring infrastructure. I'm not interrested in technical bits and parts (I know Nagios in and out now) but more in the general methodology you have been using, project preparation/plans and so on ...
Of course scope of this questions is not purely related to nagios but has a wider spectrum.Thanks for any info,Seb.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[Nagios-users] Printable Documentation

2006-05-03 Thread Sébastien Barbereau

Hello to all,
I've repackaged the Official Nagios documentation to generate a
pretty printable version of the doc.
(2side version, table of content and page numbering, chapter numbering ...)

Available here:
http://runnagios.be/index.html?doc.html

Comments are welcome ...

Regards,
Seb.


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] Nagios Hypergraph 3D view

2005-12-19 Thread Sébastien Barbereau
Hello list,
I've made a simple script to transform a Nagios configuration tree into a strutuctured XML document readable by hypergraph (http://hypergraph.sourceforge.net/).

This enables you to have an alerternate 3D view of the parent relationship between host in your configuration.
A demo is running here: http://barbich.net/hypergraph_demo/
Screenshot: http://barbich.net/hypergraph_demo/sample_hypergraph.png
Script sources and sample files are in the same place.

Merry christmas to everyone,
Seb.Barbereau




Re: [Nagios-users] Nagios-db mysql module not working UPDATE

2005-11-24 Thread Sébastien Barbereau
hi,
here is a patch to the current CVS revision of nagios-db for postgres. 
This patch does:
* correct a bug on startup concerning neb_register_callback command change
* add some logging messages to help debugging
* correct a small typo in handling options (see offset bugs in option parsing 
http://sourceforge.net/mailarchive/message.php?msg_id=12557459 )
* modified neb initialisation so that 'processStart' is called when Nagios starts and not when we have a NEBCALLBACK_TIMED_EVENT_DATA . The problem was that processStart() was called berfore the nagios configuration was loaded and therefor processStart() did not have configuration data available. 


File is available here: http://www.barbich.net/websvn/wsvn/nagios/nagios/patches/nagios-db/inserter.c.patch?op=filerev=0sc=0



Good luck.
Seb.B
On 11/24/05, Mohr James [EMAIL PROTECTED] wrote:
I realized that I was actually compiling it against Nagios2.0b3. So I fixed the Makefile like this:
gcc -g -O2 -Wall -o inserter.o inserter.c -shared -I/opt/INSTALL/nagios/nagios-2.0b5/include/ -I/usr/include/mysql -lmysqlclient -fPICThis gave me several messages like this:inserter.c: In function `loadconfig':
inserter.c:345: warning: passing arg 3 of `neb_register_callback' makes integer from pointer without a castinserter.c:345: error: too few arguments to function `neb_register_callback'There were only three arguments passed to neb_register_callback, although per 
nebmods.c it should be expecting 4:int neb_register_callback(int callback_type, void *mod_handle, int priority, int (*callback_func)(int,void *)){So I changed inserter.c accordingly: neb_register_callback(NEBCALLBACK_TIMED_EVENT_DATA,loadconfig, 0, loadconfig);
 neb_register_callback(NEBCALLBACK_HOST_STATUS_DATA,processStatus, 0, processStatus); neb_register_callback(NEBCALLBACK_SERVICE_STATUS_DATA,processStatus, 0, processStatus); neb_register_callback(NEBCALLBACK_HOST_CHECK_DATA,processCheck, 0, processCheck);
 neb_register_callback(NEBCALLBACK_SERVICE_CHECK_DATA,processCheck, 0, processCheck);In all honesty, I have no idea if this change is correct. It *looks* right, but I am obviously not sure. Any help would be appreaciated.
Regards,Jim Mohr-Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] Im Auftrag von Mohr JamesGesendet: Donnerstag, 24. November 2005 20:31An: Nagios-users@lists.sourceforge.net
Betreff: [Nagios-users] Nagios-db mysql module not workingHi All!I have Nagios 2.0b5, nagios-db 0.91 and MySQL 4.1.15, including MySQL-MAX 4.1.15. When Nagios starts I see the module is loaded(nagios-db: inserter locked into db) and the appropriate message when nagios shuts down. However, nothing is getting loaded into the database, and I do not see any error messages in /var/log/messages.
I have changed inserted.c to reflect the user/password of the database(nagios/nagios) and I can log inusing the mysql command and insert data directly into the tables. I have also tried changing the values (i.e
.nagios2/nagios) in the nebmodule_init function and it reports the errornagios-db: inserter failed to connect to db. This convinces be that at least I am connecting to the database and the username/password are correct.
The nagios.cfg has this:event_broker_options=-1broker_module=/opt/INSTALL/nagios-db-0.91/neb/mysql/inserter.oAnd the path is correct.Near the top of the loadconfig function I added this:
write_to_logs_and_console(Inside ofloadconfig,NSLOG_INFO_MESSAGE,TRUE);As well as in a couple of other places.My assumption is that it should write an entry to /var/log/messages when this function is called. Perhaps the function is being called, but this line is not writing to where I expect. It seems that other than the init/deinit functions, nothing else is getting called.
I loaded another NEB module that has this:snprintf(temp_buffer,sizeof(temp_buffer)-1,EVENT: %d MESSAGE:%s,event_type,tmp_service-plugin_output);write_to_all_logs(temp_buffer,NSLOG_INFO_MESSAGE);
These messages are getting writting to the /var/log/messages.I am at a loss as to where to look next. Any help is greatly appreaciated.Regards,Jim Mohr---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=ick___Nagios-users mailing list
Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing