We had installed NSTI following this guide:
https://support.nagios.com/kb/article/s ... ng-93.html
https://support.nagios.com/kb/article/n ... s-418.html
We had problem with database mysql and we apply this:
Danger
If the installer ran successfully the first time the following section does not apply. It is only relevent if any errors occured or if you are installing NSTI manually.
To run NSTI correctly it is important that you have your mysql set up correctly so NSTI can read and write data from the database. The most common problem with NSTI not communicating properly with your mysql database is the root user password settings. It is recommended that you set the password if the install script failed to do so.
The nsti.py file is located here:
nsti/etc/nsti.py
This is where you will set your database type, host, name, user and password. To test if you succesfully configured your database use the runserver.py in the nsti directory. It will output any connection errors and you will be able to adjust settings accordingly.
Another point to be made is that you will need to verify that the database NSTI is writing to was created. If it wasn’t you will recieve similar errors to the following:
Warning
ERROR 1049 (42000): Unknown database ‘snmptt’
Unable to add database schema. Does the snmptt exist?
This means that the installer did not create the database so you will need to run the installer again or manually add the database that will be written to, create the root user and use the password ‘password’ to make sure it is working. The default database is Snmptt.
-----------------
This solution showed this:
We changed permission on /nsti and we got the same error.
Idea is to get snmp traps like logs for a customer.
We are partner of Nagios.
Thanks in advance.