Hi.

I'm using nsca-ng to submit passive check results to Icinga, and I think
I've found a problem with submitting host check results. If I do:

    echo -e "$HOSTNAME\t0\t$HOSTNAME is up" | send_nsca …

The server logfile says:

Apr  9 02:37:55 ip-10-226-139-51 nsca-ng[4776]: [WARNING] Refusing data from 
[email protected] (ID: 0H+53yGu): [1365475559] 
PROCESS_HOST_CHECK_RESULT;hostname;0;hostname is up

…even though I have set "services = '.+@.*'" in the config file (I had
"services = '.*'" earlier, I changed it to see if it would help). There
are no other relevant messages in the log; in particular, no warnings
from auth.c:is_authorized() are logged.

Looking at the code of is_authorized, I don't understand how host check
results are allowed, and I don't understand where and how the following
behaviour described in nsca-ng.cfg(5) is implemented:

    «If a specified string includes one or more at signs (“@”), only the
    part preceding the last of these at signs is matched against the
    “service description” field.  The part following  this  at sign  is
    used  as  a separate pattern which is matched against the “host
    name” field of the same command.  A service check result is then
    accepted only if both matches succeed for a given command.»

I may be missing something obvious, but I would appreciate any advice
about how to get this working.

Thanks.

-- Abhijit

Reply via email to