Create Environmental Variable for Nagios Plugins

I am currently setting up check_mssql_health according to the documentation you can set some environmental variables, in LibreNMS would I add those to the /opt/librenms/.env file?

The environment variables are:

  • NAGIOS__SERVICEMSSQL_HOST (_mssql_host in the servicedefinition)
  • NAGIOS__SERVICEMSSQL_USER (_mssql_user in the servicedefinition)
  • NAGIOS__SERVICEMSSQL_PASS (_mssql_pass in the servicedefinition)
  • NAGIOS__SERVICEMSSQL_PORT (_mssql_port in the servicedefinition)
  • NAGIOS__SERVICEMSSQL_SERVER (_mssql_server in the servicedefinition)

I’m assuming I would just add:
(Assuming I’m reading everything correctly)

NAGIOS__SERVICEMSSQL_USER = someusername

Thanks for your help.