Problems with Nagios? Or is it my machine?

Kirk Strauser kirk at
Wed Aug 27 08:23:44 PDT 2003

I use Nagios to monitor various servers on my LAN and on clients' networks.
I'm having problems with the check_nntp plugin as of upgrading my Nagios
port on 2003-08-27:

    root at kanga:~# /usr/local/libexec/nagios/check_tcp -H virtual2 -p 119
    TCP OK -   0.004 second response time on port 119|time=  0.004

    root at kanga:~# /usr/local/libexec/nagios/check_nntp -H virtual2
    Bus error (core dumped)

`check_nntp' is actually a symlink to `check_tcp'; the relevant portion of
check_tcp.c is:

    else if (strstr (argv[0], "check_nntp")) {
            asprintf (&progname, "check_nntp");
            asprintf (&SERVICE, "NNTP");
            SEND = NULL;
            EXPECT = NULL;
            server_expect = realloc (server_expect, ++server_expect_count);
            asprintf (&server_expect[server_expect_count - 1], "200");
            server_expect = realloc (server_expect, ++server_expect_count);
            asprintf (&server_expect[server_expect_count - 1], "201");
            asprintf (&QUIT, "QUIT\r\n");
            PORT = 119;

I know that bus errors usually aren't Good Things, but I'm only seeing them
with this one program, and only when it's called as `check_nntp'.  Before I
submit a PR, is there anything on my system that could cause that error?
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list