To set up NetAudit within Opsview Monitor, you will need to configure the hosts to be audited as well as the email address that should be used to send notifications about any configuration changes for the given hosts.
Configuring a Host Copied
For Opsview Monitor to back up the configuration file of a Host, you need to:
Go to Configuration > Hosts.
For the chosen host, use the contextual menu and click Edit.
On the Host tab go to the Advanced area and set “Monitored By” to monitoring cluster that will handle NetAuditing. If you have NetAudit Collectors on separate servers, you need to create a Monitoring Cluster that includes these NetAudit Collectors.
Go to the NetAudit tab and enable the Use NetAudit checkbox and enter the relevant information in the fields that get enabled.
You can enable ‘Use Autoenable’ if your network device has the option configured.
Clicking on ‘Test connection’ will test the connection to the host using the information specified. In a multi-cluster system, Opsview will attempt to connect to the host via the cluster specified in the monitored by field.
Check that the output proves that the connection details are valid.
If you encounter failures here, please re-confirm the authentication details before re-testing. For security reasons, only standard output will be displayed - further diagnostic data will be logged to Syslog.
If you receive the message “No data from Test Connection”, this could be because the package opsview-netaudit-collector has not been installed on the collector. This will be displayed in the Syslog:
May 5 13:25:07 ba-acc-clustered-env4-orch ./opsview-web-server: [2020/05/05 13:25:07] [Opsview.Web.Controller.REST.Config.Host] [Opsview::Web::Controller::REST::Config::Host::test_rancid_connection:1176] [WARN] Error from running test_rancid_connection: return_code=2, stdout='', stderr='(No stdout returned) : [Errno 2] No such file or directory: '/opt/opsview/netauditcollector/bin''
Note, if you are using Autoenable you will need to enter the enable password immediately after the password in ‘Password:’. For example, if your telnet password is ’letmein’ and your enable password is ’enpass’, then in the Password field you would enter:
Click Submit and your configuration is saved.
Go to Configuration > Apply Changes menu to set this new monitoring configuration to production.
Setting up Notification Emails Copied
Go to the Configuration > My System page and click “Options” tab where you can enter an email address for “NetAudit Notification Email”.
If the email needs to be sent to more than one person, you need to use an alias.
Once done, click Submit Changes and make sure to go to Configuration > Apply changes to set this new configuration change onto production.
If you encounter any problems, please check the Troubleshooting NetAudit page.