The Fortinet KB Article for Configuring SNMP Access to a Fortigate Firewalll
https://docs.fortinet.com/document/fortigate/7.2.4/administration-guide/62595/snmp
Confirm your version of FortiOS to make sure you are following the directions for the correct version.