[Nagiosplug-help] FW: nagiosplug 1.3 tar or cvs -- both fail to compile

David Shapiro david.shapiro at btitele.com
Tue Jul 9 05:52:01 CEST 2002


I was trying to build plugins 1.3 on linux and solaris...

linux stops at:

O2 -c check_http.c
check_http.c:1059:1: directives may not be used inside a macro argument
check_http.c:1059:1: unterminated argument list invoking macro "printf"
check_http.c: In function `print_usage':
check_http.c:1060: parse error before string constant
make[1]: *** [check_http.o] Error 1
make[1]: Leaving directory `/root/nagiosplug-1.3-beta1/plugins'
make: *** [all-recursive] Error 1

I looked there and had to comment out the #ifdef...else..endif stuff to get
it and any check program that had this ifdef check to get it to compile on
linux.

print_usage (void)
{
        printf ("Usage:\n" " %s %s\n"
/* #ifdef HAVE_GETOPT_H */
                " %s (-h | --help) for detailed help\n"
                " %s (-V | --version) for version information\n",
/* #else
                " %s -h for detailed help\n"
                " %s -V for version information\n",
#endif
*/
        PROGNAME, OPTIONS, PROGNAME, PROGNAME);

solaris 2.8 doesn't get far at all:

ke: Fatal error in reader: Makefile, line 657: Unexpected end of line seen
Current working directory /usr/local/nagiosplug/plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

I used gcc 3.1 on the solaris box with autoconf 2.5.3 and automake 1.6 and
binutils 2.11.  I read in the INSTALL or README about needing autoconf 2.13
and automake 1.4p5.  I actually downloaded those and installed them in a
different directory and used those.  Immediately it says that it needs
autoconf 2.5.3 or later (waste of time).  Anyway, I ran autoconf, aclocal
--output=/usr/local/nagiosplug/aclocal.m4, automake (it still whines about
aclocal.m4 and that depcomp not found:

tomake: configure.in: `AM_INIT_AUTOMAKE' must be used
automake: your implementation of AM_INIT_AUTOMAKE comes from an
automake: old Automake version.  You should recreate aclocal.m4
automake: with aclocal and run automake again.
configure.in:183: invalid unused variable name: `check_mysql_LDFLAGS'
configure.in:183: invalid unused variable name: `check_mysql_LDFLAGS'
plugins/Makefile.am: required file `./depcomp' not found
/usr/local/share/automake-1.6/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/local/share/automake-1.6/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/local/share/automake-1.6/am/depend2.am: AMDEP does not appear in
AM_CONDITIONAL
/usr/local/share/automake-1.6/am/lang-compile.am: AMDEP does not appear in
AM_CONDITIONAL

autoheader:

WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
WARNING: and `config.h.top', to define templates for `config.h.in'
WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and
WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,
WARNING:             [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the
WARNING: documentation.
autoheader: `plugins/config.h.in' is unchanged


-----Original Message-----
From: netsaint-users-request at lists.sourceforge.net
[mailto:netsaint-users-request at lists.sourceforge.net]
Sent: Monday, July 08, 2002 3:04 PM
To: netsaint-users at lists.sourceforge.net
Subject: Netsaint-users digest, Vol 1 #1383 - 5 msgs


Send Netsaint-users mailing list submissions to
	netsaint-users at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/netsaint-users
or, via email, send a message with subject or body 'help' to
	netsaint-users-request at lists.sourceforge.net

You can reach the person managing the list at
	netsaint-users-admin at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netsaint-users digest..."


Today's Topics:

   1. RE: 3D Status Map (Martin Mielke (THALES))
   2. (no subject) (Phil Roy)
   3. 3D Status Map - relationships (Martin Mielke (THALES))
   4. Monitoring NT Printers (Nik Engel)
   5. check_snmp on solaris 8 (Bishop, Dean)

--__--__--

Message: 1
From: "Martin Mielke (THALES)" <mmielke at firstdataiberica.com>
To: "Netsaint-Users" <netsaint-users at lists.sourceforge.net>
Subject: RE: [netsaint] 3D Status Map
Date: Mon, 8 Jul 2002 11:16:34 +0200

Hello again,

I already solved the problem posted some days ago.
Now I have another question: is there any reason why I can't see the
connections between the hosts? (as shown in the screenshots)


Thanks,

Martin



--__--__--

Message: 2
From: "Phil Roy" <phil at roysys.com.au>
To: <netsaint-users at lists.sourceforge.net>
Date: Mon, 8 Jul 2002 20:52:59 +1000
Subject: [netsaint] (no subject)

This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C226C1.74D42900
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I'm interested in having a different check interval for when a service
is in a Hard Down state, than for when it is in a Hard O.K state. Due to
the cost of the network traffic required to perform the checks, I want
to check the service every 10 minutes when everything is O.K, but when
the service goes hard down, I want to check the service every minute.
The documentation clearly does not distinguish between the check
interval for OK and Down states, it's the same. Does anyone know a way
to do what I want to?
I'm running Netsaint 0.0.7 on RedHat 7.2.

Thanks,

Phil.
 


------=_NextPart_000_0001_01C226C1.74D42900
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4630.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P ALIGN=3DLEFT><SPAN LANG=3D"en-au"><FONT SIZE=3D2 =
FACE=3D"Arial">I’m interested in having a different check interval =
for when a service is in a Hard Down state, than for when it is in a =
Hard O.K state. Due to the cost of the network traffic required to =
perform the checks, I want to check the service every 10 minutes when =
everything is O.K, but when the service goes hard down, I want to check =
the service every minute. The documentation clearly does not =
distinguish</FONT></SPAN><SPAN LANG=3D"en-au"></SPAN><SPAN =
LANG=3D"en-au"> <FONT SIZE=3D2 FACE=3D"Arial">between</FONT></SPAN><SPAN =
LANG=3D"en-au"></SPAN><SPAN LANG=3D"en-au"> <FONT SIZE=3D2 =
FACE=3D"Arial">the check interval for OK and Down states, it’s the =
same. Does anyone know a way to do what I want to?</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"en-au"><FONT SIZE=3D2 =
FACE=3D"Arial">I’m running Netsaint 0.0.7 on RedHat =
7.2.</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"en-au"><FONT SIZE=3D2 =
FACE=3D"Arial">Thanks,</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"en-au"><FONT SIZE=3D2 =
FACE=3D"Arial">Phil.</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"en-au"></SPAN><A NAME=3D""><SPAN =
LANG=3D"en-au"><FONT SIZE=3D2 FACE=3D"Arial"></FONT></SPAN></A><SPAN =
LANG=3D"en-au"></SPAN><SPAN LANG=3D"en-au"></SPAN><SPAN =
LANG=3D"en-au"> </SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"en-au"></SPAN></P>

</BODY>
</HTML>
------=_NextPart_000_0001_01C226C1.74D42900--




--__--__--

Message: 3
From: "Martin Mielke (THALES)" <mmielke at firstdataiberica.com>
To: "Bishop Dean" <dean.bishop at tcdsb.org>,
	 "Netsaint-Users" <netsaint-users at lists.sourceforge.net>
Date: Mon, 8 Jul 2002 13:34:14 +0200
Subject: [netsaint] 3D Status Map - relationships

Hello,

even without still being able to see the connection lines between hosts, I'm
now wondering how to stablish the relationships among network objects: which
computers hang on which router, etc, etc...
Right now the NetSaint server is the starting point for all lines when
showing the 2D-Status Map...


Thanks,

Martin



--__--__--

Message: 4
Date: Mon, 8 Jul 2002 16:17:02 +0200
From: Nik Engel <netsaint-users at lists.netways.de>
To: netsaint-users at lists.sourceforge.net
Reply-To: nengel at netways.de
Organization: NETWAYS
Subject: [netsaint] Monitoring NT Printers

Hi !=20
I have three Printers which are connected to a NT Server. Those Printers
are connected via tcp/ip via a printserver. I cannot monitor the devices
via the printserver (SNMP) so i have to do it via win2000. Is there a
way the see if the printer is online ... ?=20


__________________________________________________________
Nik Engel                     NETWAYS GmbH
Senior Systems Engineer       Deutschherrnstr. 47a
Fon.0911/92885-13             D-90429 N=FCrnberg
Fax.0911/92885-33
nengel at netways.de             www.netways.de



--__--__--

Message: 5
From: "Bishop, Dean" <dean.bishop at tcdsb.org>
To: "'netsaint-users at lists.sourceforge.net'"
	 <netsaint-users at lists.sourceforge.net>
Date: Mon, 8 Jul 2002 12:48:53 -0400 
Subject: [netsaint] check_snmp on solaris 8

Good morning,

  i am just moving my netsaint installation from a redhat 7.3 box to a
solaris 8 box.  i have run into a few snags that were fairly easy to fix
thanks to this list and others but this one has me stumped.


# ./check_snmp -H 10.1.4.23 -C public -o enterprises.9.2.1.58.0 SNMP problem
- No data recieved from host
CMD: /usr/local/ucd-snmp/bin/snmpget -m ALL -v 1 10.1.4.23 public
enterprises.9.2.1.58.0
# /usr/local/ucd-snmp/bin/snmpget -m ALL -v 1 10.1.4.23 public
.1.3.6.1.4.1.9.2.1.58.0
enterprises.9.2.1.58.0 = 32
# /usr/local/ucd-snmp/bin/snmpget -m ALL -v 1 10.1.4.23 public
enterprises.9.2.1.58.0
enterprises.9.2.1.58.0 = 32

As you can see, if i use the plugin, i don't get the data even though the
plugin appears to be calling the command properly.  And as you can also see
if i issue the snmpget command from the prompt, i get the expected response.

thanks in advance,
dean



--__--__--

_______________________________________________
Netsaint-users mailing list
Netsaint-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netsaint-users


End of Netsaint-users Digest




More information about the Help mailing list