Unable to login using the nagiosadmin credentials

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

Logstash Collector isn't starting, when I click on start under SYSTEM> System Status. It starts for sometime and then again stops.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Unable to login using the nagiosadmin credentials

Post by mcapra »

While the logstash collector is "red", can you share the output of:

Code: Select all

service logstash status
Is there anything in the logstash log? Would you mind sharing it's contents?

Code: Select all

/var/log/logstash/logstash.log
Former Nagios employee
https://www.mcapra.com/
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

[root@ip-10-1-252-201 ec2-user]# service logstash status
Logstash Daemon dead but pid file exists


logstash.log attached for your reference
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Unable to login using the nagiosadmin credentials

Post by mcapra »

Can you share the outputs of:

Code: Select all

ls -al /usr/local/nagioslogserver/logstash/etc/conf.d/

cat /usr/local/nagioslogserver/logstash/etc/conf.d/*

cat /etc/hosts
It looks as if the machine is not able to resolve localhost based on outputs in the other thread. By default, logstash is attempting to connect to the elasticsearch database on localhost.
Former Nagios employee
https://www.mcapra.com/
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

[root@ip-10-1-252-201 ftw]# ls -al /usr/local/nagioslogserver/logstash/etc/conf.d/
total 20
drwxrwxr-x. 2 nagios nagios 4096 Sep 7 16:33 .
drwxrwxr-x. 3 nagios nagios 4096 Sep 7 14:26 ..
-rwxrwxr-x 1 nagios nagios 218 Sep 7 18:09 000_inputs.conf
-rwxrwxr-x 1 nagios nagios 220 Sep 7 18:09 500_filters.conf
-rwxrwxr-x 1 nagios nagios 537 Sep 7 18:09 999_outputs.conf
[root@ip-10-1-252-201 ftw]# cat /usr/local/nagioslogserver/logstash/etc/conf.d/*
#
# Logstash Configuration File
# Dynamically created by Nagios Log Server
#
# DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN.
#
# Created Wed, 07 Sep 2016 18:09:21 +0000
#

#
# Global inputs
#



#
# Local inputs
#


#
# Logstash Configuration File
# Dynamically created by Nagios Log Server
#
# DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN.
#
# Created Wed, 07 Sep 2016 18:09:21 +0000
#

#
# Global filters
#



#
# Local filters
#


#
# Logstash Configuration File
# Dynamically created by Nagios Log Server
#
# DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN.
#
# Created Wed, 07 Sep 2016 18:09:21 +0000
#

#
# Required output for Nagios Log Server
#

output {
elasticsearch {
cluster => '0418383b-07ee-4161-ad5b-e7d7e3b1e9d8'
host => 'localhost'
document_type => '%{type}'
node_name => '2f526f36-8df4-4c76-b884-13a523776c3b'
protocol => 'transport'
workers => 4
}
}

#
# Global outputs
#



#
# Local outputs
#


[root@ip-10-1-252-201 ftw]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
[root@ip-10-1-252-201 ftw]#
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Unable to login using the nagiosadmin credentials

Post by mcapra »

Can you change the /etc/hosts definition to include localhost under the ipv6 loopback and see if that resolves this issue?

Code: Select all

127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6 localhost
It looks like you do not have any inputs configured. Can you try applying configuration via the NLS GUI and see if it produces any errors?
2016_09_07_14_49_11_Apply_Configuration_Nagios_Log_Server.png
Can you also share the outputs of the following:

Code: Select all

curl 'localhost:9200/_cat/indices?v'

service elasticsearch restart
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

Adding Input filter fixed the problem, thanks once again :)
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Unable to login using the nagiosadmin credentials

Post by mcapra »

Awesome! Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

Yes please! Thank you once again
Locked