Email Templates List Blank

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
ackiejoe
Posts: 4
Joined: Thu Apr 19, 2018 1:38 pm

Email Templates List Blank

Post by ackiejoe »

After saving a new email template it is not added to the list, the list doesn't seem to be populating correctly:
Screen Shot 2018-04-19 at 4.03.30 PM.png
also drop down selection box in the "Create an Alert" modal contains no options, also seems to be not loading correctly.
Screen Shot 2018-04-19 at 4.04.01 PM.png
I have tried other browsers as well as restarting elasticsearch as mentioned in this forum post:

https://support.nagios.com/forum/viewto ... te#p193803

Is there somewhere that an error message would be generated about this? apache error log shows nothing.
You do not have the required permissions to view the files attached to this post.
Last edited by ackiejoe on Thu Apr 19, 2018 2:55 pm, edited 1 time in total.
kyang

Re: Email Templates List Blank

Post by kyang »

That is odd, what version of NLS are you running?

It works fine on mine which is running NLS 2.0.2.

Any errors shown in the NLS UI? How's the cluster status looking like? --> NLS Home --> Admin --> Under System click "Cluster Status".

Code: Select all

service elasticsearch status
service logstash status
ackiejoe
Posts: 4
Joined: Thu Apr 19, 2018 1:38 pm

Re: Email Templates List Blank

Post by ackiejoe »

we are running 2.0.2 as well.

elasticsearch and logstash seem to be running correctly:

Code: Select all

[root@nagioslog php.d]# service logstash elasticsearch status
Usage:  {start|stop|status|restart}
[root@nagioslog php.d]# systemctl status logstash elasticsearch
● logstash.service - LSB: Logstash
   Loaded: loaded (/etc/rc.d/init.d/logstash; bad; vendor preset: disabled)
   Active: active (running) since Mon 2018-04-23 10:58:57 ADT; 1min 38s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 20804 ExecStop=/etc/rc.d/init.d/logstash stop (code=exited, status=0/SUCCESS)
  Process: 20858 ExecStart=/etc/rc.d/init.d/logstash start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/logstash.service
           ├─20879 runuser -s /bin/sh -c exec /usr/local/nagioslogserver/logstash/bin/logstash agent -f /usr/local/nagioslogserver/logstash/etc/conf.d -l /va...
           └─20884 java -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupanc...

Apr 23 10:58:56 nagioslog.dgicloud.com systemd[1]: Starting LSB: Logstash...
Apr 23 10:58:56 nagioslog.dgicloud.com runuser[20879]: pam_unix(runuser:session): session opened for user nagios by (uid=0)
Apr 23 10:58:57 nagioslog.dgicloud.com logstash[20858]: Starting Logstash Daemon: [  OK  ]
Apr 23 10:58:57 nagioslog.dgicloud.com systemd[1]: Started LSB: Logstash.

● elasticsearch.service - LSB: This service manages the elasticsearch daemon
   Loaded: loaded (/etc/rc.d/init.d/elasticsearch; bad; vendor preset: disabled)
   Active: active (running) since Mon 2018-04-23 10:58:56 ADT; 1min 39s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 20805 ExecStop=/etc/rc.d/init.d/elasticsearch stop (code=exited, status=0/SUCCESS)
  Process: 20870 ExecStart=/etc/rc.d/init.d/elasticsearch start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/elasticsearch.service
           └─20918 java -Xms3763m -Xmx3763m -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseC...

Apr 23 10:58:56 nagioslog.dgicloud.com systemd[1]: Starting LSB: This service manages the elasticsearch daemon...
Apr 23 10:58:56 nagioslog.dgicloud.com runuser[20908]: pam_unix(runuser:session): session opened for user nagios by (uid=0)
Apr 23 10:58:56 nagioslog.dgicloud.com runuser[20908]: pam_unix(runuser:session): session closed for user nagios
Apr 23 10:58:56 nagioslog.dgicloud.com elasticsearch[20870]: Starting elasticsearch: [  OK  ]
Apr 23 10:58:56 nagioslog.dgicloud.com systemd[1]: Started LSB: This service manages the elasticsearch daemon.
One important thing I forgot to mention is that I did have to update php on this server to 5.6.35, and has to manually update the ixed extension to ixed.5.6.lin as per the error message I got from nagioslog after the php update. Not sure if this worked before the update as we also didn't have a license before the update.

our cluster status:
Screen Shot 2018-04-23 at 10.56.26 AM.png
I see no errors in the UI or in any log file I know of.
You do not have the required permissions to view the files attached to this post.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Email Templates List Blank

Post by tacolover101 »

ackiejoe wrote:we are running 2.0.2 as well.
One important thing I forgot to mention is that I did have to update php on this server to 5.6.35, and has to manually update the ixed extension to ixed.5.6.lin as per the error message I got from nagioslog after the php update. Not sure if this worked before the update as we also didn't have a license before the update.
how did you upgrade PHP? this may have caused issues pending how it was done. please provide as much information as you can.
ackiejoe
Posts: 4
Joined: Thu Apr 19, 2018 1:38 pm

Re: Email Templates List Blank

Post by ackiejoe »

php was updated like this:

Code: Select all

wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm
yum repolist
vim /etc/yum.repos.d/remi.repo #enabled the 5.6 repo
yum update
then had to download the ixed.5.6.lin for sourceguardian, put it in the correct place (/usr/lib64/php/modules/ixed.5.6.lin) and restart apache

currently install php packages:

Code: Select all

php.x86_64                            5.6.35-1.el7.remi              @remi-php56
php-cli.x86_64                        5.6.35-1.el7.remi              @remi-php56
php-common.x86_64                     5.6.35-1.el7.remi              @remi-php56
php-devel.x86_64                      5.6.35-1.el7.remi              @remi-php56
php-fedora-autoloader.noarch          1.0.0-1.el7                    @epel
php-ldap.x86_64                       5.6.35-1.el7.remi              @remi-php56
php-pear.noarch                       1:1.10.5-6.el7.remi            @remi-php56
php-pecl-jsonc.x86_64                 1.3.10-2.el7.remi.5.6          @remi-php56
php-pecl-jsonc-devel.x86_64           1.3.10-2.el7.remi.5.6          @remi-php56
php-pecl-zip.x86_64                   1.15.2-1.el7.remi.5.6          @remi-php56
php-process.x86_64                    5.6.35-1.el7.remi              @remi-php56
php-xml.x86_64                        5.6.35-1.el7.remi              @remi-php56

Installed packages, channel pecl.php.net:
=========================================
Package Version State
jsonc   1.3.10  stable
zip     1.15.2  stable

Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.4.3   stable
Console_Getopt   1.4.1   stable
Mail             1.4.1   stable
Net_SMTP         1.8.0   stable
Net_Socket       1.2.2   stable
PEAR             1.10.5  stable
PEAR_Manpages    1.10.0  stable
Structures_Graph 1.1.1   stable
XML_Util         1.4.3   stable
kyang

Re: Email Templates List Blank

Post by kyang »

Whats the output of these commands?

Code: Select all

php -v
php --ini
ackiejoe
Posts: 4
Joined: Thu Apr 19, 2018 1:38 pm

Re: Email Templates List Blank

Post by ackiejoe »

Code: Select all

php -v
PHP 5.6.36 (cli) (built: Apr 25 2018 10:02:39)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

# php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File:         /etc/php.ini
Scan for additional .ini files in: /etc/php.d
Additional .ini files parsed:      /etc/php.d/20-bz2.ini,
/etc/php.d/20-calendar.ini,
/etc/php.d/20-ctype.ini,
/etc/php.d/20-curl.ini,
/etc/php.d/20-dom.ini,
/etc/php.d/20-exif.ini,
/etc/php.d/20-fileinfo.ini,
/etc/php.d/20-ftp.ini,
/etc/php.d/20-gettext.ini,
/etc/php.d/20-iconv.ini,
/etc/php.d/20-ldap.ini,
/etc/php.d/20-phar.ini,
/etc/php.d/20-posix.ini,
/etc/php.d/20-shmop.ini,
/etc/php.d/20-simplexml.ini,
/etc/php.d/20-sockets.ini,
/etc/php.d/20-sysvmsg.ini,
/etc/php.d/20-sysvsem.ini,
/etc/php.d/20-sysvshm.ini,
/etc/php.d/20-tokenizer.ini,
/etc/php.d/20-xml.ini,
/etc/php.d/20-xmlwriter.ini,
/etc/php.d/20-xsl.ini,
/etc/php.d/30-wddx.ini,
/etc/php.d/30-xmlreader.ini,
/etc/php.d/40-json.ini,
/etc/php.d/40-zip.ini,
/etc/php.d/sourceguardian.ini
kyang

Re: Email Templates List Blank

Post by kyang »

Could you send us your backup NLS files?

Located in:

Code: Select all

/store/backups/nagioslogserver
You can either post or PM me the tar.gz file.

I would like to look through some of your configs.

Thank you!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Email Templates List Blank

Post by tmcdonald »

We have received a ticket for this post, and will continue there. Locking.
Former Nagios employee
Locked