I need to get Nagios to process snmp traps that arrive on the same machine that is running Nagios. All the docs, and forum posts discuss performing this operation on multiple machines. I have tried to configure my server with nsca/send_nsca to work within itself. Is that the right way to go? If so, what do I need in submit_check_result. In this config, it seems to be used for 2 purposes. The first to submit trap data to Nagios, and the second to check for the trap data.
So far, I have been able to echo data into send_nsca and that appears in nagios.cmd.
If anyone is running Nagios this way, can you please post what you are using in checkcommands and the service definition?