-->

DEVOPSZONES

  • Recent blogs

    Snmp Connection messages filling up the messages file in RHEL 7

    Error:Snmp Connection messages filling up the messages file in RHEL 7

    snmpd[4557]: Connection from UDP:



    Solution:
    1. Change the log level in snmpd configuration.
    [root@example yum.repos.d]# cat /usr/lib/systemd/system/snmpd.service
    [Unit]
    Description=Simple Network Management Protocol (SNMP) Daemon.
    After=syslog.target network.target

    [Service]
    Type=notify
    Environment=OPTIONS="-LS0-2d"    ---> Change the Log Level.
    EnvironmentFile=-/etc/sysconfig/snmpd
    ExecStart=/usr/sbin/snmpd $OPTIONS -f
    ExecReload=/bin/kill -HUP $MAINPID

    [Install]
    WantedBy=multi-user.target
    [root@example yum.repos.d]#

    2. Change the /etc/rsyslog.conf file. remove the *.info from this line.
    *.warn;mail.none;authpriv.none;cron.none;;local0.none                /var/log/messages

    3. service rsyslog restart

    No comments