check_nt problem

jeff vier jeff.vier at tradingtechnologies.com
Mon Mar 22 21:34:13 CET 2004


On Mon, 2004-03-22 at 12:22, Andreas Ericsson wrote:
> Try diffing all the files it #include's too (you might need to revert to 
> older kernel headers for that), as well as the files it's linked to.
> If nothing is different there, then it can only be compiler error.

Hrm.  I don't have the old cvs source that I compiled from (I could
guess on dates from cvs, but I don't want guess wrong and waste time
there), so I can only diff from [a slightly patched for mysql
functionality] 1.4.0a -> current cvs.

I can compile the [patched] v1.4.0a plugin set and it works fine, and
there are no differences between the two versions of check_nt.c

Of the three #include'd files
common.h are the same.
utils.h has a few additional lines:
----
@@ -92,6 +92,18 @@
  int maxp,
  long int maxv);

+char *fperfdata (const char *label,
+ double val,
+ const char *uom,
+ int warnp,
+ double warn,
+ int critp,
+ double crit,
+ int minp,
+ double minv,
+ int maxp,
+ double maxv);
+
 /* The idea here is that, although not every plugin will use all of 
----
That looks innocuous (to me).

netutils.h:
----
@@ -47,7 +47,10 @@

 int my_tcp_connect (const char *address, int port, int *sd);
 int my_udp_connect (const char *address, int port, int *sd);
-int mya_connect (const char *address, int port, int *sd, int proto);
+
+int send_tcp_request (int sd, const char *send_buffer, char
*recv_buffer, int recv_size);
+int send_udp_request (int sd, const char *send_buffer, char
*recv_buffer, int recv_size);
+int send_request (int sd, int proto, const char *send_buffer, char
*recv_buffer, int recv_size);

 int is_host (const char *);
 int is_addr (const char *);
----
Now *that* looks suspicious (to me, anyway).

> Try running gdb on it. It should give you some pointers.

yeah, I tried that and ldd - both run clean.  I don't know gdb well
enough to deal with much if it doesn't segfault (which, unfortunately,
this doesn't.  exits cleanly (with an errorcode of 1, but that doesn't
tell me anything :))

Alas, I'm not much of a C coder.

Is there anything specific I should do in gdb that might be a little
more informative (to me or someone who knows what they're looking at)?



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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





More information about the Users mailing list