Page 1 of 1

NSTI

Posted: Tue Oct 19, 2021 11:16 am
by dario.leon
Hi,

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:

Image

Image

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.

Re: NSTI

Posted: Wed Oct 20, 2021 9:26 am
by ssax
EDIT: NSTI is not meant to be run on the XI server, it was meant to be run on a separate server so that it doesn't impact the XI functionality.

Running through that on any recent XI may have broken your SNMPTT configuration in XI that we'll need to fix as XI has NXTI (NSTI is an old product).

What version of XI are you running?

If you have the enterprise license add-on this would be what you would follow:

https://assets.nagios.com/downloads/nag ... h-NXTI.pdf

If you don't have the enterprise add-on this would be the one you would follow:

https://assets.nagios.com/downloads/nag ... ios_XI.pdf

Please run this command as root and send me the resulting /tmp/SNMPFILES.tar.gz file:

Code: Select all

GZIP=-9 tar czvf /tmp/SNMPFILES.tar.gz /etc/snmp /usr/share/snmp/mibs

Re: NSTI

Posted: Wed Oct 20, 2021 7:46 pm
by dario.leon
NSTI is on other server, We are looking for watch all traps like logs.

Re: NSTI

Posted: Thu Oct 21, 2021 1:32 pm
by ssax
What OS/version is the NSTI system running?

Code: Select all

uname -a
cat /etc/*release
EDIT: NSTI only supports RHEL/CENT 5 or 6 or Debian 6 so you will need to install on one of them. NSTI is no longer being updated so it will not receive any more bugfixes or any new compatibility updates for later OS versions.

Re: NSTI

Posted: Thu Oct 21, 2021 7:26 pm
by dario.leon
Thanks, I have installed this on Centos 7, I will try on Centos 6 and tell you.

Thanks for your help.

Re: NSTI

Posted: Fri Oct 22, 2021 2:52 pm
by benjaminsmith
Thanks, I have installed this on Centos 7, I will try on Centos 6 and tell you.
Sounds good. We'll keep this open.