Initial commit.

This commit is contained in:
2021-05-24 22:18:33 +03:00
commit e2954d55f4
3701 changed files with 330017 additions and 0 deletions

77
snmp/snmpd.conf Normal file
View File

@@ -0,0 +1,77 @@
###############################################################################
#
# snmpd.conf:
# An example configuration file for configuring the ucd-snmp snmpd agent.
#
###############################################################################
syscontact "Bogdan Stoica <bogdan@898.ro>"
syslocation "Bucharest, Romania"
sysname zira.898.ro
sysservices 15
agentAddress udp:161
# sec.name source community
com2sec local localhost public
com2sec mynetwork 192.168.1.0/24 public
com2sec edgemax 86.104.210.218 Z2O0jHAU4YKa1D10TPxuWQ
com2sec librenms 10.208.1.202 Z2O0jHAU4YKa1D10TPxuWQ
# Second, map the security names into group names:
# sec.model sec.name
#group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
#group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup v2c edgemax
####
# Third, create a view for us to let the groups have rights to:
# incl/excl subtree mask
view all included .1 80
####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:
# context sec.model sec.level match read write notif
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
# nginx
proc nginx
#hard disk partitions
disk /
#mibs +FORTINET-FORTIGATE-MIB:FORTINET-CORE-MIB
### librenms ###
# os update
extend osupdate /etc/snmp/os-updates
# postfix
extend postfixdetailed /etc/snmp/postfixdetailed
extend mailq /etc/snmp/postfix-queues
# bind
extend bind /etc/snmp/bind
# mysql
extend mysql /etc/snmp/mysql
# nginx
extend nginx /etc/snmp/nginx-nms
# php-fpm
extend phpfpmsp /etc/snmp/phpfpm-sp
# fail2ban
extend fail2ban /etc/snmp/fail2ban -f /bin/fail2ban-client
# distro
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro