{"id":337,"date":"2011-11-25T19:12:23","date_gmt":"2011-11-25T17:12:23","guid":{"rendered":"http:\/\/www.lostmind.de\/blog\/2011\/11\/25\/patton-sn4638-debuggen-einrichten-des-syslog-daemons-2\/"},"modified":"2012-10-28T06:23:41","modified_gmt":"2012-10-28T04:23:41","slug":"debugging-the-patton-sn4638-setting-up-the-syslog-daemon","status":"publish","type":"post","link":"https:\/\/www.lostmind.de\/blog\/en\/2011\/11\/25\/debugging-the-patton-sn4638-setting-up-the-syslog-daemon\/","title":{"rendered":"Debugging the PATTON SN4638: Setting up the syslog-daemon"},"content":{"rendered":"<p>If the PATTON SN4638 does something it should not (although it is running a seemingly correct configuration) a debug-session can come in handy. The SN4638 supports debug output only via syslog. The fact that I could not find any useful information with a straight search on Google has made me write this short explanation.<\/p>\n<p>On the server machine (in this example Ubuntu where rsyslogd is the standard syslog daemon) open the file<\/p>\n<pre>\/etc\/default\/rsyslog<\/pre>\n<p>and check for the following line:<\/p>\n<pre>RSYSLOGD_OPTIONS=\"-c5\"<\/pre>\n<p>If it looks different you will have to change it according to the line above.<\/p>\n<p>Next open the file<\/p>\n<pre>\/etc\/rsyslog.conf<\/pre>\n<p>and find the following lines:<\/p>\n<pre># provides UDP syslog reception\r\n#$ModLoad imudp\r\n#$UDPServerRun 514<\/pre>\n<p>Change them to look like this:<\/p>\n<pre># provides UDP syslog reception\r\n$ModLoad imudp\r\n$UDPServerRun 514<\/pre>\n<p>Save and exit.<\/p>\n<p>Run these commands in a terminal window:<\/p>\n<pre>$ sudo su -\u00a0\r\n# cat \/dev\/null &gt; \/var\/log\/syslog\r\n# service rsyslog restart<\/pre>\n<p>This clears the current syslog and restarts the syslog daemon using root credentials.<\/p>\n<p>Next open the web interface of the SN4638 in a browser.<\/p>\n<p>Under\u00a0<em>Various \u2192 Syslog<\/em>\u00a0enter the\u00a0IP address of the server machine in the <em>Host<\/em>\u00a0field and put the number <em>514 <\/em>in the\u00a0<em>Port<\/em>\u00a0field. Press the enter key.<\/p>\n<p>A new entry is now available. Click on the IP address.<\/p>\n<p>Under\u00a0<em>Facility<\/em>\u00a0select the entry <em>sip\u00a0<\/em>in the dropdown menu\u00a0and under\u00a0<em>Severity<\/em>\u00a0select the entry\u00a0<em>debug<\/em>. Click on the\u00a0<em>create icon<\/em>.<\/p>\n<p>Under\u00a0<em>Facility<\/em>\u00a0select the entry\u00a0<em>isdn<\/em>\u00a0in the dropdown menu and under\u00a0<em>Severity<\/em>\u00a0select the entry\u00a0<em>debug<\/em>.\u00a0Click on the\u00a0<em>create icon<\/em>.<\/p>\n<p>You will find the messages on the sever machine in the file<\/p>\n<pre>\/var\/log\/syslog<\/pre>\n<p>Please note: the file grows fast! Make sure to disable syslog output in the web interface of the SN4638 after the debug session!<\/p>\n<p>Source:\u00a0<a
href=\"http:\/\/os4.org\/wiki\/rsyslog.html\" target=\"_blank\">http:\/\/os4.org\/wiki\/rsyslog.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If the PATTON SN4638 does something it should not (although it is running a seemingly correct configuration) a debug-session can come in handy. The SN4638 supports debug output only via syslog. The fact that I could not find any useful &hellip; <a
href=\"https:\/\/www.lostmind.de\/blog\/en\/2011\/11\/25\/debugging-the-patton-sn4638-setting-up-the-syslog-daemon\/\">Weiterlesen <span
class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/posts\/337"}],"collection":[{"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/comments?post=337"}],"version-history":[{"count":2,"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/posts\/337\/revisions"}],"predecessor-version":[{"id":338,"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/posts\/337\/revisions\/338"}],"wp:attachment":[{"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/media?parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/categories?post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lostmind.de\/blog\/wp-json\/wp\/v2\/tags?post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}