<div dir="ltr"><div>Rodrigo</div><div><br></div><div>Disclaimer: I don't use xymonproxy, so I'm having a bit of a guess as to what might be wrong and what to look for.</div><div><br></div>Typically xymonproxy is allowed to send messages to STDOUT and STDERR, which are redirected by the LOGFILE parameter in tasks.cfg to $XYMONSERVERLOGS/xymonproxy.log (same directory as xymond.log, on my servers it's /var/log/xymon/). However it can be run with the "--logfile <filepath>" switch, to specify another location.<div><br></div><div>The errprintf() function calls send to STDERR, so should go to the logfile, whatever that is. Perhaps if you run something like, "sudo lsof -p `pgrep -f xymond_proxy`" you will be able to see what filename is bound to file descriptors 1 and 2.</div><div><br></div><div>It could be that there's not a lot of logging going on anyway. Perhaps edit tasks.cfg and edit the entry for [xymonproxy] to append "--debug" onto the CMD command line, to increase the chance of getting a log entry. Failing that (or as well as), append an invalid switch value (eg "--listen=999.999.999.999:999") so that it has no choice to log an error and die. Or even simpler, send a HUP signal to the process, which should cause the message "Caught SIGHUP, reopening logfile" to be logged.</div><div><br></div><div>I'd expect it to log "Attempting recovery from write error" or "Connect to server failed: <servername> - retrying" in your situation. But it could be that a failed connection is not detected until the next time a message is ready to be sent to the server.</div><div><br></div><div>Could it be possible that the USR1 signal was sent to the process at some point? Apparently this toggles the logging of details, and without this logging, you might not see as much.</div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 12 May 2020 at 10:16, Rodrigo Borges Pereira <<a href="mailto:rodrigoborgespereira@gmail.com">rodrigoborgespereira@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi there,<div><br></div><div>So, I'm trying to run xymonproxy as a standalone daemon, to facilitate the broadcast of status messages to multiple xymon servers with a single local machine listener.</div><div><br></div><div>And that is working very well, I must say.</div><div><br></div><div>But.. if one of the xymon servers is unreachable.. (I'm testing with an iptables DROP on the server side) I don't see any errors at all from xymonproxy. Even running it in foreground in the shell, nada.</div><div><br></div><div>I've looked at the code on GitHub, and I do see some errprintf calls I would expect would result in some output in this type of situation.</div><div><br></div><div>Am I missing something?</div><div><br></div><div>Appreciate any pointers, thanks in advance.</div><div><br></div><div>Rodrigo</div><div><br></div><div><br></div></div>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div>