We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

NSTI for Ubuntu

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

NSTI for Ubuntu

Postby zpole » Wed Dec 22, 2021 4:58 pm

Let me preface this by saying I'm somewhat of a Nagios and Linux newbie.

I'm trying to implement the NSTI addon for Nagios Core 4.4.6 on Ubuntu 20.04, but all of the guides and I've been able to find online are for the Yum package manager and aren't compatible with Ubuntu's Apt. Even the official GitHub repository (https://github.com/NagiosEnterprises/nsti) is missing directions for Ubuntu. I'm running Nagios Core just fine and was hoping to use it to monitor SNMP traps from my network with NSTI to make the information more legible.

Any assistance with finding an installer script or manual installation instructions would be appreciated, thanks!
Posts: 1
Joined: Wed Dec 22, 2021 2:07 pm

Re: NSTI for Ubuntu

Postby jdmsilbvs » Fri Jan 07, 2022 8:11 am

NSTI 3.0.2

apt install -y python-mysqldb snmptt mysql-server php-mysql python-mysqldb python-dev libmysqlclient-dev libdbd-mysql-perl libdbi-perl python3-storm libexpat1 python3 apache2 apache2-utils ssl-cert libapache2-mod-wsgi


#Would you like to setup VALIDATE PASSWORD component?
#Press y|Y for Yes, any other key for No: Y


#There are three levels of password validation policy:
#LOW Length >= 8
#MEDIUM Length >= 8, numeric, mixed case, and special characters
#STRONG Length >= 8, numeric, mixed case, special characters and dictionary file

#Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG:


#Please set the password for root here.
New password:
Re-enter new password:

#Estimated strength of the password: xxx
#Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) :



Mysql> create database snmptt;

mysql> GRANT ALL PRIVILEGES ON snmptt.* TO ‘snmpttuser’@’localhost’ WITH GRANT OPTION;

mysql> GRANT PROCESS ON *.* TO 'snmpttuser'@'localhost';

Mysql> Flush privileges;

mysql> SHOW GRANTS FOR 'snmpttuser'@'localhost';

| Grants for snmpttuser@localhost |
| GRANT PROCESS ON *.* TO `snmpttuser`@`localhost` |
| GRANT ALL PRIVILEGES ON `snmptt`.* TO `snmpttuser`@`localhost` WITH GRANT OPTION |
2 rows in set (0,00 sec)

Mysql> quit

systemctl status mysql.service

Cd /home/sources

wget http://assets.nagios.com/downloads/nsti ... latest.php -O nsti-3.0.2.tar.gz

tar zxvf nsti-3.0.2.tar.gz

cd nsti-3.0.2/

mysql -u snmpttuser -psnmpttpass snmptt < nsti/dist/nsti.sql

vim nsti/etc/nsti.py

#~ Database Configuration Options
#~ Use mysql for MySQL and postgres for PostgreSQL

#~ Page Display Options

sh install.sh

python -m flask --version
#Python 2.7.18
#Flask 1.1.4
#Werkzeug 1.0.1

cp /etc/httpd/conf.d/nsti.conf /etc/apache2/sites-enabled/

vim /etc/apache2/sites-enabled/nsti.conf

WSGIScriptAlias /nsti /usr/local/nsti/wsgi.py
<Directory /usr/local/nsti>
Require all granted

service apache2 restart

vim /etc/default/snmptrapd

TRAPDOPTS='-Lsd -On -p /run/snmptrapd.pid'

systemctl daemon-reload

systemctl restart snmptrapd.service

chmod 775 /usr/local/nsti -R

chown nagios:nagcmd /usr/local/nsti -R

vim /etc/snmp/snmptrapd.conf

disableAuthorization yes
traphandle default /usr/sbin/snmptthandler

vim /etc/snmp/snmptt.ini

mode = daemon
net_snmp_perl_enable = 1
dns_enable = 1
daemon_fork = 1
daemon_uid = snmptt
pid_file = /var/run/snmptt.pid
spool_directory = /var/spool/snmptt/
log_file = /var/log/snmptt/snmptt.log
mysql_dbi_enable = 1
mysql_dbi_host = localhost
mysql_dbi_port = 3306
mysql_dbi_database = snmptt
mysql_dbi_table = snmptt
mysql_dbi_table_unknown = snmptt_unknown
mysql_dbi_username = snmpttuser
mysql_dbi_password = snmpttpass
unknown_trap_log_enable = 1
unknown_trap_log_file = /var/log/snmptt/snmpttunknown.log

snmptt_conf_files = <<END

systemctl enable snmptrapd

service snmptt restart

service snmptrapd restart
Posts: 1
Joined: Fri Jan 07, 2022 5:36 am

топ софосбувир официальный сайт top sofosbuvir24 ru

Postby Luigiwek » Wed Jan 12, 2022 4:04 am

топ софосбувир официальный сайт https://top-sofosbuvir24.ru/
топ софосбувир официальный сайт https://top-sofosbuvir24.ru/
Posts: 1
Joined: Wed Jan 12, 2022 3:07 am
Location: Ghana

Return to Community Support

Who is online

Users browsing this forum: No registered users and 26 guests