In order to add Logsign to the monitoring product, we need to do the following steps.
1- First of all , connect to the server via cli and install snmp and snmpd services.
# sudo apt-get install snmp
# sudo apt-get install snmpd
2- The snmpd.conf file under cd /etc/snmp/ is backed up and the conf file is changed as follows.
rocommunity "community value is written"
com2sec local localhost "community value is written" group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
view all included .1 80
access MyRWGroup "" any noauth exact all all none
com2sec notConfigUser default mrtg
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .22.214.171.124.2.1.1
view systemview included .126.96.36.199.188.8.131.52.1
view systemview included .1 80 access notConfigGroup "" any noauth exact systemview none none syslocation "product name"
syscontact Ubuntu.gr email@example.com
3- The information in the nano/etc/default/snmpd file is backed up and changed as follows.
This file controls the activity of snmpd and snmptrapd
MIB directories. /usr/share/snmp/mibs is the default, but
including it here avoids some strange problems.
snmpd control (yes means start daemon).
snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid ' # snmptrapd control (yes means start daemon). As of net-snmp version
5.0, master agentx support must be enabled in snmpd before snmptrapd # can be run. See snmpd.conf(5) for how to do this.
snmptrapd options (use syslog).
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'
create symlink on Debian legacy location to official RFC path SNMPDCOMPAT=yes
4- Restart snmpd service and add Logsign to monitoring device as integration.
# service snmpd restart