Re: [Nagios-devel] Re: [Nagios-users] Updated RPM for Nagios 1.0
Posted: Sat May 31, 2003 7:43 pm
--=-BgV3nBkNKcI53WKQYVMv
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Fri, 2003-05-30 at 15:08, Ethan Galstad wrote:
> I was just about to release 1.1 on my day off, so this is good
> timing. I forgot to apply the cmd CGI patch to the 1.x branch, but
> will do so ASAP. FYI, the stable branch of CVS for 1.x is called
> nagios-1-x-bugfixes.
>
> I believe the Postgres timestamp patch (submitted by jbearce on Nov.
> 6th) was already applied to 1.0, although there might have been a
> later patch that I missed. Other than that, you got all the patches
> since 1.0 (there weren't many).
The spec file has been patched in CVS.
I am getting an error in the build, however:
perl -MExtUtils::Embed -e xsinit
gcc -O3 -mcpu=pentium -I/usr/include -DHAVE_CONFIG_H -c perlxsi.c `perl
-MExtUtils::Embed -e ccopts`
gcc -O3 -mcpu=pentium -I/usr/include -DHAVE_CONFIG_H -c mini_epn.c `perl
-MExtUtils::Embed -e ccopts`
mini_epn.c: In function `main':
mini_epn.c:116: `my_perl' undeclared (first use in this function)
mini_epn.c:116: (Each undeclared identifier is reported only once
mini_epn.c:116: for each function it appears in.)
make: *** [mini_epn] Error 1
error: Bad exit status from /tmp/rpm-tmp.53847 (%build)
This is on RH 9. I'll look into it, but if anyone recognizes the
problem, I'm not averse to hints.
RE: postgresql, you did apply
http://sourceforge.net/mailarchive/mess ... id=2450802
for 7.2 -- the patch I added was
http://sourceforge.net/mailarchive/foru ... um_id=1872
for 7.3
I have it in patch form. If you want me to apply if, say the word. I'll
attached the patch as well.
--
Karl
--=-BgV3nBkNKcI53WKQYVMv
Content-Disposition: attachment; filename=nagios-1.0-pgsql-timestamp.patch
Content-Type: text/plain; name=nagios-1.0-pgsql-timestamp.patch; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
# http://sourceforge.net/mailarchive/foru ... um_id=1872
--- xdata/xcddb.c 2 Dec 2002 04:30:12 -0000 1.3
+++ xdata/xcddb.c 4 Jan 2003 00:02:37 -0000
@@ -711,6 +711,6 @@
snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,persistent,entry_time,author_name,comment_data) VALUES ('%s','%d',FROM_UNIXTIME(%lu),'%s','%s')",XCDDB_HOSTCOMMENTS_TABLE,escaped_host_name,persistent,entry_time,escaped_author_name,escaped_comment_data);
#endif
#ifdef USE_XCDPGSQL
- snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,persistent,entry_time,author_name,comment_data) VALUES ('%s','%d',abstime(%lu),'%s','%s')",XCDDB_HOSTCOMMENTS_TABLE,escaped_host_name,persistent,entry_time,escaped_author_name,escaped_comment_data);
+ snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,persistent,entry_time,author_name,comment_data) VALUES ('%s','%d',%lu::abstime::timestamp,'%s','%s')",XCDDB_HOSTCOMMENTS_TABLE,escaped_host_name,persistent,entry_time,escaped_author_name,escaped_comment_data);
#endif
sql_statement[sizeof(sql_statement)-1]='\x0';
--- xdata/xcddb.c 2 Dec 2002 04:30:12 -0000 1.3
+++ xdata/xcddb.c 4 Jan 2003 00:02:37 -0000
@@ -809,6 +809,6 @@
snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,service_description,persistent,entry_time,author_name,comment_data) VALUES ('%s','%s','%d',FROM_UNIXTIME(%lu),'%s','%s')",XCDDB_SERVICECOMMENTS_TABLE,escaped_host_name,escaped_svc_description,persistent,entry_time,escaped_author_name,escaped_comment_data);
#endif
#ifdef USE_XCDPGSQL
- snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,service_description,persistent,entry_time,author_name,comment_data) VALUES ('%s','%s','%d',abstime(%lu),'%s','%s')",XCDDB_SERVICECOMMENTS_TABLE,escaped_host_name,escaped_svc_description,persistent,entry_time,escaped_author_name,escaped_comment_data);
+ snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,service_description,persistent,entry_time,author_name,comment_data) VALUES ('%s','%s','%d',%lu::abstime::timestamp,'%s','%s')",XCDDB_SERVICECOMMENTS_TABLE,escaped_host_name,escaped_svc_description,persistent,entry_time,escaped_author_name,
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Fri, 2003-05-30 at 15:08, Ethan Galstad wrote:
> I was just about to release 1.1 on my day off, so this is good
> timing. I forgot to apply the cmd CGI patch to the 1.x branch, but
> will do so ASAP. FYI, the stable branch of CVS for 1.x is called
> nagios-1-x-bugfixes.
>
> I believe the Postgres timestamp patch (submitted by jbearce on Nov.
> 6th) was already applied to 1.0, although there might have been a
> later patch that I missed. Other than that, you got all the patches
> since 1.0 (there weren't many).
The spec file has been patched in CVS.
I am getting an error in the build, however:
perl -MExtUtils::Embed -e xsinit
gcc -O3 -mcpu=pentium -I/usr/include -DHAVE_CONFIG_H -c perlxsi.c `perl
-MExtUtils::Embed -e ccopts`
gcc -O3 -mcpu=pentium -I/usr/include -DHAVE_CONFIG_H -c mini_epn.c `perl
-MExtUtils::Embed -e ccopts`
mini_epn.c: In function `main':
mini_epn.c:116: `my_perl' undeclared (first use in this function)
mini_epn.c:116: (Each undeclared identifier is reported only once
mini_epn.c:116: for each function it appears in.)
make: *** [mini_epn] Error 1
error: Bad exit status from /tmp/rpm-tmp.53847 (%build)
This is on RH 9. I'll look into it, but if anyone recognizes the
problem, I'm not averse to hints.
RE: postgresql, you did apply
http://sourceforge.net/mailarchive/mess ... id=2450802
for 7.2 -- the patch I added was
http://sourceforge.net/mailarchive/foru ... um_id=1872
for 7.3
I have it in patch form. If you want me to apply if, say the word. I'll
attached the patch as well.
--
Karl
--=-BgV3nBkNKcI53WKQYVMv
Content-Disposition: attachment; filename=nagios-1.0-pgsql-timestamp.patch
Content-Type: text/plain; name=nagios-1.0-pgsql-timestamp.patch; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
# http://sourceforge.net/mailarchive/foru ... um_id=1872
--- xdata/xcddb.c 2 Dec 2002 04:30:12 -0000 1.3
+++ xdata/xcddb.c 4 Jan 2003 00:02:37 -0000
@@ -711,6 +711,6 @@
snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,persistent,entry_time,author_name,comment_data) VALUES ('%s','%d',FROM_UNIXTIME(%lu),'%s','%s')",XCDDB_HOSTCOMMENTS_TABLE,escaped_host_name,persistent,entry_time,escaped_author_name,escaped_comment_data);
#endif
#ifdef USE_XCDPGSQL
- snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,persistent,entry_time,author_name,comment_data) VALUES ('%s','%d',abstime(%lu),'%s','%s')",XCDDB_HOSTCOMMENTS_TABLE,escaped_host_name,persistent,entry_time,escaped_author_name,escaped_comment_data);
+ snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,persistent,entry_time,author_name,comment_data) VALUES ('%s','%d',%lu::abstime::timestamp,'%s','%s')",XCDDB_HOSTCOMMENTS_TABLE,escaped_host_name,persistent,entry_time,escaped_author_name,escaped_comment_data);
#endif
sql_statement[sizeof(sql_statement)-1]='\x0';
--- xdata/xcddb.c 2 Dec 2002 04:30:12 -0000 1.3
+++ xdata/xcddb.c 4 Jan 2003 00:02:37 -0000
@@ -809,6 +809,6 @@
snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,service_description,persistent,entry_time,author_name,comment_data) VALUES ('%s','%s','%d',FROM_UNIXTIME(%lu),'%s','%s')",XCDDB_SERVICECOMMENTS_TABLE,escaped_host_name,escaped_svc_description,persistent,entry_time,escaped_author_name,escaped_comment_data);
#endif
#ifdef USE_XCDPGSQL
- snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,service_description,persistent,entry_time,author_name,comment_data) VALUES ('%s','%s','%d',abstime(%lu),'%s','%s')",XCDDB_SERVICECOMMENTS_TABLE,escaped_host_name,escaped_svc_description,persistent,entry_time,escaped_author_name,escaped_comment_data);
+ snprintf(sql_statement,sizeof(sql_statement)-1,"INSERT INTO %s (host_name,service_description,persistent,entry_time,author_name,comment_data) VALUES ('%s','%s','%d',%lu::abstime::timestamp,'%s','%s')",XCDDB_SERVICECOMMENTS_TABLE,escaped_host_name,escaped_svc_description,persistent,entry_time,escaped_author_name,
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]