[Nagios-devel] NSCA: handle_connection_read() ->

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] NSCA: handle_connection_read() ->

Post by Guest »

Instead of simply logging:

syslog(LOG_DEBUG,"Connection from %s port
%d",inet_ntoa(nptr->sin_addr),nptr->sin_port);

Could we adjust calls to write_check_result() to pass nptr-> struct and
log the remote IP assocaited with a message to each line of
/var/spool/nagios/rw/nsca.dump

To be clear: we want to write net_ntoa(nptr->sin_addr) only to the log,
not the nagios.cmd socket.

That would improve debugging on busy evnvironments. I'll try it after
class.

~~BAS





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked