Configure Exim MailServer Logs With NLS

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Configure Exim MailServer Logs With NLS

Post by rkennedy »

What are the permissions of this folder?

Code: Select all

ls -l /usr/local/nagioslogserver/tmp
Former Nagios Employee
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Configure Exim MailServer Logs With NLS

Post by rlinux57 »

Code: Select all

ls -l /usr/local/nagioslogserver/tmp
total 4
drwxr-xr-x 2 nagios nagios 4096 Jan 18 17:56 elasticsearch
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Configure Exim MailServer Logs With NLS

Post by hsmith »

Is it possible SELinux is messing with you?

Code: Select all

getenforce
cat /etc/selinux/config
Former Nagios Employee.
me.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Configure Exim MailServer Logs With NLS

Post by rlinux57 »

Already disabled.

Code: Select all

getenforce 
Disabled
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Configure Exim MailServer Logs With NLS

Post by jolson »

Do you by chance have a full command history of everything you've entered into your box? I'm interested in seeing how this box was built, as the Logstash behavior you're seeing is very erratic.

Code: Select all

history > history.txt
If you could upload the above file and either post it here or PM it to be I'd love to take a look at it - hopefully I can either find where things went wrong or reproduce the problem.

Thanks!

Jesse
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Configure Exim MailServer Logs With NLS

Post by rlinux57 »

There was a conflict with timezone while installing NLS that's why i repeatedly use following command: ./fullinstall
Please find attachment.
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Configure Exim MailServer Logs With NLS

Post by jolson »

I think doing an uninstall followed by a fullinstall may help us resolve this problem. The fact that you ran many fullinstall commands on top of one another may have had something to do with the break. Lets give this a try (keep in mind that this will ERASE all of you data):

Uninstall:

Code: Select all

service logstash stop
service elasticsearch stop
yum erase httpd
rm -rf /usr/local/nagioslogserver
rm -rf /var/www/html/nagioslogserver
rm /etc/rc.d/init.d/elasticsearch
rm /etc/rc.d/init.d/logstash
rm /etc/rsyslog.d/nagioslogserver.conf
rm /etc/cron.d/nagioslogserver
pip uninstall elasticsearch-curator==1.2.2
service crond restart
Install:

Code: Select all

cd /tmp
wget https://assets.nagios.com/downloads/nagios-log-server/1/nagioslogserver-1.4.0.tar.gz
tar zxf nagioslogserver-1.4.0.tar.gz
cd nagioslogserver
./fullinstall
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Configure Exim MailServer Logs With NLS

Post by rlinux57 »

I have reinstalled it as per your direction but still getting same error:

Code: Select all

[root@logs nagioslogserver]# service logstash restart
Restarting Logstash Daemon:                                [FAILED]
WARNING: Default JAVA_OPTS will be overridden by the JAVA_OPTS defined in the environment. Environment JAVA_OPTS are -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
/etc/init.d/logstash: line 99: [: 23828: unary operator expected
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Configure Exim MailServer Logs With NLS

Post by jolson »

Could you please try running the following on the command line and let us know what happens? Is there any failure?

Code: Select all

/usr/bin/java -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp -Xmx500m -Xss2048k -Djffi.boot.library.path=/usr/local/nagioslogserver/logstash/vendor/jruby/lib/jni -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp -Xbootclasspath/a:/usr/local/nagioslogserver/logstash/vendor/jruby/lib/jruby.jar -classpath : -Djruby.home=/usr/local/nagioslogserver/logstash/vendor/jruby -Djruby.lib=/usr/local/nagioslogserver/logstash/vendor/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main --1.9 /usr/local/nagioslogserver/logstash/lib/bootstrap/environment.rb logstash/runner.rb agent -f /usr/local/nagioslogserver/logstash/etc/conf.d -l /var/log/logstash/logstash.log -w 4
Also, I'd like to see your java version:

Code: Select all

java -version
Either Logstash will start up successfully, or we'll see some errors. Let us know if you see anything that looks useful above. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Configure Exim MailServer Logs With NLS

Post by rlinux57 »

Code: Select all

[root@logs ~]# /usr/bin/java -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp -Xmx500m -Xss2048k -Djffi.boot.library.path=/usr/local/nagioslogserver/logstash/vendor/jruby/lib/jni -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp -Djava.io.tmpdir=/usr/local/nagioslogserver/tmp -Xbootclasspath/a:/usr/local/nagioslogserver/logstash/vendor/jruby/lib/jruby.jar -classpath : -Djruby.home=/usr/local/nagioslogserver/logstash/vendor/jruby -Djruby.lib=/usr/local/nagioslogserver/logstash/vendor/jruby/lib -Djruby.script=jruby -Djruby.shell=/bin/sh org.jruby.Main --1.9 /usr/local/nagioslogserver/logstash/lib/bootstrap/environment.rb logstash/runner.rb agent -f /usr/local/nagioslogserver/logstash/etc/conf.d -l /var/log/logstash/logstash.log -w 4

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Code: Select all

[root@logs ~]# java -version

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Locked