From creator at mindcreations.com Wed Nov 5 10:23:09 2003
From: creator at mindcreations.com (Stefano Coletta)
Date: Wed, 05 Nov 2003 10:23:09 +0100
Subject: RFC: Proposal for a new patch before releasing of v2.0 (to be included)
Message-ID: <3FA8C17D.5060703@mindcreations.com>
Hello,
I've patched Nagios to add support for HTML email with urlencoded
parameters.
You can find a screenshot as attachment where it is shown the final
result from user point of view. The four links in the screenshot will
point to the appropriate pages.
Here are the new commands to send emails:
define command {
command_name notify-by-email
command_line /usr/bin/printf "%b" "To:
$CONTACTEMAIL$\r\nMime-Version: 1.0\r\nContent-Type:
text/html\r\nContent-Base: http://nagiosbox\r\nSubject: $SERVICESTATE$
alert for $HOSTALIAS$/$SERVICEDESC$\x21\r\n\r\n***** Nagios 1.1
*****
Show
availability report Show host
details Locate on
Map Show
services " | /usr/sbin/sendmail -t
}
As you can note there are two new fields that Nagios does not provide:
$ENCODEDHOSTNAME$ and $ENCODEDSERVICEDESC$.
To make it work for your installation you have to replace the
http://nagiosbox string with the one identifying your Nagios server.
I've also used sendmail to send emails but you can replace the
"/usr/sbin/sendmail -t" command with your favorite mailer.
The patch adds the two new fields to those available in Nagios.
I'll send the diff code shortly.
--
Stefano Coletta
http://www.mindcreations.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: htmlmail.gif
Type: image/gif
Size: 48545 bytes
Desc: not available
URL:
From jhmartin at toger.us Wed Nov 5 17:48:45 2003
From: jhmartin at toger.us (Jason Martin)
Date: Wed, 5 Nov 2003 08:48:45 -0800 (PST)
Subject: template issues
Message-ID:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello, I am having an issue with Nagios 1.1 when using some of the
'template tricks'. Particularly, I have a service that is defined like
such:
define service{
use ZZZ-service
service_description YYY
check_command check_theservice!some!arguments
}
define service{
use ZZZ-service
service_description FOO
check_command check_theservice!some!arguments
}
The definition for ZZZ-service includes:
hostgroup_name ZZZServers
That part works fine as do all other aspects of nagios. Now, when I try
the following nagios doesn't appear to recognize any dependencies
(preflight shows 0, cgi shows 0). It is definitely reading the file and
if I change it to be syntatically invalid it throws errors, but otherwise
it seems to silently ignore the depedencies. Does nagios not support
utilizing hostgroup-defined services and hostgroup-defined dependencies?
define servicedependency {
hostgroup_name ZZZServers
service_description YYY
dependent_hostgroup_name ZZZServers
dependent_service_description FOO
}
Thanks,
- -Jason Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/
iD8DBQE/qSnyl2ODWuqVSBMRAtjKAKCYxh25vVjI2VYQFBa41sWQ73Z21gCfZbdL
nXAcO6dLCwHuMRZH2vkggIo=
=qF09
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From nagios at nagios.org Thu Nov 6 07:14:27 2003
From: nagios at nagios.org (Ethan Galstad)
Date: Thu, 06 Nov 2003 00:14:27 -0600
Subject: RFC: Proposal for a new patch before releasing of v2.0 (to be included)
In-Reply-To: <3FA8C17D.5060703@mindcreations.com>
References: <3FA8C17D.5060703@mindcreations.com>
Message-ID: <3FA99263.30264.195C213@localhost>
It would seem wiser to simply pass the host name and service
description macros as arguments to a notification script. The script
could then url encode them before sending them out in an email
message.
On 5 Nov 2003 at 10:23, Stefano Coletta wrote:
> Hello,
>
> I've patched Nagios to add support for HTML email with urlencoded
> parameters.
>
> You can find a screenshot as attachment where it is shown the final
> result from user point of view. The four links in the screenshot will
> point to the appropriate pages.
>
> Here are the new commands to send emails:
>
> define command {
> command_name notify-by-email
> command_line /usr/bin/printf "%b" "To:
> $CONTACTEMAIL$\r\nMime-Version: 1.0\r\nContent-Type:
> text/html\r\nContent-Base: http://nagiosbox\r\nSubject:
> $SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$\x21\r\n\r\n*****
> Nagios 1.1 *****
href=\"/cgi-bin/avail.cgi?host=$ENCODEDHOSTNAME$&show_log_entries\"> mg src=\"/images/trends.gif\" border=\"0\" alt=\"Command\"> Show
> availability report href=\"/cgi-bin/extinfo.cgi?type=1&host=$ENCODEDHOSTNAME$\"> src=\"/images/status2.gif\" border=\"0\" alt=\"Command\"> Show host
> details href=\"/cgi-bin/statusmap.cgi?layout=1&host=$ENCODEDHOSTNAME$\"> src=\"/images/status3.gif\" border=\"0\" alt=\"Command\"> Locate on
> Map src=\"/images/status2.gif\" border=\"0\" alt=\"Command\"> Show
> services " | /usr/sbin/sendmail -t }
>
> As you can note there are two new fields that Nagios does not provide:
> $ENCODEDHOSTNAME$ and $ENCODEDSERVICEDESC$. To make it work for your
> installation you have to replace the http://nagiosbox string with the
> one identifying your Nagios server. I've also used sendmail to send
> emails but you can replace the "/usr/sbin/sendmail -t" command with
> your favorite mailer.
>
> The patch adds the two new fields to those available in Nagios.
> I'll send the diff code shortly.
>
> --
> Stefano Coletta
>
> http://www.mindcreations.com
>
>
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From creator at mindcreations.com Wed Nov 5 23:21:31 2003
From: creator at mindcreations.com (Creator)
Date: Wed, 5 Nov 2003 23:21:31 +0100
Subject: Patch: send html notification with dynamic hyperlinks to Nagios pages
Message-ID: <000401c3a3eb$2a116150$7100a8c0@mindcreations.com>
Overview
--------
Add to Nagios notify commands the capability to send HTML email messages
with url encoded hostnames and servicedescs.
This patch makes possible to send HTML notifications with clickable dynamic
links to quickly access the pages with details about the problem Nagios is
reporting.
Very useful for large installations or smart help desks :)
You can find a screenshot as attachment where it is shown the final
result from user point of view. The four links in the screenshot will
point to the appropriate pages.
Patch it
--------
To make all of this working you have to:
1) Apply the patch
cd /base
patch utils.c /htmlmail.diff
make;strip nagios;cp nagios /bin
Now set /bin/nagios permissions as those of the
other files in that dir and you have finished.
2) Replace the commands in the attached misccommands.cfg with the same
commands in your misccommands.cfg and replace the http://nagiosbox string
with the one identifying your Nagios server. I've used sendmail to send
emails but you can replace the "/usr/sbin/sendmail -t" command with your
favorite mailer.
Note for NAGAT users: the edit textarea to change misccommands.cfg entries
is stripping "\" characters. Beware of this and edit this file by hand
rather than with Nagat or you will not receive any email. I'm not aware of
problems with other web interfaces because I've not tested them. I suggest
you to edit this file by hand.
You'll note that there are two new fields that Nagios does not provide:
$ENCODEDHOSTNAME$ and $ENCODEDSERVICEDESC$.
The patch code adds the two new fields to those available in Nagios.
3) Restart Nagios by issuing a STOP and a START command (not RELOAD).
Wait for the next emails and enjoy :)
Nagios it (for Ethan)
---------------------
I think this would be a good cosmetic feature for notifications in Nagios
v2.0.
I'm sorry but I had no time to implement it against v2.0 CVS, I hope this is
not a problem to merge this code into 2.0.
FINAL NOTE: The only annoying thing to care about is that images are not
displayed properly if you have implemented secure access to Nagios site and
you are not logged in before reading the email. If you don't care about this
I suggest you to strip images from the email code.
------------
Stefano Coletta
http://www.mindcreations.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: htmlmail.diff
Type: application/octet-stream
Size: 2626 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: misccommands.cfg
Type: application/octet-stream
Size: 2289 bytes
Desc: not available
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: htmlmail.gif
Type: image/gif
Size: 48545 bytes
Desc: not available
URL:
From sergey at dorokhov.com Fri Nov 7 18:47:49 2003
From: sergey at dorokhov.com (Sergey Dorokhov)
Date: Fri, 7 Nov 2003 09:47:49 -0800
Subject: Bug + patch: check_disk.c
Message-ID: <200311071749.hA7HmuoE028902@www.dorokhov.com>
Hello!
I recently have discovered problem with check_disk module.
It always shows "OK" even if your free space less than critical.
Example:
# df -k /var
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/vinum/var 33646567 28453984 2500858 92% /var
# ./check_disk -w 20 -c 10 /var
DISK OK [2500849 kB (8%) free on /dev/vinum/var]
I did some research and here is the patch.
----------------------------------------------------------------------------
---------------------------------------
--- check_disk.c Thu Jul 10 23:03:47 2003
+++ /home/svd/check_disk.c Fri Nov 7 09:46:19 2003
@@ -321,13 +321,13 @@ check_disk (int usp, float free_disk)
{
int result = STATE_UNKNOWN;
/* check the percent used space against thresholds */
- if (usp >= 0 && usp >= (100.0 - c_dfp))
+ if (usp >= 0 && usp >= (100.0 - c_df))
result = STATE_CRITICAL;
- else if (c_df >= 0 && free_disk <= c_df)
+ else if (c_df >= 0 && free_disk <= c_dfp)
result = STATE_CRITICAL;
- else if (usp >= 0 && usp >= (100.0 - w_dfp))
+ else if (usp >= 0 && usp >= (100.0 - w_df))
result = STATE_WARNING;
- else if (w_df >= 0 && free_disk <= w_df)
+ else if (w_df >= 0 && free_disk <= w_dfp)
result = STATE_WARNING;
else if (usp >= 0.0)
result = STATE_OK;
----------------------------------------------------------------------------
---------------------------------------
--
Sergey Dorokhov
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From sghosh at sghosh.org Fri Nov 7 19:23:47 2003
From: sghosh at sghosh.org (Subhendu Ghosh)
Date: Fri, 7 Nov 2003 13:23:47 -0500 (EST)
Subject: Bug + patch: check_disk.c
In-Reply-To: <200311071749.hA7HmuoE028902@www.dorokhov.com>
References: <200311071749.hA7HmuoE028902@www.dorokhov.com>
Message-ID:
Try looking at the help for check_disk --- number without percentage means
kilobytes and not percentage....
-sg
On Fri, 7 Nov 2003, Sergey Dorokhov wrote:
> Hello!
>
> I recently have discovered problem with check_disk module.
> It always shows "OK" even if your free space less than critical.
>
> Example:
> # df -k /var
> Filesystem 1K-blocks Used Avail Capacity Mounted on
> /dev/vinum/var 33646567 28453984 2500858 92% /var
>
> # ./check_disk -w 20 -c 10 /var
> DISK OK [2500849 kB (8%) free on /dev/vinum/var]
>
> I did some research and here is the patch.
>
> ----------------------------------------------------------------------------
> ---------------------------------------
>
>
> --- check_disk.c Thu Jul 10 23:03:47 2003
> +++ /home/svd/check_disk.c Fri Nov 7 09:46:19 2003
> @@ -321,13 +321,13 @@ check_disk (int usp, float free_disk)
> {
> int result = STATE_UNKNOWN;
> /* check the percent used space against thresholds */
> - if (usp >= 0 && usp >= (100.0 - c_dfp))
> + if (usp >= 0 && usp >= (100.0 - c_df))
> result = STATE_CRITICAL;
> - else if (c_df >= 0 && free_disk <= c_df)
> + else if (c_df >= 0 && free_disk <= c_dfp)
> result = STATE_CRITICAL;
> - else if (usp >= 0 && usp >= (100.0 - w_dfp))
> + else if (usp >= 0 && usp >= (100.0 - w_df))
> result = STATE_WARNING;
> - else if (w_df >= 0 && free_disk <= w_df)
> + else if (w_df >= 0 && free_disk <= w_dfp)
> result = STATE_WARNING;
> else if (usp >= 0.0)
> result = STATE_OK;
>
> ----------------------------------------------------------------------------
> ---------------------------------------
>
> --
> Sergey Dorokhov
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
--
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From sergey at dorokhov.com Fri Nov 7 21:12:00 2003
From: sergey at dorokhov.com (Sergey Dorokhov)
Date: Fri, 7 Nov 2003 12:12:00 -0800
Subject: Bug + patch: check_disk.c
In-Reply-To:
References:
Message-ID: <200311072013.hA7KD7oE035326@www.dorokhov.com>
Sorry, my bad :(
--
Svd
> -----Original Message-----
> From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
> Sent: Friday, November 07, 2003 10:24 AM
> To: Sergey Dorokhov
> Cc: nagios-devel at lists.sourceforge.net
> Subject: Re: [Nagios-devel] Bug + patch: check_disk.c
>
>
> Try looking at the help for check_disk --- number without percentage means
> kilobytes and not percentage....
>
> -sg
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From e9627019 at student.tuwien.ac.at Mon Nov 10 15:19:15 2003
From: e9627019 at student.tuwien.ac.at (Dietmar Ruzicka)
Date: Mon, 10 Nov 2003 15:19:15 +0100
Subject: BUG in xodtemplate.c
Message-ID: <200311101519.16015.e9627019@student.tuwien.ac.at>
Hi,
there is a bug in xodtemplate.c in nagios 2.0.
In xodtemplate_expand_hosts you add the regular-expression instead of the
matching host_name. The attached patch fixes the bug.
regards
Dietmar
[nagios at work nagios]$ diff -c xdata/xodtemplate.c.original xdata/xodtemplate.c
*** xdata/xodtemplate.c.original 2003-11-10 14:51:37.000000000 +0100
--- xdata/xodtemplate.c 2003-11-10 15:01:47.000000000 +0100
***************
*** 8876,8882 ****
found_match=TRUE;
/* add host to list */
!
xodtemplate_add_host_to_hostlist(list,temp_ptr);
}
/* free memory allocated to compiled regexp */
--- 8876,8882 ----
found_match=TRUE;
/* add host to list */
!
xodtemplate_add_host_to_hostlist(list,temp_host->host_name);
}
/* free memory allocated to compiled regexp */
[nagios at work nagios]$
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From atonns at mail.ivillage.com Tue Nov 11 00:55:49 2003
From: atonns at mail.ivillage.com (atonns at mail.ivillage.com)
Date: Mon, 10 Nov 2003 18:55:49 -0500
Subject: Different paging for different levels
Message-ID:
Below is a post that I made to the nagios-users list over a week ago. I
thought about it, and figured that nagios-devel would be the better place
for it.
Summary: I'm thinking of some global config variable named
"force_hard_state_change_notification". It would be a supplement for people
that have "notification_interval=0" to suppress periodic notifications when
the hard state is the same not-OK state until recovery, but DO want to know
about other hard state changes while not-OK (ie: a transition from WARNING
to CRITICAL).
--- post follows ---
Whoops. Looks like my assessment was not 100% accurate.
When a service goes from WARNING to CRITICAL it _is_ a hard state change.
The problem is that I have notification_interval=0 - which means since it's
already sent single notification for a non-OK state (the WARNING) it will
not send another notification for ANY OTHER non-OK state (the CRITICAL).
What might be the "feature addition" that would make this work for me would
be some option to enable some additional logic so that even if the
notification_interval=0, Nagios should ignore the time interval and attempt
to send a immediate notification (assuming all the other checks like
downtime, flapping, etc. pass) whenever there's hard state change.
I'd like to work on adding this feature (I've spent a lot of time reading
the source at this point) but I don't want to add logic where it doesn't
belong. There's a lot of checks going on with
"check_service_notification_viability" in notifications.c, but there's
nothing about how to determine a hard state change. That's done in checks.c
as part of "reap_service_checks". The "semi-psuedo code" for my suggested
change to "check_service_notification_viability" would be:
/* dont notify contacts about this service problem again if the notification
interval is set to 0
* unless forcing notification due to a hard state change */
if(svc->current_state!=STATE_OK && svc->no_more_notifications==TRUE){
if(force_hard_state_change_notification == FALSE ||
(svc->current_state!=svc->last_state &&
svc->current_attempt>=svc->max_attempts)) {
#ifdef DEBUG4
printf("\tWe shouldn't re-notify contacts about this service
problem!\n");
#endif
return ERROR;
}
#ifdef DEBUG4
else {
printf("\tNotifications about hard state changes were
forced!\n"0;
}
#endif
}
--
"Computer science is as much about computers as
astronomy is about telescopes" -- Edsger Dijkstra
---------------------------------------------------------
Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com
> -----Original Message-----
> From: atonns at mail.ivillage.com [mailto:atonns at mail.ivillage.com]
> Sent: Friday, October 24, 2003 12:22 PM
> To: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Different paging for different levels
>
>
> Matter of factly, your situation doesn't even work properly.
>
> ie:
> If a service goes from OK to WARNING this is a hard state
> change, and it
> will notify via email.
> If it then goes from WARNING to CRITICAL this is NOT a hard
> state change and
> it will NOT notify via pager.
>
> I have not found a solution for this problem. However, I
> would really like
> to be able to handle sending notification via pager when a
> service enters a
> CRITICAL state without adding an ocsp_command.
>
> --
> "Computer science is as much about computers as
> astronomy is about telescopes" -- Edsger Dijkstra
> ---------------------------------------------------------
> Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com
>
>
> > -----Original Message-----
> > From: Chris Gill [mailto:cgill at NewWorldApps.com]
> > Sent: Thursday, October 23, 2003 11:32 AM
> > To: 'nagios-users at lists.sourceforge.net'
> > Subject: [Nagios-users] Different paging for different levels
> >
> >
> > Hi all,
> > We've moved to Nagios here over the last few months,
> > and things have
> > been going swimingly. There's one question, though, that's
> > cropped up that I
> > can't seem to figure out. Is there a way to send different
> > types of alerts
> > based on severity. IE: send warning alerts by e-mail, and
> > critical alerts by
> > pager. The only way I've seen to do this is to set up two
> > contacts for each
> > user (bob-email, bob-pager). This seems inordinately clunky,
> > though. Is
> > there a better way to do it?
> >
> > -----------------------------------------------------------------
> > Christopher P. Gill, Systems Engineer, New World Apps
> > cgill at newworldapps.com
> > 703-856-7268 (Cell/Business)
--
"Computer science is as much about computers as
astronomy is about telescopes" -- Edsger Dijkstra
---------------------------------------------------------
Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From ib at onsitetech.com Tue Nov 11 01:50:54 2003
From: ib at onsitetech.com (Ian Burrell)
Date: Mon, 10 Nov 2003 16:50:54 -0800
Subject: Table weirdness on Tactical Overview
Message-ID: <3FB0326E.6050901@onsitetech.com>
In the CGI Tactical Overview screen, I noticed something weird. The
Critical services cell is as wide as the Monitoring Features table below
it.
My guess of what is happening is that the "Monitoring Features" table is
inside the column of the next table row which is causing the cell above
it to expand to the right. I suspect that there is a missing table
close somewhere.
I am using Nagios 1.1. IE and Mozilla show the same thing.
- Ian
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From albert.tobey at priority-health.com Tue Nov 11 04:07:27 2003
From: albert.tobey at priority-health.com (Al Tobey)
Date: Mon, 10 Nov 2003 22:07:27 -0500
Subject: Table weirdness on Tactical Overview
In-Reply-To: <3FB0326E.6050901@onsitetech.com>
References: <3FB0326E.6050901@onsitetech.com>
Message-ID: <1068520047.2261.2.camel@zorak.tobert.org>
It's fixed in CVS.
http://cvs.sourceforge.net/viewcvs.py/nagios/nagios/cgi/tac.c?r1=1.8.2.1&r2=1.8.2.2
At around line 1220, remove the comments for this block of code:
/*
printf("\n");
printf("\n");
*/
On Mon, 2003-11-10 at 19:50, Ian Burrell wrote:
> In the CGI Tactical Overview screen, I noticed something weird. The
> Critical services cell is as wide as the Monitoring Features table below
> it.
>
> My guess of what is happening is that the "Monitoring Features" table is
> inside the column of the next table row which is causing the cell above
> it to expand to the right. I suspect that there is a missing table
> close somewhere.
>
> I am using Nagios 1.1. IE and Mozilla show the same thing.
>
> - Ian
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
** ** ** PRIVILEGED AND CONFIDENTIAL ** ** **
This email transmission contains privileged and confidential information
intended only for the use of the individual or entity named above. Any
unauthorized review, use, disclosure or distribution is prohibited and
may be a violation of law. If you are not the intended recipient or a
person responsible for delivering this message to an intended recipient,
please delete the email and immediately notify the sender via the email
return address or mailto:postmaster at priority-health.com. Thank you.
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From nagios at nagios.org Tue Nov 11 06:09:11 2003
From: nagios at nagios.org (Ethan Galstad)
Date: Mon, 10 Nov 2003 23:09:11 -0600
Subject: BUG in xodtemplate.c
In-Reply-To: <200311101519.16015.e9627019@student.tuwien.ac.at>
References: <200311101519.16015.e9627019@student.tuwien.ac.at>
Message-ID: <3FB01A97.21734.15691A2@localhost>
Thanks! I'll get this updated in CVS.
On 10 Nov 2003 at 15:19, Dietmar Ruzicka wrote:
> Hi,
>
> there is a bug in xodtemplate.c in nagios 2.0.
>
> In xodtemplate_expand_hosts you add the regular-expression instead of
> the matching host_name. The attached patch fixes the bug.
>
> regards
>
> Dietmar
>
>
> [nagios at work nagios]$ diff -c xdata/xodtemplate.c.original
> xdata/xodtemplate.c *** xdata/xodtemplate.c.original 2003-11-10
> 14:51:37.000000000 +0100 --- xdata/xodtemplate.c 2003-11-10
> 15:01:47.000000000 +0100 *************** *** 8876,8882 ****
> found_match=TRUE;
>
> /* add host to list */
> !
> xodtemplate_add_host_to_hostlist(list,temp_ptr);
> }
>
> /* free memory allocated to compiled regexp */
> --- 8876,8882 ----
> found_match=TRUE;
>
> /* add host to list */
> !
> xodtemplate_add_host_to_hostlist(list,temp_host->host_name);
> }
>
> /* free memory allocated to compiled regexp */
> [nagios at work nagios]$
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From sam_ml at spacething.org Tue Nov 11 12:02:20 2003
From: sam_ml at spacething.org (Sam Stickland)
Date: Tue, 11 Nov 2003 11:02:20 -0000
Subject: Fw: [Nagios-users] Automatically generating multiple service definitions
Message-ID: <056b01c3a843$479506d0$fb00a8c0@office.toastedmedia.net>
Forwarding this to the developers list as I had on response on -users, and
it's possibly more appropiate here?
----- Original Message -----
From: "Sam Stickland"
To:
Sent: Tuesday, November 04, 2003 1:11 PM
Subject: [Nagios-users] Automatically generating multiple service
definitions
> Hi,
>
> I'd like to be able generate service definations from an external program
> when nagios starts and also while it is running.
>
> For example, I have an external program that creates SMPP connections to
> other servers on demamd. Currently I have a nagios plugin that contacts
the
> external program and checks that all the SMPP connections that it is using
> are bound correctly.
>
> But it exists only as a single service. This causes problems if one
> connection drops, and then another some time afterwards. The service will
go
> into the critical state on the first drop, so the second one doesn't issue
> an alert. Also, as a single service there's only one location for
comments,
> scheduled downtime, disabling of notifications etc.
>
> I'd like to be able to write an external program that regulary scans for
how
> many connections there are, and inserts and removes service definations as
> appropiate.
>
> This would be useful for a variety of other services, eg. BGP session
state,
> switch port status etc.
>
> How should I go about this? The solution that comes to mind is a
> cron-scheduled script that checks the number of services, compares it to
> previous state and if it's changed, regenerates a configuration file and
> issues a "nagios reload".
>
> It seems like a fairly generic solution should be possible. Does this
> already exist? Would there be interest in it if I wrote one?
>
> Sam
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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 sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From rob at capband.net Tue Nov 11 15:59:14 2003
From: rob at capband.net (Rob Nelson)
Date: Tue, 11 Nov 2003 09:59:14 -0500
Subject: Nagios Version/Development
In-Reply-To: <056b01c3a843$479506d0$fb00a8c0@office.toastedmedia.net>
References: <056b01c3a843$479506d0$fb00a8c0@office.toastedmedia.net>
Message-ID: <5.2.1.1.0.20031111095834.01beae60@mail.capband.net>
I have a question that may be more germaine to another nagios list, if so
let me know which one and I'll post it there...
Right now I'm using Nagios v1.0b6, September 15, 2002, according to Nagios
itself. I've added some plugin packs and the grouplist patch, that kind of
thing, but haven't upgraded the core of Nagios.
I know that Nagios v2 is coming Real Soon Now(tm). I'm looking forward to
some of its features, but not necessarily to the reconfiguring of my files
and such. I also know that I can upgrade to v1.1, but I see a few things
once in a while that indicate some bugs in it, like "tac overview is fixed
in cvs, edit this file...", problems I don't have to deal with now.
What's the dev plan for versions 1.1 and 2.0? As a satisfied user of v1.0,
should I bother to upgrade to 1.1 now, or hold off to 2.0? If so, what kind
of problems or reconfigurations should I expect? Most importantly, will I
gain anything by upgrading to 1.1 or just spend a lot of time going nowhere?
Rob Nelson
Network Administrator, Capitol Broadband
C: 919-369-1874
rob at capband.net
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From Ton.Voon at egg.com Wed Nov 12 16:48:56 2003
From: Ton.Voon at egg.com (Voon, Ton)
Date: Wed, 12 Nov 2003 15:48:56 -0000
Subject: Patch for socklen_t
Message-ID:
Ethan,
Here's a fix for the reported socklen_t problems found on Tru64 and Mac OS
X. I've managed to test it on Solaris 2.6 which also had the same problem.
Ton
This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nrpe_socklen_fix.patch
Type: application/octet-stream
Size: 2361 bytes
Desc: not available
URL:
From marco at analog.se Wed Nov 12 17:15:14 2003
From: marco at analog.se (=?ISO-8859-1?Q?Marco_Seiri=F6?=)
Date: Wed, 12 Nov 2003 17:15:14 +0100 (CET)
Subject: Interested in Nagios<->ruleCore integration?
In-Reply-To:
References:
Message-ID:
Hi list,
We have built a kind event pattern detector, or event correlation engine
as it also could be called. It's free and you can get it under GPL from
www.rulecore.com
I have been getting a number of requests to use ruleCore together with
Nagios. But this requires some work to make Nagios and ruleCore talk to
each other. I don't have any experience with Nagios so I wonder if
somebody would be interested in doing this integration.
What I understand from the requests I have received, ruleCore could add or
improve the event detection capabilities to Nagios. But this I suppose you
would know much more about ;)
We can ofcourse help out with ruleCore specific changes or additions if
just somebody tells us what to do.
/Marco
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From silos.reis at ig.com.br Wed Nov 12 17:52:03 2003
From: silos.reis at ig.com.br (Fabiano Reis)
Date: Wed, 12 Nov 2003 14:52:03 -0200
Subject: Patch for socklen_t
References:
Message-ID: <008e01c3a93d$4cd4cea0$3f32a8c0@ds.ig.com.br>
I had this problem when compiling nrpe agent to Solaris 2.6. I fixed it
running ./configure, after it I edited common/config.h and put "#define
socklen_t int" on line 161 of this file and make it.
With Solaris 5.8 everythink flows smooth.
Fabiano
----- Original Message -----
From: "Voon, Ton"
To:
Cc: ; "'Brian Basgen'"
Sent: Wednesday, November 12, 2003 1:48 PM
Subject: [Nagios-devel] Patch for socklen_t
> Ethan,
>
> Here's a fix for the reported socklen_t problems found on Tru64 and Mac OS
> X. I've managed to test it on Solaris 2.6 which also had the same problem.
>
> Ton
>
>
>
> This private and confidential e-mail has been sent to you by Egg.
> The Egg group of companies includes Egg Banking plc
> (registered no. 2999842), Egg Financial Products Ltd (registered
> no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
> carries out investment business on behalf of Egg and is regulated
> by the Financial Services Authority.
> Registered in England and Wales. Registered offices: 1 Waterhouse Square,
> 138-142 Holborn, London EC1N 2NA.
> If you are not the intended recipient of this e-mail and have
> received it in error, please notify the sender by replying with
> 'received in error' as the subject and then delete it from your
> mailbox.
>
>
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From nagios at nagios.org Thu Nov 13 00:38:02 2003
From: nagios at nagios.org (Ethan Galstad)
Date: Wed, 12 Nov 2003 17:38:02 -0600
Subject: Patch for socklen_t
In-Reply-To:
References:
Message-ID: <3FB26FFA.32174.46D77A@localhost>
Thanks -
I had to modify it a bit to work with current code, but its in CVS.
On 12 Nov 2003 at 15:48, Voon, Ton wrote:
> Ethan,
>
> Here's a fix for the reported socklen_t problems found on Tru64 and
> Mac OS X. I've managed to test it on Solaris 2.6 which also had the
> same problem.
>
> Ton
>
>
>
> This private and confidential e-mail has been sent to you by Egg. The
> Egg group of companies includes Egg Banking plc (registered no.
> 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg
> Investments Ltd (registered no. 3403963) which carries out investment
> business on behalf of Egg and is regulated by the Financial Services
> Authority. Registered in England and Wales. Registered offices: 1
> Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not
> the intended recipient of this e-mail and have received it in error,
> please notify the sender by replying with 'received in error' as the
> subject and then delete it from your mailbox.
>
>
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
From benny at bennyvision.com Sat Nov 15 01:18:07 2003
From: benny at bennyvision.com (C. Bensend)
Date: Fri, 14 Nov 2003 18:18:07 -0600 (CST)
Subject: Fix: Nagios + OpenBSD 3.4 not recognizing GD libraries
Message-ID: <62997.63.227.74.41.1068855509.squirrel@webmail.stinkweasel.net>
Hey folks,
I've been beating my head against this for a little while as I try to
find time to work on an OpenBSD port for Nagios... Nagios, when built on
an OpenBSD 3.4 (possibly 3.3 as well) machine, will not find GD even when
--with-gd-lib and --with-gd-inc are specified on the configure command
line.
This is due to the need to have the following specified when running
the configure script:
LDFLAGS="-L/usr/local/lib -lttf"
So, on an OpenBSD machine with png, jpeg, gd, and ttf installed from
the OpenBSD ports tree, the following works fine:
env LDFLAGS="-L/usr/local/lib -lttf" ./configure
Using this, you do not need to specify --with-gd-lib and --with-gd-inc.
HUGE kudoes go to Julien Touche, who figured out these details.
I'm assuming configure.in needs to be modified, but I suck too much as
a developer to figure it out. :) Hopefully, it'll help someone in the
future.
Benny
--
"Legend has it that once 100 posts have been made, The Dark Lord
Bernstein will rise from the prison of ice and wage his inevitable
war on mankind." -- Erik Bourget
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
From rouilj at cs.umb.edu Sun Nov 16 04:46:28 2003
From: rouilj at cs.umb.edu (John P. Rouillard)
Date: Sat, 15 Nov 2003 22:46:28 -0500
Subject: Interested in Nagios<->ruleCore integration?
In-Reply-To: Your message of "Wed, 12 Nov 2003 17:15:14 +0100."
References:
Message-ID: <200311160346.hAG3kSfm004982@mx1.cs.umb.edu>
In message ,
=?ISO-8859-1?Q?Marco_Seiri=F6?= writes:
>We have built a kind event pattern detector, or event correlation engine
>as it also could be called. It's free and you can get it under GPL from
>www.rulecore.com
>
>I have been getting a number of requests to use ruleCore together with
>Nagios. But this requires some work to make Nagios and ruleCore talk to
>each other. I don't have any experience with Nagios so I wonder if
>somebody would be interested in doing this integration.
Search the nagios-devel list for "sec". You will find Stanley Hopcroft
and my discussion on integrating nagios and sec, the simple event
correlator. I posted my patches and supporting scripts in this
message:
http://sourceforge.net/mailarchive/message.php?msg_id=5822542
I was dissapointed that nobody (other than Stanley) really seemed
interested in integrating a general purpose correlation tool into
nagios. Never even got a comment from Ethan good or bad.
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
From karl at debisschop.net Sun Nov 16 07:28:15 2003
From: karl at debisschop.net (Karl DeBisschop)
Date: Sun, 16 Nov 2003 01:28:15 -0500
Subject: Interested in Nagios<->ruleCore integration?
In-Reply-To: <200311160346.hAG3kSfm004982@mx1.cs.umb.edu>
References: <200311160346.hAG3kSfm004982@mx1.cs.umb.edu>
Message-ID: <1068963204.14403.13.camel@miles.debisschop.net>
On Sat, 2003-11-15 at 22:46, John P. Rouillard wrote:
> >We have built a kind event pattern detector, or event correlation engine
> >as it also could be called. It's free and you can get it under GPL from
> >www.rulecore.com
> >
> >I have been getting a number of requests to use ruleCore together with
> >Nagios. But this requires some work to make Nagios and ruleCore talk to
> >each other. I don't have any experience with Nagios so I wonder if
> >somebody would be interested in doing this integration.
>
> Search the nagios-devel list for "sec". You will find Stanley Hopcroft
> and my discussion on integrating nagios and sec, the simple event
> correlator. I posted my patches and supporting scripts in this
> message:
>
> http://sourceforge.net/mailarchive/message.php?msg_id=5822542
>
> I was dissapointed that nobody (other than Stanley) really seemed
> interested in integrating a general purpose correlation tool into
> nagios. Never even got a comment from Ethan good or bad.
I wouldn't take that as meaning anything one way or another, having
worked with Ethan for a few years now. Right now, it seems he's just
coding v2. And when he's in that mode, there tends to be scant traffic
from him except on major bugs. I do the same to some extent -- I have
intentionally not looked at this, because I do need to get plugins 1.4
wrapped up.
I'd suggest
1) granting the benefit of the doubt that Ethan is following the thread
at a overview level (at least)
2) planning to bring the topic up again shortly after v2 is released.
Submitting straw-man implementations may even be appropriate, provided
they are done against the v2 codebase. But of course that is best done
by people who have experience with the reality that of all the code
written, only some small percentage makes it to production.
--
Karl
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
From skuti at skrin.is Sun Nov 16 19:41:34 2003
From: skuti at skrin.is (=?iso-8859-1?Q?Yngvi_P=E9tursson?=)
Date: Sun, 16 Nov 2003 18:41:34 -0000
Subject: statusmap circular layout
Message-ID: <1AC6F46DDAC27649BD7C9EC2DE49112FA399BA@falki.kerfisleiga.skrin.is>
I had probblem with the statusmap in Internet Explorer.
When the circular layout image is so large you hafe to scroll whole page down and another to right, the popup layer disappired or pops up at courdites outside the browsers view.
Here is a solution to my problem that puts the popup layer allways at the same cordinits at the top of the screen
nagios# diff statusmap.c.org statusmap.c
6c6
< * Last Modified: 06-24-2003
---
> * Last Modified: 11-16-2003
2320,2321c2318,2319
< printf("document.popup.style.left = (document.all ? eventObj.x : eventObj.layerX) + %d;\n",x_offset);
< printf("document.popup.style.top = (document.all ? eventObj.y : eventObj.layerY) + %d;\n",y_offset);
---
> printf("document.popup.style.left = document.body.scrollLeft + %d;\n",x_offset);
> printf("document.popup.style.top = document.body.scrollTop + %d;\n",y_offset);
nagios#
K?r kve?ja / Best regards,
Skuti - Yngvi Hrafn P?tursson ? kerfisfr??ingur ? Systems Analyst
S?mi/tel: +354 460-5300 ? Fax: +354 460-5301
Vefs??a/website: http://www.skrin.is/
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
From Stanley.Hopcroft at ipaustralia.gov.au Mon Nov 17 01:33:50 2003
From: Stanley.Hopcroft at ipaustralia.gov.au (Stanley Hopcroft)
Date: Mon, 17 Nov 2003 11:33:50 +1100
Subject: Interested in Nagios<->ruleCore integration?
In-Reply-To: ; from marco@analog.se on Wed, Nov 12, 2003 at 05:15:14PM +0100
References:
Message-ID: <20031117113345.F9848@IPAustralia.Gov.AU>
Dear Sir,
I am writing to thank you for your letter about a very good looking and
interesting product, and say
On Wed, Nov 12, 2003 at 05:15:14PM +0100, Marco Seiri? wrote:
>
> Hi list,
>
> We have built a kind event pattern detector, or event correlation engine
> as it also could be called. It's free and you can get it under GPL from
> www.rulecore.com
>
> I have been getting a number of requests to use ruleCore together with
> Nagios. But this requires some work to make Nagios and ruleCore talk to
> each other. I don't have any experience with Nagios so I wonder if
> somebody would be interested in doing this integration.
>
Nagios is an all in one availability monitor that
1 schedules service checks (and their retries)
2 contains hardwired logic to recognise a simple subset of events based
on heuristics or 'hard coded rules' such as
event of max retries of service check exceeded
=>
hard (confirmed) state transition and state trans event processing.
In my view, it would be good for Nagios to gain an event filtering/event
correlation/event facility to as you say, 'could add to or improve the
event detection capabilities to Nagios.'
One of the significant differences of the Tivoli product is its ability
to define predicates, event filters and rules in its rule processing
core (based on Prolog I believe).
This is advantageous because
. the event processing framework is non-procedural; the engine
establishes a predicate based on its definition and the events that have
been input. There is simply no need for a whole bunch of cases to deal
with sequencing.
. conclusions can be drawn about business systems based on the event
stream. This is a significant facility because it provides the potential
of
- a business view instead of or as well as a system view
- the ability to make decisions or conclusions based on best practise
rules. This instantly puts ones subject expertise to much greater use:
it can be used in the core of the monitor instead of your being asked or
having to do it yourself.
Unfortunately, I am not the Nag developer and am therefore speaking for
myself only.
However, there exists this (dumb) path to integration of RuleCore and or
Sec event processing and correlation, that allows the two to coexist
unchanged at the expense of having two products and clumbsier
processing.
1 Nagios acts as an event source to RuleCore (and or Sec); Nagios
schedules system and element checks and on _its_ detection of a hard
state, informs RuleCore via the Nagios notification or event handler
mechanism (to push the event of a hard state change somehow into
RuleCore).
2 Nagios defines passive service checks corresponding to the inferences
or conclusions about business systems and or cloned services that will
be processed by RuleCore.
3 RuleCore processes the Nagios events and any other events (from other
eevent sources such as trap handlers) then submits passive service check
results to Nag.
This is advantageous in that both products are unchanged. It is
suboptimal in that
- RuleCore cannot comment on element failures (that are related to other
events such as congestion) unless that event is passed to RuleCore.
- The IPC is via whatever the host supports and could be slow or
suboptimal
- Event correlation can only be done on hard state changes; Nagios event
processing cannot be expedited or altered by the conclusions that
RuleCore may already be able to make through its use of event filters,
correlation and or rules - this is simply another way of writing the
first point.
> What I understand from the requests I have received, ruleCore could add or
> improve the event detection capabilities to Nagios. But this I suppose you
> would know much more about ;)
>
> We can ofcourse help out with ruleCore specific changes or additions if
> just somebody tells us what to do.
>
Unfortunately I am not the person to do this. I am very grateful for
your work and thank you for the offer.
Good luck with what looks like a good product.
> /Marco
>
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
From study at foryou-bs.jp Wed Nov 19 01:57:16 2003
From: study at foryou-bs.jp (Kazuhiro Suwa)
Date: Wed, 19 Nov 2003 09:57:16 +0900
Subject: HTML spelling mistake
Message-ID:
I found HTML spelling mistake.
$ cd cgi/
$ grep valing *
histogram.c: printf("
\n");
~~~~~~
trends.c: printf("
\n");
~~~~~~
-------------
Kazuhiro Suwa
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From oliver.haake at pc-helpnet.de Wed Nov 19 00:18:36 2003
From: oliver.haake at pc-helpnet.de (Oliver Haake)
Date: Wed, 19 Nov 2003 00:18:36 +0100
Subject: hostgroup.cfg error with Nagios 2.0-very-pre-alpha
Message-ID: <1069197516.599.4.camel@LinuxWKS>
Same Problem here.
I tried the cvs version several times on different machines.
Is there nobody else with this problem ?
Oliver
> Error: Invalid hostgroup object directive 'contact_groups'.
>
> Error: Could not add object property in file
> '/usr/local/nagios/etc/hostgroups.cfg' on line 10.
>
> My entry looks like:
>
>
> define hostgroup {
> hostgroup_name as400
> alias AS400
> contact_groups unassigned
> members as400
> }
>
> Line ten falls on contact_groups
>
> What is the issue? Did that option get changed or go away with the Nagios
> 2.0-very-pre-alpha?
>
> P.S. I gave up on the mysql builds. I just couldn't get past all the bumps
> in the builds.
>
> David
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Thu Nov 20 19:46:18 2003
From: jrhett at isite.net (Joe Rhett)
Date: Thu, 20 Nov 2003 10:46:18 -0800
Subject: Many patches ... v1 tree status, v2 in production?
Message-ID: <20031120184618.GE12424@isite.net>
Okay, I've got our implementation (v1.1) working fairly okay. From this
experience however, I've got a number of patches that I think the general
public would appreciate. So the question is..
1. Is the v1.1 tree dead? Has v2 diverged so far that any patches I
contribute here would be dead zone?
2. Is anyone using v2 in production? If I spend the effort on v2 instead
of v1, can I reasonably expect to have a working system within a week or so
of effort?
Have effort and need, and I'm willing to spend the time. I'd like to focus
my efforts in the best place, but I do need to have a working solution
fairly shortly.
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Thu Nov 20 21:23:19 2003
From: jrhett at isite.net (Joe Rhett)
Date: Thu, 20 Nov 2003 12:23:19 -0800
Subject: No mysql code in v2? object configuration in mysql.
In-Reply-To: <1069357310.4147.10.camel@localhost.localdomain>
References: <1069357310.4147.10.camel@localhost.localdomain>
Message-ID: <20031120202319.GB18403@isite.net>
I'm poking around the CVS code, and I don't see any mysql code there at
all. Was'sup with that?
Frankly, I'm looking hard at the cached config stuff and possibly writing a
module to store all object configuration in mysql. Nagios will only need
to pull it from mysql when refreshing the cache, so performance is a non-op.
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jeff.vier at tradingtechnologies.com Thu Nov 20 21:28:25 2003
From: jeff.vier at tradingtechnologies.com (jeff vier)
Date: Thu, 20 Nov 2003 14:28:25 -0600
Subject: No mysql code in v2? object configuration in
mysql.
In-Reply-To: <20031120202319.GB18403@isite.net>
References: <1069357310.4147.10.camel@localhost.localdomain>
<20031120202319.GB18403@isite.net>
Message-ID: <1069360105.8081.248.camel@localhost>
it's in the ChangeLog that all SQL support was stripped for v2.0
On Thu, 2003-11-20 at 14:23, Joe Rhett wrote:
> I'm poking around the CVS code, and I don't see any mysql code there at
> all. Was'sup with that?
>
> Frankly, I'm looking hard at the cached config stuff and possibly writing a
> module to store all object configuration in mysql. Nagios will only need
> to pull it from mysql when refreshing the cache, so performance is a non-op.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Thu Nov 20 22:23:38 2003
From: jrhett at isite.net (Joe Rhett)
Date: Thu, 20 Nov 2003 13:23:38 -0800
Subject: No mysql code in v2? object configuration in mysql.
In-Reply-To: <1069360105.8081.248.camel@localhost>
References: <1069357310.4147.10.camel@localhost.localdomain> <20031120202319.GB18403@isite.net> <1069360105.8081.248.camel@localhost>
Message-ID: <20031120212338.GA21979@isite.net>
Why? This is a huge step backwards, not forwards.
On Thu, Nov 20, 2003 at 02:28:25PM -0600, jeff vier wrote:
> it's in the ChangeLog that all SQL support was stripped for v2.0
>
> On Thu, 2003-11-20 at 14:23, Joe Rhett wrote:
> > I'm poking around the CVS code, and I don't see any mysql code there at
> > all. Was'sup with that?
> >
> > Frankly, I'm looking hard at the cached config stuff and possibly writing a
> > module to store all object configuration in mysql. Nagios will only need
> > to pull it from mysql when refreshing the cache, so performance is a non-op.
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Thu Nov 20 23:13:47 2003
From: jrhett at isite.net (Joe Rhett)
Date: Thu, 20 Nov 2003 14:13:47 -0800
Subject: alright, this is getting downright retarded...
Message-ID: <20031120221347.GB21979@isite.net>
nagiosplugs from CVS indicates that autoconf-2.13 and automake-1.4p5 are
required. So I reconfigure my development environment to use these
stone-age versions and
% aclocal
aclocal: configure.in: 1406: macro `AM_GNU_GETTEXT_VERSION' not found in library
aclocal: configure.in: 1407: macro `AM_GNU_GETTEXT' not found in library
% autoconf
FATAL ERROR: Autoconf version 2.50 or higher is required for this script
Well, automake-1.6 and autoconf-2.58 pukes all over these files as well.
Please someone tell me you're halfway through a commit?
I'm more than willing to spend time and effort hacking away on this, but
the development environment needs to be even halfway capable of providing a
build.
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From karl at debisschop.net Fri Nov 21 06:59:29 2003
From: karl at debisschop.net (Karl DeBisschop)
Date: Fri, 21 Nov 2003 00:59:29 -0500
Subject: alright, this is getting downright retarded...
In-Reply-To: <20031120221347.GB21979@isite.net>
References: <20031120221347.GB21979@isite.net>
Message-ID: <1069394369.1473.4.camel@miles.debisschop.net>
On Thu, 2003-11-20 at 17:13, Joe Rhett wrote:
> nagiosplugs from CVS indicates that autoconf-2.13 and automake-1.4p5 are
> required.
That doco needs to be changed - it is from the 1.3.0 release. Thanks for
identifying it and sorry for the inconvenience.
> Well, automake-1.6 and autoconf-2.58 pukes all over these files as well.
> Please someone tell me you're halfway through a commit?
Hmmm. I'm running automake 1.78 and autoconf 2.57 (on Fedora Core 1), no
problems here.
> I'm more than willing to spend time and effort hacking away on this, but
> the development environment needs to be even halfway capable of providing a
> build.
I guess the first thing that would help is to find out why the gnu tool
chain is failing for you. Can you be more specific than "pukes"
--
Karl
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From karl at debisschop.net Fri Nov 21 08:46:49 2003
From: karl at debisschop.net (Karl DeBisschop)
Date: Fri, 21 Nov 2003 02:46:49 -0500
Subject: alright, this is getting downright retarded...
In-Reply-To: <1069394369.1473.4.camel@miles.debisschop.net>
References: <20031120221347.GB21979@isite.net>
<1069394369.1473.4.camel@miles.debisschop.net>
Message-ID: <1069400809.1473.17.camel@miles.debisschop.net>
On Fri, 2003-11-21 at 00:59, Karl DeBisschop wrote:
> On Thu, 2003-11-20 at 17:13, Joe Rhett wrote:
> > nagiosplugs from CVS indicates that autoconf-2.13 and automake-1.4p5 are
> > required.
>
> That doco needs to be changed - it is from the 1.3.0 release. Thanks for
> identifying it and sorry for the inconvenience.
>
> > Well, automake-1.6 and autoconf-2.58 pukes all over these files as well.
> > Please someone tell me you're halfway through a commit?
>
> Hmmm. I'm running automake 1.78 and autoconf 2.57 (on Fedora Core 1), no
> problems here.
Since our general policy is to use the current GNU tool chain, I just
downloaded, rebuilt, and installed AC-2.59 and AM-1.7.9. These work fine
for me as well.
If you do provide info to help resolve problems you are seeing with the
GNU tool chain. please also be sure to provide info about your OS.
--
Karl
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From Oliver.Grass at computacenter.com Fri Nov 21 14:04:01 2003
From: Oliver.Grass at computacenter.com (Oliver.Grass at computacenter.com)
Date: Fri, 21 Nov 2003 14:04:01 +0100
Subject: (no subject)
Message-ID:
confirm 541782
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From nagios at sbtt.net Fri Nov 21 14:13:38 2003
From: nagios at sbtt.net (Steve)
Date: Fri, 21 Nov 2003 08:13:38 -0500
Subject: check_http with limits
Message-ID: <3FBE0F82.9010907@sbtt.net>
I posted this to the user list without any response sorry for the cross
post but this list seems more suitable for this request..
Hello,
Searching now for a way to use nagios to monitor a http post command
which returns a numeric value (memory) to be exact its a java component
that I can monitor via a http admin, a link within the admin returns
just a single value for each topic..
I would like the response viewable within the nagios web and if it
exceeds the numeric value of x would then shoot a error, a plus would be
able to have nagios monitor/log the levels. Considering MRTG to graph
results..
Example:
http://ip:port/query?component=memory
returns me
100
if anything > than 500 returns I get an alert.
Again a plus would be to log the level at every check.
-steve
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From cm at financial.com Fri Nov 21 14:48:44 2003
From: cm at financial.com (Christoph Maser)
Date: Fri, 21 Nov 2003 14:48:44 +0100
Subject: check_http with limits
In-Reply-To: <3FBE0F82.9010907@sbtt.net>
References: <3FBE0F82.9010907@sbtt.net>
Message-ID: <3FBE17BC.4030609@financial.com>
Hi,
i wrote a http-post-module which we use to call a remote program via a
jsp and return STDOUT and STDERR. i attached a basic skeleton of it you
can easily modefiy to do exactly what you want. just check for
$query_string and modify the if ($result = "blablabl") at the top to
match your conditions.
chris
Steve wrote:
> I posted this to the user list without any response sorry for the cross
> post but this list seems more suitable for this request..
>
> Hello,
>
> Searching now for a way to use nagios to monitor a http post command
> which returns a numeric value (memory) to be exact its a java component
> that I can monitor via a http admin, a link within the admin returns
> just a single value for each topic..
>
> I would like the response viewable within the nagios web and if it
> exceeds the numeric value of x would then shoot a error, a plus would be
> able to have nagios monitor/log the levels. Considering MRTG to graph
> results..
>
> Example:
>
> http://ip:port/query?component=memory
>
> returns me
>
> 100
>
> if anything > than 500 returns I get an alert.
>
> Again a plus would be to log the level at every check.
>
> -steve
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
--
financial.com AG
Maria-Probst-Stra?e 19 Tel.: ++49(0)89/318528-44
D- 80939 M?nchen Fax.: ++49(0)89/318528-28
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: http_check.pl
URL:
From nagios at sbtt.net Fri Nov 21 17:10:00 2003
From: nagios at sbtt.net (Steve)
Date: Fri, 21 Nov 2003 11:10:00 -0500
Subject: active-stby monitor / alert
Message-ID: <3FBE38D8.4020801@sbtt.net>
Hello,
me again,
Have a system with 2 sides always in a active-standby type of mode.
Problem is if one side fails then B side kicks in I have no way to ask
check_http to look for either Active or staby and report if there is a
switch or do I?
Might be able to use chris's perl script still playing, but basicaly I'm
getting a http reponse from each component that states either "active,
standby or nothing (port died). Would like nagios to report ok for
active or staby better yet report if there was a switch instead of just
reporting when the port dies.
thanks again
-steve
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jhmartin at toger.us Fri Nov 21 20:53:30 2003
From: jhmartin at toger.us (Jason Martin)
Date: Fri, 21 Nov 2003 11:53:30 -0800 (PST)
Subject: Found bugs in 1.1
Message-ID:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello, I've found a few bugs in 1.1 that may be a bit troublesome.
One of them is that the 'notification_period' clause of a host is not
required. I had a template that was missing this clause and several hosts
that used the template. When I tried running a Nagios compiled w/debug
enabled it coredumped when it tried to print out the host definition.
Another is that if a service dependency has neither of the
execution_failure_criteria or notification_failure_criteria defined it is
silently ignored. I think a warning indicating that this 'lame'
servicedependency exists should be thrown; I've attached a patch to effect
this.
A third is that the following causes a coredump; I think the servicedep
duplication function should detect when its trying to set up an
immediately circular depedency.
define servicedependency{
hostgroup_name HOSTGROUP1
service_description Oracle
dependent_hostgroup_name HOSTGROUP1
dependent_service_description *
execution_failure_criteria n
notification_failure_criteria w,u,c
}
- -Jason Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.3 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/
iD8DBQE/vm1Kl2ODWuqVSBMRAoKwAKCCZYLsz8hneU5XbGVZMkJoro0rSACgkewS
ezmdnoSS5vLrJ2OfwENrDHc=
=/gO5
-----END PGP SIGNATURE-----
-------------- next part --------------
*** xodtemplate1.c Fri Nov 21 10:32:57 2003
--- xodtemplate.c Fri Nov 21 11:41:08 2003
***************
*** 5711,5716 ****
--- 5711,5722 ----
return ERROR;
}
}
+ /* Throw a warning on servicedeps that have no options */
+ if (this_servicedependency->have_notification_dependency_options==FALSE && this_servicedependency->have_execution_dependency_options==FALSE){
+ snprintf(temp_buffer,sizeof(temp_buffer)-1,"Warning: Could not register lame service dependency (config file '%s', line %d)\n",xodtemplate_config_file_name(this_servicedependency->_config_file),this_servicedependency->_start_line);
+ temp_buffer[sizeof(temp_buffer)-1]='\x0';
+ write_to_logs_and_console(temp_buffer,NSLOG_CONFIG_ERROR,TRUE);
+ }
#ifdef DEBUG0
printf("xodtemplate_register_servicedependency() end\n");
From jrhett at isite.net Fri Nov 21 21:57:10 2003
From: jrhett at isite.net (Joe Rhett)
Date: Fri, 21 Nov 2003 12:57:10 -0800
Subject: alright, this is getting downright retarded...
In-Reply-To: <1069394369.1473.4.camel@miles.debisschop.net>
References: <20031120221347.GB21979@isite.net> <1069394369.1473.4.camel@miles.debisschop.net>
Message-ID: <20031121205710.GB6682@isite.net>
> > Well, automake-1.6 and autoconf-2.58 pukes all over these files as well.
> > Please someone tell me you're halfway through a commit?
>
> Hmmm. I'm running automake 1.78 and autoconf 2.57 (on Fedora Core 1), no
> problems here.
I just upgraded to the latest, I was about one version before yours, now
I'm at 1.79 and 2.58 just like you mentioned in your followup message.
> > I'm more than willing to spend time and effort hacking away on this, but
> > the development environment needs to be even halfway capable of providing a
> > build.
>
> I guess the first thing that would help is to find out why the gnu tool
> chain is failing for you. Can you be more specific than "pukes"
cyclops 490% aclocal
aclocal: configure.in: 1406: macro `AM_GNU_GETTEXT_VERSION' not found in library
aclocal: configure.in: 1407: macro `AM_GNU_GETTEXT' not found in library
cyclops 490% autoconf
configure.in:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:1406: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
configure.in:1407: error: possibly undefined macro: AM_GNU_GETTEXT
cyclops 491% autoheader
cyclops 492% automake
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
configure.in: required file `./install-sh' not found
configure.in: required file `./mkinstalldirs' not found
configure.in: required file `./missing' not found
configure.in:8: required file `./config.guess' not found
configure.in:8: required file `./config.sub' not found
Makefile.am: required file `./INSTALL' not found
lib/Makefile.am: required file `./depcomp' not found
/opt/gnu/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/opt/gnu/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/opt/gnu/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/opt/gnu/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
Just FYI, we use autoconf for our internal code and I use it daily for
various other projects we're tracking via CVS. There are no system problems
with autoconf that I'm aware of, and we do use it daily.
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From karl at debisschop.net Sat Nov 22 01:45:50 2003
From: karl at debisschop.net (Karl DeBisschop)
Date: Fri, 21 Nov 2003 19:45:50 -0500
Subject: alright, this is getting downright retarded...
In-Reply-To: <20031121205710.GB6682@isite.net>
References: <20031120221347.GB21979@isite.net>
<1069394369.1473.4.camel@miles.debisschop.net>
<20031121205710.GB6682@isite.net>
Message-ID: <1069461949.27879.3.camel@miles.debisschop.net>
On Fri, 2003-11-21 at 15:57, Joe Rhett wrote:
> > > Well, automake-1.6 and autoconf-2.58 pukes all over these files as well.
> > > Please someone tell me you're halfway through a commit?
> >
> > Hmmm. I'm running automake 1.78 and autoconf 2.57 (on Fedora Core 1), no
> > problems here.
>
> I just upgraded to the latest, I was about one version before yours, now
> I'm at 1.79 and 2.58 just like you mentioned in your followup message.
>
> > > I'm more than willing to spend time and effort hacking away on this, but
> > > the development environment needs to be even halfway capable of providing a
> > > build.
> >
> > I guess the first thing that would help is to find out why the gnu tool
> > chain is failing for you. Can you be more specific than "pukes"
>
> cyclops 490% aclocal
> aclocal: configure.in: 1406: macro `AM_GNU_GETTEXT_VERSION' not found in library
> aclocal: configure.in: 1407: macro `AM_GNU_GETTEXT' not found in library
>
> cyclops 490% autoconf
> configure.in:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
> If this token and others are legitimate, please use m4_pattern_allow.
> See the Autoconf documentation.
> configure.in:1406: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
> configure.in:1407: error: possibly undefined macro: AM_GNU_GETTEXT
>
> cyclops 491% autoheader
>
> cyclops 492% automake
> configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
> configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
> configure.in: that aclocal.m4 is present in the top-level directory,
> configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
> configure.in: required file `./install-sh' not found
> configure.in: required file `./mkinstalldirs' not found
> configure.in: required file `./missing' not found
> configure.in:8: required file `./config.guess' not found
> configure.in:8: required file `./config.sub' not found
> Makefile.am: required file `./INSTALL' not found
> lib/Makefile.am: required file `./depcomp' not found
> /opt/gnu/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
> /opt/gnu/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
> /opt/gnu/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
> /opt/gnu/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
>
>
> Just FYI, we use autoconf for our internal code and I use it daily for
> various other projects we're tracking via CVS. There are no system problems
> with autoconf that I'm aware of, and we do use it daily.
But you you use automake daily?
It looks to me like there is a breakage in the linkage between autoconf
and automake. I will look some more later, but that is my first
impression.
You neglected to mention what OS you are running, but I think that is
not the issue.
--
Karl
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Sat Nov 22 22:16:25 2003
From: jrhett at isite.net (Joe Rhett)
Date: Sat, 22 Nov 2003 13:16:25 -0800
Subject: alright, this is getting downright retarded...
In-Reply-To: <1069461949.27879.3.camel@miles.debisschop.net>
References: <20031120221347.GB21979@isite.net> <1069394369.1473.4.camel@miles.debisschop.net> <20031121205710.GB6682@isite.net> <1069461949.27879.3.camel@miles.debisschop.net>
Message-ID: <20031122211625.GA23635@isite.net>
> But you you use automake daily?
Perhaps not every day, but many times per week. As I said, we use autoconf
for management scripts in our own productions.
(not very well, IMHO, but we do use it)
> It looks to me like there is a breakage in the linkage between autoconf
> and automake. I will look some more later, but that is my first
> impression.
Clue me in and I'll look around.
> You neglected to mention what OS you are running, but I think that is
> not the issue.
Whoops, sorry. Solaris 8, x86, AMD Althon XP+; current on patches
--message history quoted below:
On Fri, Nov 21, 2003 at 07:45:50PM -0500, Karl DeBisschop wrote:
> On Fri, 2003-11-21 at 15:57, Joe Rhett wrote:
> > > > Well, automake-1.6 and autoconf-2.58 pukes all over these files as well.
> > > > Please someone tell me you're halfway through a commit?
> > >
> > > Hmmm. I'm running automake 1.78 and autoconf 2.57 (on Fedora Core 1), no
> > > problems here.
> >
> > I just upgraded to the latest, I was about one version before yours, now
> > I'm at 1.79 and 2.58 just like you mentioned in your followup message.
> >
> > > > I'm more than willing to spend time and effort hacking away on this, but
> > > > the development environment needs to be even halfway capable of providing a
> > > > build.
> > >
> > > I guess the first thing that would help is to find out why the gnu tool
> > > chain is failing for you. Can you be more specific than "pukes"
> >
> > cyclops 490% aclocal
> > aclocal: configure.in: 1406: macro `AM_GNU_GETTEXT_VERSION' not found in library
> > aclocal: configure.in: 1407: macro `AM_GNU_GETTEXT' not found in library
> >
> > cyclops 490% autoconf
> > configure.in:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
> > If this token and others are legitimate, please use m4_pattern_allow.
> > See the Autoconf documentation.
> > configure.in:1406: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
> > configure.in:1407: error: possibly undefined macro: AM_GNU_GETTEXT
> >
> > cyclops 491% autoheader
> >
> > cyclops 492% automake
> > configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
> > configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
> > configure.in: that aclocal.m4 is present in the top-level directory,
> > configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
> > configure.in: required file `./install-sh' not found
> > configure.in: required file `./mkinstalldirs' not found
> > configure.in: required file `./missing' not found
> > configure.in:8: required file `./config.guess' not found
> > configure.in:8: required file `./config.sub' not found
> > Makefile.am: required file `./INSTALL' not found
> > lib/Makefile.am: required file `./depcomp' not found
> > /opt/gnu/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
> > /opt/gnu/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
> > /opt/gnu/share/automake-1.7/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
> > /opt/gnu/share/automake-1.7/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
> >
> >
> > Just FYI, we use autoconf for our internal code and I use it daily for
> > various other projects we're tracking via CVS. There are no system problems
> > with autoconf that I'm aware of, and we do use it daily.
>
> But you you use automake daily?
>
> It looks to me like there is a breakage in the linkage between autoconf
> and automake. I will look some more later, but that is my first
> impression.
>
> You neglected to mention what OS you are running, but I think that is
> not the issue.
>
> --
> Karl
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Sat Nov 22 22:19:28 2003
From: jrhett at isite.net (Joe Rhett)
Date: Sat, 22 Nov 2003 13:19:28 -0800
Subject: Is anyone using v2 in production?
In-Reply-To: <20031120184618.GE12424@isite.net>
References: <20031120184618.GE12424@isite.net>
Message-ID: <20031122211928.GC23635@isite.net>
I really would like to know if anyone is using v2 in production, or if this
really isn't possible yet.
On Thu, Nov 20, 2003 at 10:46:18AM -0800, Joe Rhett wrote:
> Okay, I've got our implementation (v1.1) working fairly okay. From this
> experience however, I've got a number of patches that I think the general
> public would appreciate. So the question is..
>
> 1. Is the v1.1 tree dead? Has v2 diverged so far that any patches I
> contribute here would be dead zone?
>
> 2. Is anyone using v2 in production? If I spend the effort on v2 instead
> of v1, can I reasonably expect to have a working system within a week or so
> of effort?
>
> Have effort and need, and I'm willing to spend the time. I'd like to focus
> my efforts in the best place, but I do need to have a working solution
> fairly shortly.
>
> --
> Joe Rhett Chief Geek
> JRhett at Isite.Net Isite Services, Inc.
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Sat Nov 22 22:48:43 2003
From: jrhett at isite.net (Joe Rhett)
Date: Sat, 22 Nov 2003 13:48:43 -0800
Subject: Nagios/CVS HEAD compilation issues on Solaris (strsep patch)
Message-ID: <20031122214843.GD23635@isite.net>
Nagios/CVS HEAD already has a configure script, so I ran that and it
completed fine. But compilation fails, complaining about symbols that
are part of Nagios.
gcc -g -O2 -I/opt/imagelib/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o notifications.o sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o -L/opt/imagelib/lib -lm -lnsl -lsocket -lpthread -ldl
Undefined first referenced
symbol in file
strsep xretention-base.o
nanosleep events.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
First, in every file except for the x?ddefaults.c files you replaced
strsep() with my_strsep(). This patch brings these two together:
*** xdata/xrddefault.c_orig Sat Nov 22 13:36:18 2003
--- xdata/xrddefault.c Sat Nov 22 13:36:56 2003
***************
*** 633,639 ****
else if(!strcmp(var,"state_history")){
temp_ptr=val;
for(x=0;xstate_history[x]=atoi(strsep(&temp_ptr,","));
temp_host->state_history_index=0;
}
}
--- 633,639 ----
else if(!strcmp(var,"state_history")){
temp_ptr=val;
for(x=0;xstate_history[x]=atoi(my_strsep(&temp_ptr,","));
temp_host->state_history_index=0;
}
}
***************
*** 796,802 ****
else if(!strcmp(var,"state_history")){
temp_ptr=val;
for(x=0;xstate_history[x]=atoi(strsep(&temp_ptr,","));
temp_service->state_history_index=0;
}
}
--- 796,802 ----
else if(!strcmp(var,"state_history")){
temp_ptr=val;
for(x=0;xstate_history[x]=atoi(my_strsep(&temp_ptr,","));
temp_service->state_history_index=0;
}
}
*** xdata/xsddefault.c_orig Sat Nov 22 13:36:31 2003
--- xdata/xsddefault.c Sat Nov 22 13:37:06 2003
***************
*** 650,656 ****
else if(!strcmp(var,"state_history")){
temp_ptr=val;
for(x=0;xstate_history[x]=atoi(strsep(&temp_ptr,","));
temp_hoststatus->state_history_index=0;
}
*/
--- 650,656 ----
else if(!strcmp(var,"state_history")){
temp_ptr=val;
for(x=0;xstate_history[x]=atoi(my_strsep(&temp_ptr,","));
temp_hoststatus->state_history_index=0;
}
*/
***************
*** 743,749 ****
else if(!strcmp(var,"state_history")){
temp_ptr=val;
for(x=0;xstate_history[x]=atoi(strsep(&temp_ptr,","));
temp_servicestatus->state_history_index=0;
}
*/
--- 743,749 ----
else if(!strcmp(var,"state_history")){
temp_ptr=val;
for(x=0;xstate_history[x]=atoi(my_strsep(&temp_ptr,","));
temp_servicestatus->state_history_index=0;
}
*/
To get nanosleep on Solaris, so you have to link with -lposix4.
This should be tested for by autoconf
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Sat Nov 22 23:20:08 2003
From: jrhett at isite.net (Joe Rhett)
Date: Sat, 22 Nov 2003 14:20:08 -0800
Subject: Nagios/CVS HEAD compilation issues on Solaris (nanosleep patch)
In-Reply-To: <20031122214843.GD23635@isite.net>
References: <20031122214843.GD23635@isite.net>
Message-ID: <20031122222008.GF23635@isite.net>
gcc -g -O2 -I/opt/imagelib/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o notifications.o sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o -L/opt/imagelib/lib -lm -lnsl -lsocket -lpthread -ldl
Undefined first referenced
symbol in file
nanosleep events.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
To get nanosleep on Solaris, so you have to link with -lrt.
(it's also in -lposix4, but will be removed in future versions)
This should be tested for by autoconf.
I was prepared to provide an autoconf patch, but configure.ac was not
included in the CVS sources. However, something like this is probably all
that is needed.
AC_SEARCH_LIBS(nanosleep, [rt], [posix4], [], [
echo "nanosleep() required for timing operations."
exit 1
])
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From nagios at nagios.org Sun Nov 23 01:56:10 2003
From: nagios at nagios.org (Ethan Galstad)
Date: Sat, 22 Nov 2003 18:56:10 -0600
Subject: Is anyone using v2 in production?
In-Reply-To: <20031122211928.GC23635@isite.net>
References: <20031120184618.GE12424@isite.net>
Message-ID: <3FBFB14A.25559.DCC253@localhost>
I'll accept bug fix patches for 1.x, but feature patches should only
be made against 2.x (HEAD).
On 22 Nov 2003 at 13:19, Joe Rhett wrote:
> I really would like to know if anyone is using v2 in production, or if
> this really isn't possible yet.
>
> On Thu, Nov 20, 2003 at 10:46:18AM -0800, Joe Rhett wrote:
> > Okay, I've got our implementation (v1.1) working fairly okay. From
> > this experience however, I've got a number of patches that I think
> > the general public would appreciate. So the question is..
> >
> > 1. Is the v1.1 tree dead? Has v2 diverged so far that any patches I
> > contribute here would be dead zone?
> >
> > 2. Is anyone using v2 in production? If I spend the effort on v2
> > instead of v1, can I reasonably expect to have a working system
> > within a week or so of effort?
> >
> > Have effort and need, and I'm willing to spend the time. I'd like
> > to focus my efforts in the best place, but I do need to have a
> > working solution fairly shortly.
> >
> > --
> > Joe Rhett Chief Geek
> > JRhett at Isite.Net Isite Services,
> > Inc.
>
> --
> Joe Rhett Chief Geek
> JRhett at Isite.Net Isite Services,
> Inc.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From nagios at nagios.org Sun Nov 23 01:56:11 2003
From: nagios at nagios.org (Ethan Galstad)
Date: Sat, 22 Nov 2003 18:56:11 -0600
Subject: Nagios/CVS HEAD compilation issues on Solaris (strsep patch)
In-Reply-To: <20031122214843.GD23635@isite.net>
References: <20031122214843.GD23635@isite.net>
Message-ID: <3FBFB14B.28397.DCC311@localhost>
Done - Thanks.
On 22 Nov 2003 at 13:48, Joe Rhett wrote:
> Nagios/CVS HEAD already has a configure script, so I ran that and it
> completed fine. But compilation fails, complaining about symbols that
> are part of Nagios.
>
> gcc -g -O2 -I/opt/imagelib/include -DHAVE_CONFIG_H -DNSCORE -o nagios
> nagios.c broker.o nebmods.o checks.o config.o commands.o events.o
> flapping.o logging.o notifications.o sehandlers.o utils.o
> retention-base.o xretention-base.o comments-base.o xcomments-base.o
> objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o
> perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o
> -L/opt/imagelib/lib -lm -lnsl -lsocket -lpthread -ldl Undefined
> first referenced
> symbol in file
> strsep xretention-base.o
> nanosleep events.o
> ld: fatal: Symbol referencing errors. No output written to nagios
> collect2: ld returned 1 exit status
>
> First, in every file except for the x?ddefaults.c files you replaced
> strsep() with my_strsep(). This patch brings these two together:
>
> *** xdata/xrddefault.c_orig Sat Nov 22 13:36:18 2003
> --- xdata/xrddefault.c Sat Nov 22 13:36:56 2003
> ***************
> *** 633,639 ****
> else
> if(!strcmp(var,"state_history")){
> temp_ptr=val;
> for(x=0;x ;x++)
> ! temp_host->state_history[x]=atoi(s
> ! trsep(&temp_ptr,","));
> temp_host->state_history_index=0; }
> }
> --- 633,639 ----
> else
> if(!strcmp(var,"state_history")){
> temp_ptr=val;
> for(x=0;x ;x++)
> ! temp_host->state_history[x]=atoi(m
> ! y_strsep(&temp_ptr,","));
> temp_host->state_history_index=0; }
> }
> ***************
> *** 796,802 ****
> else
> if(!strcmp(var,"state_history")){
> temp_ptr=val;
> for(x=0;x ;x++)
> ! temp_service->state_history[x]=ato
> ! i(strsep(&temp_ptr,","));
> temp_service->state_history_index=0
> ; } }
> --- 796,802 ----
> else
> if(!strcmp(var,"state_history")){
> temp_ptr=val;
> for(x=0;x ;x++)
> ! temp_service->state_history[x]=ato
> ! i(my_strsep(&temp_ptr,","));
> temp_service->state_history_index=0
> ; } }
>
> *** xdata/xsddefault.c_orig Sat Nov 22 13:36:31 2003
> --- xdata/xsddefault.c Sat Nov 22 13:37:06 2003
> ***************
> *** 650,656 ****
> else
> if(!strcmp(var,"state_history")){
> temp_ptr=val;
> for(x=0;x ;x++)
> ! temp_hoststatus->state_history[x]=
> ! atoi(strsep(&temp_ptr,","));
> temp_hoststatus->state_history_inde
> x=0; } */
> --- 650,656 ----
> else
> if(!strcmp(var,"state_history")){
> temp_ptr=val;
> for(x=0;x ;x++)
> ! temp_hoststatus->state_history[x]=
> ! atoi(my_strsep(&temp_ptr,","));
> temp_hoststatus->state_history_inde
> x=0; } */
> ***************
> *** 743,749 ****
> else
> if(!strcmp(var,"state_history")){
> temp_ptr=val;
> for(x=0;x ;x++)
> ! temp_servicestatus->state_history[
> ! x]=atoi(strsep(&temp_ptr,","));
> temp_servicestatus->state_history_i
> ndex=0; } */
> --- 743,749 ----
> else
> if(!strcmp(var,"state_history")){
> temp_ptr=val;
> for(x=0;x ;x++)
> ! temp_servicestatus->state_history[
> ! x]=atoi(my_strsep(&temp_ptr,","));
> temp_servicestatus->state_history_i
> ndex=0; } */
>
>
>
> To get nanosleep on Solaris, so you have to link with -lposix4.
> This should be tested for by autoconf
>
>
>
> --
> Joe Rhett Chief Geek
> JRhett at Isite.Net Isite Services,
> Inc.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From nagios at nagios.org Sun Nov 23 01:57:06 2003
From: nagios at nagios.org (Ethan Galstad)
Date: Sat, 22 Nov 2003 18:57:06 -0600
Subject: HTML spelling mistake
In-Reply-To:
References:
Message-ID: <3FBFB182.11877.DD9BB4@localhost>
Got it - thanks.
On 19 Nov 2003 at 9:57, Kazuhiro Suwa wrote:
> I found HTML spelling mistake.
>
> $ cd cgi/
> $ grep valing *
> histogram.c: printf("
\n");
> ~~~~~~
> trends.c: printf("
\n");
> ~~~~~~
>
> -------------
> Kazuhiro Suwa
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From nagios at nagios.org Sun Nov 23 02:05:19 2003
From: nagios at nagios.org (Ethan Galstad)
Date: Sat, 22 Nov 2003 19:05:19 -0600
Subject: Found bugs in 1.1
In-Reply-To:
References:
Message-ID: <3FBFB36F.32455.E5218A@localhost>
Thanks! These will be applied to the 1.x branch as well as HEAD.
On 21 Nov 2003 at 11:53, Jason Martin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello, I've found a few bugs in 1.1 that may be a bit troublesome.
>
> One of them is that the 'notification_period' clause of a host is not
> required. I had a template that was missing this clause and several
> hosts that used the template. When I tried running a Nagios compiled
> w/debug enabled it coredumped when it tried to print out the host
> definition.
>
> Another is that if a service dependency has neither of the
> execution_failure_criteria or notification_failure_criteria defined it
> is silently ignored. I think a warning indicating that this 'lame'
> servicedependency exists should be thrown; I've attached a patch to
> effect this.
>
> A third is that the following causes a coredump; I think the
> servicedep duplication function should detect when its trying to set
> up an immediately circular depedency.
>
> define servicedependency{
> hostgroup_name HOSTGROUP1
> service_description Oracle
> dependent_hostgroup_name HOSTGROUP1
> dependent_service_description *
> execution_failure_criteria n
> notification_failure_criteria w,u,c
> }
>
>
> - -Jason Martin
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.3.3 (GNU/Linux)
> Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/
>
> iD8DBQE/vm1Kl2ODWuqVSBMRAoKwAKCCZYLsz8hneU5XbGVZMkJoro0rSACgkewS
> ezmdnoSS5vLrJ2OfwENrDHc=
> =/gO5
> -----END PGP SIGNATURE-----
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From nagios at nagios.org Sun Nov 23 02:07:43 2003
From: nagios at nagios.org (Ethan Galstad)
Date: Sat, 22 Nov 2003 19:07:43 -0600
Subject: statusmap circular layout
In-Reply-To: <1AC6F46DDAC27649BD7C9EC2DE49112FA399BA@falki.kerfisleiga.skrin.is>
References: <1AC6F46DDAC27649BD7C9EC2DE49112FA399BA@falki.kerfisleiga.skrin.is>
Message-ID: <3FBFB3FF.8717.E752C6@localhost>
Thanks - this will be in CVS tonight.
On 16 Nov 2003 at 18:41, Yngvi P?tursson wrote:
> I had probblem with the statusmap in Internet Explorer.
> When the circular layout image is so large you hafe to scroll whole
> page down and another to right, the popup layer disappired or pops up
> at courdites outside the browsers view. Here is a solution to my
> problem that puts the popup layer allways at the same cordinits at the
> top of the screen
>
>
>
> nagios# diff statusmap.c.org statusmap.c
> 6c6
> < * Last Modified: 06-24-2003
> ---
> > * Last Modified: 11-16-2003
> 2320,2321c2318,2319
> < printf("document.popup.style.left = (document.all ? eventObj.x
> : eventObj.layerX) + %d;\n",x_offset); <
> printf("document.popup.style.top = (document.all ? eventObj.y :
> eventObj.layerY) + %d;\n",y_offset); --- >
> printf("document.popup.style.left = document.body.scrollLeft +
> %d;\n",x_offset); > printf("document.popup.style.top =
> document.body.scrollTop + %d;\n",y_offset); nagios#
>
>
>
> K?r kve?ja / Best regards,
> Skuti - Yngvi Hrafn P?tursson ? kerfisfr??ingur ? Systems Analyst
> S?mi/tel: +354 460-5300 ? Fax: +354 460-5301 Vefs??a/website:
> http://www.skrin.is/
>
>
> -------------------------------------------------------
> This SF. Net email is sponsored by: GoToMyPC
> GoToMyPC is the fast, easy and secure way to access your computer from
> any Web browser or wireless device. Click here to Try it Free!
> https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target
> _______________________________________________ Nagios-devel mailing
> list Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Sun Nov 23 07:47:37 2003
From: jrhett at isite.net (Joe Rhett)
Date: Sat, 22 Nov 2003 22:47:37 -0800
Subject: Is anyone using v2 in production?
In-Reply-To: <3FBFB14A.25559.DCC253@localhost>
References: <20031120184618.GE12424@isite.net> <3FBFB14A.25559.DCC253@localhost>
Message-ID: <20031123064737.GA23507@isite.net>
On Sat, Nov 22, 2003 at 06:56:10PM -0600, Ethan Galstad wrote:
> I'll accept bug fix patches for 1.x, but feature patches should only
> be made against 2.x (HEAD).
Right now they are all compilation, basic functionality (and spelling!)
fixes.
The short list:
1. Inconsistent with other programs, you must specify
--with-mysql-lib=/opt/mysql/lib/mysql
intead of just
--with-mysql-lib=/opt/mysql/lib
Nagios-plugins knows that the libs are in the 'mysql' directory. The
includes knows that the includes are in the 'mysql' directory.
--with-mysql-inc=/opt/mysql/include
(even though both have mysql subdirs)
PRIORITY: really low. Inconsistency annoyance.
But I'd submit an autoconf patch if the autoconf files were available.
2. Nagios-plugins, plugins/Makefile defines MYSQLINCLUDEDIR but never uses
it. It's not used in the compilation of the programs, which fail. One
must change the INCLUDES line oneself for compilation to succeed.
PRIORITY: high. Compilation fails.
3. Likewise, why doesn't "make fullinstall" install the example
configuration files?
4. "make install" should not install the HTML and stylesheets all over again.
There is a "install-html" target, why not separate it?
5. I know this is a 'feature', but couldn't we install the HTML and
stylesheets as .sample, just like the configuration files, and then copy
them to functional if nothing else exists?
Things I intend to patch shortly:
Why show people the links to things they aren't allowed to do? Config info
and all the extended host info shouldn't show up in the menu for people who
can't use it.
> On 22 Nov 2003 at 13:19, Joe Rhett wrote:
>
> > I really would like to know if anyone is using v2 in production, or if
> > this really isn't possible yet.
> >
> > On Thu, Nov 20, 2003 at 10:46:18AM -0800, Joe Rhett wrote:
> > > Okay, I've got our implementation (v1.1) working fairly okay. From
> > > this experience however, I've got a number of patches that I think
> > > the general public would appreciate. So the question is..
> > >
> > > 1. Is the v1.1 tree dead? Has v2 diverged so far that any patches I
> > > contribute here would be dead zone?
> > >
> > > 2. Is anyone using v2 in production? If I spend the effort on v2
> > > instead of v1, can I reasonably expect to have a working system
> > > within a week or so of effort?
> > >
> > > Have effort and need, and I'm willing to spend the time. I'd like
> > > to focus my efforts in the best place, but I do need to have a
> > > working solution fairly shortly.
> > >
> > > --
> > > Joe Rhett Chief Geek
> > > JRhett at Isite.Net Isite Services,
> > > Inc.
> >
> > --
> > Joe Rhett Chief Geek
> > JRhett at Isite.Net Isite Services,
> > Inc.
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive? Does it
> > help you create better code? SHARE THE LOVE, and help us help
> > YOU! Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > Nagios-devel mailing list
> > Nagios-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-devel
> >
>
>
>
> Ethan Galstad,
> Nagios Developer
> ---
> Email: nagios at nagios.org
> Website: http://www.nagios.org
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Sun Nov 23 07:48:40 2003
From: jrhett at isite.net (Joe Rhett)
Date: Sat, 22 Nov 2003 22:48:40 -0800
Subject: Is anyone using v2 in production?
In-Reply-To: <3FBFB14A.25559.DCC253@localhost>
References: <20031120184618.GE12424@isite.net> <3FBFB14A.25559.DCC253@localhost>
Message-ID: <20031123064840.GB23507@isite.net>
Another thought: if nobody is using this in production, how is one
supposed to really test this?
And B: you've remove all the SQL database code. Under what conditions
would you accept patches that added it back in?
On Sat, Nov 22, 2003 at 06:56:10PM -0600, Ethan Galstad wrote:
> I'll accept bug fix patches for 1.x, but feature patches should only
> be made against 2.x (HEAD).
>
> On 22 Nov 2003 at 13:19, Joe Rhett wrote:
> > I really would like to know if anyone is using v2 in production, or if
> > this really isn't possible yet.
> >
> > On Thu, Nov 20, 2003 at 10:46:18AM -0800, Joe Rhett wrote:
> > > Okay, I've got our implementation (v1.1) working fairly okay. From
> > > this experience however, I've got a number of patches that I think
> > > the general public would appreciate. So the question is..
> > >
> > > 1. Is the v1.1 tree dead? Has v2 diverged so far that any patches I
> > > contribute here would be dead zone?
> > >
> > > 2. Is anyone using v2 in production? If I spend the effort on v2
> > > instead of v1, can I reasonably expect to have a working system
> > > within a week or so of effort?
> > >
> > > Have effort and need, and I'm willing to spend the time. I'd like
> > > to focus my efforts in the best place, but I do need to have a
> > > working solution fairly shortly.
> > >
> > > --
> > > Joe Rhett Chief Geek
> > > JRhett at Isite.Net Isite Services,
> > > Inc.
> >
> > --
> > Joe Rhett Chief Geek
> > JRhett at Isite.Net Isite Services,
> > Inc.
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive? Does it
> > help you create better code? SHARE THE LOVE, and help us help
> > YOU! Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > Nagios-devel mailing list
> > Nagios-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-devel
> >
>
>
>
> Ethan Galstad,
> Nagios Developer
> ---
> Email: nagios at nagios.org
> Website: http://www.nagios.org
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From code at novageeks.org Sun Nov 23 20:04:46 2003
From: code at novageeks.org (local.coder)
Date: Sun, 23 Nov 2003 11:04:46 -0800
Subject: Is anyone using v2 in production?
In-Reply-To: <20031123064840.GB23507@isite.net>
References: <20031120184618.GE12424@isite.net>
<3FBFB14A.25559.DCC253@localhost> <20031123064840.GB23507@isite.net>
Message-ID: <1069614286.6a37a239da5d6@mail.novageeks.org>
Having been around Nagios some time I will now jump in to mention what many may
not remember.
During the 1.0 codebase many people wanted varied database support for several
things. Ethan saw that meeting the masses was going to kill the core functions.
He stated back in pre 1 that he would be dropping the code for what I still
feel is a very good reason.
The 2 code base will have a central engine with an API that will allow external
modules to deal with nagios data. This will allow for database modules, alert
modules, custom report modules and better gui modules. The idea here is that
someone with good mysql coding will make the db modules just as they have now
without forcing Ethan to divert attention on it. Then someone who knows
postgres and MS SQL can make their modules. As we have seen without the plugins
Nagios would be dead but those are completely maintained by a different group
of people with their own release points and feature goals.
As 2 gets into testing by us front liners you will start to see more modules and
plugins that cover databases and kitchen sinks. Think of this as your
opportunity to be an integral part of the Nagios development. In the past
people complained about the web pages being c and hard to change. The same was
said about the database support. Under 2 it becomes a wide open field and the
more who play the better the software.
Derrick
Quoting Joe Rhett :
> Another thought: if nobody is using this in production, how is one
> supposed to really test this?
>
> And B: you've remove all the SQL database code. Under what conditions
> would you accept patches that added it back in?
>
> On Sat, Nov 22, 2003 at 06:56:10PM -0600, Ethan Galstad wrote:
> > I'll accept bug fix patches for 1.x, but feature patches should only
> > be made against 2.x (HEAD).
> >
> > On 22 Nov 2003 at 13:19, Joe Rhett wrote:
> > > I really would like to know if anyone is using v2 in production, or if
> > > this really isn't possible yet.
> > >
> > > On Thu, Nov 20, 2003 at 10:46:18AM -0800, Joe Rhett wrote:
> > > > Okay, I've got our implementation (v1.1) working fairly okay. From
> > > > this experience however, I've got a number of patches that I think
> > > > the general public would appreciate. So the question is..
> > > >
> > > > 1. Is the v1.1 tree dead? Has v2 diverged so far that any patches I
> > > > contribute here would be dead zone?
> > > >
> > > > 2. Is anyone using v2 in production? If I spend the effort on v2
> > > > instead of v1, can I reasonably expect to have a working system
> > > > within a week or so of effort?
> > > >
> > > > Have effort and need, and I'm willing to spend the time. I'd like
> > > > to focus my efforts in the best place, but I do need to have a
> > > > working solution fairly shortly.
> > > >
> > > > --
> > > > Joe Rhett Chief Geek
> > > > JRhett at Isite.Net Isite Services,
> > > > Inc.
> > >
> > > --
> > > Joe Rhett Chief Geek
> > > JRhett at Isite.Net Isite Services,
> > > Inc.
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: SF.net Giveback Program.
> > > Does SourceForge.net help you be more productive? Does it
> > > help you create better code? SHARE THE LOVE, and help us help
> > > YOU! Click Here: http://sourceforge.net/donate/
> > > _______________________________________________
> > > Nagios-devel mailing list
> > > Nagios-devel at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nagios-devel
> > >
> >
> >
> >
> > Ethan Galstad,
> > Nagios Developer
> > ---
> > Email: nagios at nagios.org
> > Website: http://www.nagios.org
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive? Does it
> > help you create better code? SHARE THE LOVE, and help us help
> > YOU! Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > Nagios-devel mailing list
> > Nagios-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
> --
> Joe Rhett Chief Geek
> JRhett at Isite.Net Isite Services, Inc.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From frans at essentkabel.com Tue Nov 25 14:24:17 2003
From: frans at essentkabel.com (Frans Hetterscheid)
Date: Tue, 25 Nov 2003 14:24:17 +0100
Subject: Passive check with freshness
Message-ID: <3FC35801.7020301@essentkabel.com>
I seem to get no awnser through "nagios-list" hope the awnser can be
found here,
I seem to have a problem with freshness check, passive checks are
submitted by hosts, on the server i difined the max_check_attempts=3
When the nagios-server isn't receiving data, the freshness check will
anounce that there are no incoming passive check for a particular service.
I want nagios to send a notification immediately when the freshness
check appears but the max_check_attempts set for passive check also concern
the times freshness checks needs to pass when entering from a soft to
hard state.
Because I set the freshness_threshold to 10 minutes I receive a
notification after 40 minutes.
Is there a way to resolve this, maybe there is way to let hosts check a
service 3 times (if in error) before sending the data with nsca to nagios.
This way I can set the max_check_attempts on the server to 1 so if
freshness_check passes for the first time, ore when an (passive)error
occurs (the remote host already checked the service 3 times) the server
will notify immediately on status critical..
Thanks in advance.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From tobeya at tobert.org Tue Nov 25 16:43:34 2003
From: tobeya at tobert.org (Al Tobey)
Date: Tue, 25 Nov 2003 10:43:34 -0500
Subject: Nagios::Object - perl objects/parser for Nagios config & log
Message-ID: <1069775014.1393.73.camel@linuxws1.internal.priority-health.com>
This announcement is also at:
http://use.perl.org/~tobert/journal/16004
I've been working on Nagios::Object, a set of perl modules for parsing
and working with Nagios objects in perl. The first cut of this module
is available at http://www.tobert.org/perl/Nagios-Object-0.01.tar.gz .
It's a little rough around the edges, but I need people to look at the
API and tell me what it needs.
There are three modules in the distribution (for now):
Nagios::Object - represent Nagios objects as perl objects
Nagios::Object::Config - parse Nagios object configs
Nagios::StatusLog - parse Nagios status logs
Some possible modules in the future:
Nagios::Default - parse files like nagios.cfg (will be in v0.02)
DBD::Nagios - DBI/SQL interface to the Nagios configuration
Nagios::HTML - HTML widgets for Nagios configuration & statuses
My hope is that as time goes by, these modules make it possible to
rewrite the Nagios CGIs in perl. I also plan on looking at making the
backend of Nagios::Object be able to read Nagios v2's DBM cache or even
get it directly from Nagios via SHM or something crazy like that.
All (451) of my tests succeed on my Linux laptop, but I'd like for some
of you out there to beat on it and let me know what you think. I'm
planning on posting version 0.02 to CPAN this weekend if I get some
feedback.
Attachment is output of pod2text for Nagios::Object.
-Al Tobey
-------------- next part --------------
NAME
Nagios::Object
DESCRIPTION
This module contains the code for creating perl objects to represent any
of the Nagios objects. All of the perl classes are auto-generated at
compile-time, so it's pretty trivial to add new attributes or even
entire objects. The following is a list of currently supported classes:
Nagios::TimePeriod
Nagios::Command
Nagios::Contact
Nagios::ContactGroup
Nagios::Host
Nagios::Service
Nagios::HostGroup
Nagios::ServiceEscalation
Nagios::HostDependency
Nagios::HostEscalation
Nagios::HostGroupEscalation
Nagios::ServiceDependency
EXAMPLE
use Nagios::Object;
my $generic_host = Nagios::Host->new(
register => 0,
parents => undef,
check_command => $some_command,
max_check_attempts => 3,
checks_enabled => 1,
event_handler => $some_command,
event_handler_enabled => 0,
low_flap_threshhold => 0,
high_flap_threshhold => 0,
flap_detection_enabled => 0,
process_perf_data => 1,
retain_status_information => 1,
retain_nonstatus_information => 1,
notification_interval => $timeperiod,
notification_options => [qw(d u r)],
notifications_enabled => 1,
stalking_options => [qw(o d u)]
);
my $localhost = Nagios::Host->new(
use => $generic_host,
host_name => "localhost",
alias => "Loopback",
address => "127.0.0.1"
);
my $hostname = $localhost->host_name();
printf "max check attempts for $hostname is %s.\n",
$localhost->max_check_attempts;
$localhost->set_event_handler(
Nagios::Command->new(
command_name => "new_event_handler",
command_line => "/bin/true"
)
);
METHODS
new()
Create a new object of one of the types listed above.
Nagios::Host->new( ... );
dump()
Output a Nagios define { } block from an object. This is still
EXPERIMENTAL, but may eventually be robust enough to use for a
configuration GUI.
print $object->dump();
name()
This method is common to all calles created by this module. It
should always return the textual name for an object. It is used
internally by the Nagios::Object modules to allow polymorphism,
which is what makes this module so compact. Also of note is that
this is the only way to retrieve the name of a template, since they
have a "name" field that they are identified by.
my $svc_desc = $service->name;
my $hostname = $host->name;
Which is just short for:
my $svc_desc = $service->service_description;
my $hostname = $service->host_name;
register()
Returns true/undef to indicate whether the calling object is
registerable or not.
if ( $object->register ) { print $object->name, " is registerable." }
has_attribute()
Returns true/undef to indicate whether the calling object has the
attribute specified as the only argument.
# check to see if $object has attribute "command_line"
die if ( !$object->has_attribute("command_line") );
list_attributes()
Returns a list of valid attributes for the calling object.
my @host_attributes = $host->list_attributes();
attribute_type()
Returns the type of data expected by the object's set_ method for
the given attribute.
my $type = $host->attribute_type("notification_period");
attribute_is_list()
Returns true if the attribute is supposed to be a list (ARRAYREF).
if ( $object->attribute_is_list("members") ) {
$object->set_members( [$member] );
} else {
$object->set_members( $member );
}
attribute_allows_undef()
Returns true if the attribute provided is allowed to have a value of
undef. Setting an attribute to undef will cause the templates to be
searched until a non-undef answer is found.
NOTE: this may go away, since I'm not sure if it's really useful at
all.
my $answer = $object->attribute_allows_undef("command_line");
AUTHOR
Al Tobey
Thank you to the fine people of #perl on freenode.net for helping me
with some hairy code and silly optimizations.
WARNINGS
See AUTHOR.
From ouba at ouba.org Tue Nov 25 16:46:28 2003
From: ouba at ouba.org (Denis Sacchet)
Date: Tue, 25 Nov 2003 16:46:28 +0100
Subject: Definition of "host" type ...
Message-ID: <20031125154627.GA20390@ouba.org>
Hi,
in the file checks.c, some variables are of type "host *" like
at the line 514. I doesn't find a typedef corresponding into
the *.h. The only thing I found is the "typedef struct host_struct"
at line 93 of "objects.h" with the definition of NSCORE. This seems
to correspond to the parameters used. And there is a -DNSCORE into
the "makefile" of "base" directory. But I cannot make the parallel
between host_struct type and host type ... Can someone help me
please ...
Thx in advance
--
Denis Sacchet aka. Ouba ("`-/")_.-'"``-._
. . `; -._ )-;-,_`)
"Computers are like air conditionners (v_,)' _ )`-.\ ``-'
They stop working properly when you _.- _..-_/ / ((.'
open Windows !!!" ((,.-' ((,/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From nagios at todoo.biz Wed Nov 26 10:20:54 2003
From: nagios at todoo.biz (Greg Bernard)
Date: Wed, 26 Nov 2003 10:20:54 +0100
Subject: Compiling nagios nsca plugin on OSX
Message-ID:
Hello,
I am trying to compile nsca the remote plugin execution for NAGIOS but I
can't achieve that because of error when I am compile :
> [lapac:~/Tmp/nsca-2.4] greg% sudo make all
> Password:
> cd ./src/; make all ; cd ..
> gcc -g -O2 -DHAVE_CONFIG_H -o nsca nsca.c netutils.c utils.c
> nsca.c: In function `register_poll':
> nsca.c:449: invalid use of undefined type `struct pollfd'
> nsca.c:449: dereferencing pointer to incomplete type
> nsca.c:450: invalid use of undefined type `struct pollfd'
> nsca.c:450: dereferencing pointer to incomplete type
> nsca.c:458: sizeof applied to an incomplete type
> nsca.c:462: sizeof applied to an incomplete type
> nsca.c:465: invalid use of undefined type `struct pollfd'
> nsca.c:465: dereferencing pointer to incomplete type
> nsca.c:466: invalid use of undefined type `struct pollfd'
> nsca.c:466: dereferencing pointer to incomplete type
> nsca.c: In function `register_read_handler':
> nsca.c:477: `POLLIN' undeclared (first use in this function)
> nsca.c:477: (Each undeclared identifier is reported only once
> nsca.c:477: for each function it appears in.)
> nsca.c: In function `register_write_handler':
> nsca.c:511: `POLLOUT' undeclared (first use in this function)
> nsca.c: In function `handle_events':
> nsca.c:579: invalid use of undefined type `struct pollfd'
> nsca.c:579: dereferencing pointer to incomplete type
> nsca.c:579: `POLLIN' undeclared (first use in this function)
> nsca.c:579: invalid use of undefined type `struct pollfd'
> nsca.c:579: dereferencing pointer to incomplete type
> nsca.c:579: `POLLERR' undeclared (first use in this function)
> nsca.c:579: `POLLHUP' undeclared (first use in this function)
> nsca.c:579: `POLLNVAL' undeclared (first use in this function)
> nsca.c:580: invalid use of undefined type `struct pollfd'
> nsca.c:580: dereferencing pointer to incomplete type
> nsca.c:581: invalid use of undefined type `struct pollfd'
> nsca.c:581: dereferencing pointer to incomplete type
> nsca.c:586: invalid use of undefined type `struct pollfd'
> nsca.c:586: dereferencing pointer to incomplete type
> nsca.c:588: invalid use of undefined type `struct pollfd'
> nsca.c:588: dereferencing pointer to incomplete type
> nsca.c:588: `POLLOUT' undeclared (first use in this function)
> nsca.c:588: invalid use of undefined type `struct pollfd'
> nsca.c:588: dereferencing pointer to incomplete type
> nsca.c:589: invalid use of undefined type `struct pollfd'
> nsca.c:589: dereferencing pointer to incomplete type
> nsca.c:590: invalid use of undefined type `struct pollfd'
> nsca.c:590: dereferencing pointer to incomplete type
> nsca.c:595: invalid use of undefined type `struct pollfd'
> nsca.c:595: dereferencing pointer to incomplete type
> nsca.c:600: invalid use of undefined type `struct pollfd'
> nsca.c:600: dereferencing pointer to incomplete type
> nsca.c:602: invalid use of undefined type `struct pollfd'
> nsca.c:602: dereferencing pointer to incomplete type
> nsca.c:602: invalid use of undefined type `struct pollfd'
> nsca.c:602: dereferencing pointer to incomplete type
> nsca.c:603: invalid use of undefined type `struct pollfd'
> nsca.c:603: dereferencing pointer to incomplete type
> nsca.c:603: invalid use of undefined type `struct pollfd'
> nsca.c:603: dereferencing pointer to incomplete type
> make[1]: *** [nsca] Error 1
>
> *** Compile finished ***
>
> If the compile finished without any errors, you should
> find client and server binaries in the src/ subdirectory.
>
> Read the README file for more information on installing
> the binaries, creating configuration files, and using
> the server and client.
As I do not know anything about C I would like to know if someone has
succeeded in compiling this addon for NAGIOS.
I desperately need It...
Any clue that will help me solve this issue will be welcome.
Thanks.
________________________________________________
????????????????????????????????????????????????
????????????????????????????????????????????????
Gregober ---> PGP ID --> 0x1BA3C2FD
omni_osx_ml @at@ todoo.biz
________________________________________________
????????????????????????????????????????????????
????????????????????????????????????????????????
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone." - Bjarne Stroustrup
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From mpowell at ena.com Wed Nov 26 21:42:25 2003
From: mpowell at ena.com (Marc Powell)
Date: Wed, 26 Nov 2003 14:42:25 -0600
Subject: status.dat not created
Message-ID: <370ACCFA5BB3B346A31222E5559BF91F014D9F@mismail2.ena.com>
Hey all,
I'm starting to play with 2.0a1 (CVS autobuild dated 11/25) and I'm
having a problem right off the bat. I'm starting with a pretty simple
compile (only specifying cgi/htmurl) and configuration (3 hosts, 4
services, 1 contact). The hosts and services are set up to be passive --
(template definitions)
define host{
name generic-host
notifications_enabled 1 ; Host notifications are
enabled
event_handler_enabled 1 ; Host event handler is
enabled
flap_detection_enabled 1 ; Flap detection is
enabled
process_perf_data 1 ; Process performance
data
retain_status_information 1 ; Retain status
information across program restarts
retain_nonstatus_information 1 ; Retain non-status
information across program restarts
max_check_attempts 10
notification_interval 10080
notification_period 24x7
notification_options d,r
register 0 ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
# Generic service definition template
define service{
name generic-service
active_checks_enabled 1 ; Active service checks
are enabled
passive_checks_enabled 1 ; Passive service checks
are enabled/accepted
parallelize_check 1 ; Active service checks
should be parallelized
obsess_over_service 1 ; We should obsess over
this service (if necessary)
check_freshness 0 ; Default is to NOT
check service 'freshness'
notifications_enabled 1 ; Service notifications
are enabled
event_handler_enabled 1 ; Service event handler
is enabled
flap_detection_enabled 1 ; Flap detection is
enabled
process_perf_data 1 ; Process performance
data
retain_status_information 1 ; Retain status
information across program restarts
retain_nonstatus_information 1 ; Retain non-status
information across program restarts
is_volatile 0
check_period none
max_check_attempts 5
normal_check_interval 5
retry_check_interval 3
notification_interval 10080
notification_period 24x7
notification_options c,r
register 0 ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}
(example host and service definitions) --
# Host definition
define host {
use generic-host
host_name tnops-cedarbluff-int.knox.tn.ena.net
alias cedarbluff-int.knox.tn.ena.net
address 172.31.73.20
contact_groups tnops
}
#Service definition
define service {
use generic-service
host_name tnops-cedarbluff-int.knox.tn.ena.net
service_description PING
contact_groups tnops
check_command check_ping
}
pre-flight check looks good --
-bash-2.05b$ bin/nagios -v etc/nagios.cfg
Nagios 2.0a1
Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org)
Last Modified: 11-18-2003
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Checked 4 services.
Checking hosts...
Checked 3 hosts.
Checking host groups...
Checked 3 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 100 commands.
Checking time periods...
Checked 4 time periods.
Checking extended host info definitions...
Checked 0 extended host info definitions.
Checking extended service info definitions...
Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the
pre-flight check
Nagios starts fine --
-bash-2.05b$ cat nagios.log
[1069877273] Nagios 2.0a1 starting... (PID=9588)
[1069877273] LOG VERSION: 2.0
[1069877273] Finished daemonizing... (New PID=9589)
And all the .dat files get created except the most important one,
status.dat --
-bash-2.05b$ cd /usr/local/nagios/var
-bash-2.05b$ ls -al
total 56
drwxrwxr-x 4 nagios nagios 4096 Nov 26 14:07 .
drwxrwxr-x 7 nagios nagios 4096 Nov 26 14:13 ..
drwxrwxr-x 2 nagios nagios 4096 Nov 25 14:47 archives
-rw-rw-r-- 1 nagios nagios 240 Nov 26 14:07 comments.dat
-rw-rw-r-- 1 nagios nagios 241 Nov 26 14:07 downtime.dat
-rw-r--r-- 1 nagios nagios 5 Nov 26 14:07 nagios.lock
-rw-r--r-- 1 nagios nagios 216 Nov 26 14:07 nagios.log
-rw-r--r-- 1 nagios nagios 21153 Nov 26 14:07 objects.cache
-rw-r--r-- 1 nagios nagios 0 Nov 26 14:07 retention.dat
drwxrwsr-x 2 nagios nagios 4096 Nov 26 14:07 rw
The relevant config file entries are --
status_file=/usr/local/nagios/var/status.dat
temp_file=/usr/local/nagios/var/nagios.tmp
aggregate_status_updates=0
status_update_interval=5 (not needed)
I've done an strace on the process (strace -fF -s 512
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg) and
see where all the other dat files are created but don't see where even a
stat of status.dat is done let alone an open. I've tried submitting
passive service checks in case that was the key but it's still not
created.
Is there something obvious that I've missed? I can be a dork like that
sometimes.
--
Marc
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From g.vickers at qut.edu.au Thu Nov 27 14:13:50 2003
From: g.vickers at qut.edu.au (Greg Vickers)
Date: Thu, 27 Nov 2003 23:13:50 +1000
Subject: check_nt and USEDDISKSPACE
Message-ID: <5.2.0.9.2.20031127231305.0188f538@imap.qut.edu.au>
Hi all,
I want to use check_nt to check space on a windows hdd, but not by giving
check_nt warning and critical percentages. I want to pass warning and
critical values in Gb.
I know that I could use NRPE_NT or NSCA, but I haven't deployed either of
these options to my Windows hosts.
Has anyone else done this mod, before I delve into the check_nt code?
Thanks,
=================================
Greg Vickers
Computer Systems Officer
Student Support and Systems,
Teaching and Learning Support Systems,
Queensland University of Technology,
Kelvin Grove Campus,
Brisbane,
Australia
CRICOS No 00213J
Ph: 07 3864 8276 Fax: 07 3864 5425
Mob: 0416 001 674 SD: #66147
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From jrhett at isite.net Thu Nov 27 22:28:22 2003
From: jrhett at isite.net (Joe Rhett)
Date: Thu, 27 Nov 2003 13:28:22 -0800
Subject: Patch to fix stylesheets in Tactical Overview
Message-ID: <20031127212822.GA25403@isite.net>
The tactical overview overrides the stylesheet in numerous places inside
the source code. This patch removes these instances.
*** cgi/tac.c_orig Thu Nov 27 13:24:10 2003
--- cgi/tac.c Thu Nov 27 13:24:58 2003
***************
*** 329,335 ****
printf("\n",url_stylesheets_path,TAC_CSS);
printf("\n");
! printf("\n");
/* include user SSI header */
include_ssi_files(TAC_CGI,SSI_HEADER);
--- 329,335 ----
printf("\n",url_stylesheets_path,TAC_CSS);
printf("\n");
! printf("\n");
/* include user SSI header */
include_ssi_files(TAC_CGI,SSI_HEADER);
***************
*** 921,927 ****
printf("
\n");
! printf("
\n");
printf("
Network Outages
\n");
--- 921,927 ----
printf("
\n");
! printf("
\n");
printf("
Network Outages
\n");
***************
*** 1038,1044 ****
printf("
\n");
! printf("
\n");
printf("
Hosts
\n");
--- 1038,1044 ----
printf("
\n");
! printf("
\n");
printf("
Hosts
\n");
***************
*** 1178,1184 ****
printf("
\n");
! printf("
\n");
printf("
Services
\n");
--- 1178,1184 ----
printf("
\n");
! printf("
\n");
printf("
Services
\n");
***************
*** 1358,1364 ****
printf("
\n");
! printf("
\n");
printf("
Monitoring Features
\n");
--- 1358,1364 ----
printf("
\n");
! printf("
\n");
printf("
Monitoring Features
\n");
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
From xtrema220s at hotmail.com Fri Nov 28 09:27:02 2003
From: xtrema220s at hotmail.com (Roberto Lacchini)
Date: Fri, 28 Nov 2003 08:27:02 +0000
Subject: modifying hostextinfo.cfg file
Message-ID:
hi man, i have a question for you all... i'm working with the
hostextinfo.cfg file... this is the structure of the file in this moment:
define hostextinfo {
host_name DL380
icon_image win40.gif
vrml_image win40.jpg
statusmap_image win40.gd2
icon_image_alt superman
}
my goal is to insert a new param called "host_type". i have to use that
param to discriminate if the server is a Win,Unix,Sun... server!
i have tryed to make that: i've changed the hostextinfo structure into the
file:
edata.h / .c
xdata/xedtemplate.c / .h
statuswrl.c
statusmao.c
but it dosn't work... i'm not sure if what i've done is correct or
incomplete... (i've thinked that probably i've to find the function wich
read the file hostextinfo.cfg and try to modify that)... could someone try
to help me?
if someone know how to make it, i'd like if he could writes me by email too
( xtrema220s at hotmail.com )
have a good day
Roberto Lacchini
_________________________________________________________________
Nuovo MSN Messenger 6.1 con sfondi e giochi! http://messenger.msn.it/
Provalo subito!
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/