Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
monitor:syslog [2016/11/19 03:29] – Example top usage for monitoring sbbs threads. digital manmonitor:syslog [2023/01/23 13:52] (current) – [Monitoring] Example journalctl and systemctl cmd-lines digital man
Line 1: Line 1:
-====== Synchronet Daemon (UNIX) ======+====== syslog (UNIX) ======
  
-===== Monitoring Node Status ===== +Synchronet for *nix-like OSes can send its server and services output to your system's ''[[wp>syslog]]'' facility (e.g. ''rsyslogd'' on Debian Linux). When running ''sbbs'' as a daemon, syslog-output is automatically enabled. When running ''sbbs'' interactively (not daemonized), syslog output can be enabled by passing the ''syslog'' command-line option to ''sbbs'':
-  $watch /sbbs/exec/node list+
  
-<code>   +  $ sbbs syslog
-Every 2.0s: /sbbs/exec/node list+
  
-Synchronet Node Display/Control Utility v1.22+===== Configuring ===== 
  
-Node  1: User #1 posting message via telnet (MP) [U] +The syslog functionality is configurable via the ''LogFacility'' (default: ''U'') and ''LogIdent'' (default: ''synchronet''values of the ''[[config:nix|[UNIX]]]'' section of your ''[[dir:ctrl]]/[[config:sbbs.ini]]'' file.
-Node  2: Waiting for connection +
-Node  3Waiting for connection +
-Node  4: Waiting for connection +
-Node  5: Waiting for connection +
-Node  6: Waiting for connection +
-Node  7: Waiting for connection +
-Node  8: Waiting for connection +
-Node  9: Waiting for connection +
-Node 10: Waiting for connection +
-</code>+
  
-===== Monitoring Log Messages =====+You can further configure your syslog output (e.g. directories and filenames) through the setup of your system's syslog facility (e.g. via the ''/etc/rsyslogd.conf'' file on Debian Linux). 
 + 
 +===== Monitoring =====
 The ''syslog'' output of the Synchronet daemon will usually go to a file in your ''/var/log'' directory. You can monitor real-time changes to this file with the ''tail -f'' command. The ''syslog'' output of the Synchronet daemon will usually go to a file in your ''/var/log'' directory. You can monitor real-time changes to this file with the ''tail -f'' command.
 +  $ tail -f /var/log/sbbs.log
  
-  $tail -f /var/log/messages +If you're using **systemd** to start and control ''sbbs'', you can use ''journalctl'' to monitor the log (with colorized log lines) in real-time: 
-   +  $ journalctl --follow -u sbbs
-===== Monitoring Socket Usage =====   +
-  $watch 'netstat -nap | grep /sbbs'+
  
-===== Monitoring Threads ===== +Another option for systemd systems is to use ''systemctl'' together with ''watch'' to monitor both the service status and log output together in real-time: 
-  $top -o -COMMAND -H -p "$(pgrep sbbs)"+  $ sudo watch systemctl status sbbs
      
 +An alternative tool to actively monitor log files is the ''lnav'' utility:
 +
 +  $ sudo lnav /var/log/logfile
 + 
 +
 ===== See Also ===== ===== See Also =====
   * [[:monitor:|Monitoring]]   * [[:monitor:|Monitoring]]
 +  * [[:config:nix|UNIX Configuration]]
  
-{{tag>unix syslog node}}+{{tag>unix syslog}}
  
 {{indexmenu_n>4}} {{indexmenu_n>4}}