Script Configuration
The script needs a configuration file where it can be read by the Bacula DIR user. We suggest copying the provided example configuration to a suitable location:
# cp -a ITS-*.py /usr/local/lib/python3.9/site-packages/pysnmp/smi/mibs # chown root. /usr/local/lib/python3.9/site-packages/pysnmp/smi/mibs/ITS-* # chmod 644 /usr/local/lib/python3.9/site-packages/pysnmp/smi/mibs/ITS-* cp -iv bsnmp.conf /opt/bacula/etc/ chown bacula. /opt/bacula/etc/bsnmp.conf
The configuration needs to be adapted. Using your favourite plain text editor, edit it:
[thisengine] snmp_version = Valid values are 1, 2c or 3 username = USM user name on TRAP/INFORM receiver system authkey = passphrase used to generate the SNPMv3 authkey privkey = passphrase used to generate the SNPMv3 privkey [target] ipv4 host = DNS or IP address of trap receiver. IPv4 only udp port = 162
The information to put will, naturally, be very site specific and may need to be provided by a different team/person. Note that, at this time:
SNMPv1, SNMPv2c and SNMPv3 are supported. It is strongly recommended to use SNMPv3.
only the USM scheme is supported (we may support more in the future, but USM still seems to be the typical case)
only HMAC-SHA authentication and AES-CFB-128 encryption are supported. This will probably be extended in the future.
only UDP transport is supported. This should not be a problem. The port number is optional, default is 162, which is the assigned port number, and thus should not need modification in most cases.
See also
Previous articles:
Next articles:
Go back to: Bacula Simple Network Management Protocol (bsnmp).