Page 3 of 8

Re: Configure Exim MailServer Logs With NLS

Posted: Fri Jan 29, 2016 1:00 pm
by rkennedy
What are the permissions of this folder?

Code: Select all

ls -l /usr/local/nagioslogserver/tmp

Re: Configure Exim MailServer Logs With NLS

Posted: Fri Jan 29, 2016 1:49 pm
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

Re: Configure Exim MailServer Logs With NLS

Posted: Fri Jan 29, 2016 1:54 pm
by hsmith
Is it possible SELinux is messing with you?

Code: Select all

getenforce
cat /etc/selinux/config

Re: Configure Exim MailServer Logs With NLS

Posted: Fri Jan 29, 2016 1:59 pm
by rlinux57
Already disabled.

Code: Select all

getenforce 
Disabled

Re: Configure Exim MailServer Logs With NLS

Posted: Fri Jan 29, 2016 4:31 pm
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

Re: Configure Exim MailServer Logs With NLS

Posted: Fri Jan 29, 2016 11:20 pm
by rlinux57
There was a conflict with timezone while installing NLS that's why i repeatedly use following command: ./fullinstall
Please find attachment.

Re: Configure Exim MailServer Logs With NLS

Posted: Mon Feb 01, 2016 12:04 pm
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

Re: Configure Exim MailServer Logs With NLS

Posted: Mon Feb 01, 2016 3:30 pm
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

Re: Configure Exim MailServer Logs With NLS

Posted: Mon Feb 01, 2016 4:50 pm
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!

Re: Configure Exim MailServer Logs With NLS

Posted: Tue Feb 02, 2016 2:44 am
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.