Score:0

my rsyslog not listening in the port

cn flag

I have a librenms that is not collecting the syslogs, so it seems that it is not listening through the port. I copy the /etc/rsyslog.conf and the ports it listens to see if you see something wrong

>     # /etc/rsyslog.conf configuration file for rsyslog
> #
> # For more information install rsyslog-doc and see
> # /usr/share/doc/rsyslog-doc/html/configuration/index.html
> 
> 
> #################
> #### MODULES ####
> #################
> 
> module(load="imuxsock") # provides support for local system logging
> #module(load="imklog") # provides kernel logging support
> #module(load="immark") # provides --MARK-- message capability
> 
> # provides UDP syslog reception
> #module(load="imudp")
> #input(type="imudp" port="514")
> 
> # provides TCP syslog reception module(load="imtcp") input(type="imtcp" port="514")
> 
> ##################
> #### LibreNMS ####
> ##################
> 
> $ModLoad imudp $UDPServerRun 514
> 
> ###########################
> #### GLOBAL DIRECTIVES ####
> ###########################
> 
> #
> # Use traditional timestamp format.
> # To enable high precision timestamps, comment out the following line.
> # $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
> 
> #
> # Set the default permissions for all log files.
> # $FileOwner root $FileGroup adm $FileCreateMode 0640 $DirCreateMode 0755 $Umask 0022
> 
> #
> # Where to place spool and state files
> # $WorkDirectory /var/spool/rsyslog
> 
> #
> # Include all config files in /etc/rsyslog.d/
> # $IncludeConfig /etc/rsyslog.d/*.conf
> 
> 
> ###############
> #### RULES ####
> ###############
> 
> #
> # First some standard log files. Log by facility.
> # auth,authpriv.* /var/log/auth.log
> *.*;auth,authpriv.none -/var/log/syslog
> #cron.* /var/log/cron.log daemon.* -/var/log/daemon.log kern.* -/var/log/kern.log lpr.* -/var/log/lpr.log mail.* -/var/log/mail.log user.* -/var/log/user.log
> 
> #
> # Logging for the mail system. Split it up so that
> # it is easy to write scripts to parse these files.
> # mail.info -/var/log/mail.info mail.warn -/var/log/mail.warn mail.err /var/log/mail.err
> 
> #
> # Some "catch-all" log files.
> #
> *.=debug;\ auth,authpriv.none;\ news.none;mail.none -/var/log/debug
> *.=info;*.=notice;*.=warn;\ auth,authpriv.none;\ cron,daemon.none;\ mail,news.none -/var/log/messages
> 
> #
> # Emergencies are sent to everybody logged in.
> #
> *.emerg :eek:musrmsg:*
> 
> #################################################
> ###
> ### Reglas para el almacenamiento de logs
> ###
> #################################################
> 
> $template RemoteLogs,"/var/log/remote/%HOSTNAME%/%PROGRAMNAME%.log" &
> stop
> *.* ?RemoteLogs



lsof -i -P -n | grep LISTEN
nginx 194 root 6u IPv4 30405303 0t0 TCP *:80 (LISTEN)
nginx 196 www-data 6u IPv4 30405303 0t0 TCP *:80 (LISTEN)
nginx 198 www-data 6u IPv4 30405303 0t0 TCP *:80 (LISTEN)
mysqld 203 mysql 18u IPv4 30552527 0t0 TCP *:3306 (LISTEN)
nginx 207 www-data 6u IPv4 30405303 0t0 TCP *:80 (LISTEN)
nginx 210 www-data 6u IPv4 30405303 0t0 TCP *:80 (LISTEN)
master 383 root 13u IPv4 30405510 0t0 TCP 127.0.0.1:25 (LISTEN)
master 383 root 14u IPv6 30405511 0t0 TCP [::1]:25 (LISTEN)
sshd 62309 root 3u IPv4 191349594 0t0 TCP *:22 (LISTEN)
sshd 62309 root 4u IPv6 191349605 0t0 TCP *:22 (LISTEN)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.