Configure Exim MailServer Logs With NLS
Posted: Wed Jan 20, 2016 2:31 am
Is there any way to monitor exim logs with NLS ?
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
curl -s -O http://nlsip/nagioslogserver/scripts/setup-linux.sh
bash setup-linux.sh -s nlsip -p 5544 -f "/path/to/exim/logdir/*.log" -t FILE_TAG
Code: Select all
[root@logs ~]# /etc/init.d/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: [: 18169: unary operator expected
Code: Select all
bash setup-linux.sh -s nlsip -p 5544 -f "/var/log/exim_mainlog" -t FILE_TAG
Detected rsyslog 5.8.10
Detected rsyslog work directory /var/lib/rsyslog
Destination Log Server: nlsip:5544
Processing /var/log/exim_mainlog file...
Creating /etc/rsyslog.d/90-nagioslogserver_var_log_exim_mainlog.conf...
rsyslog configuration check passed.
Restarting rsyslog service with 'service'...
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
Okay.
rsyslog is running with the new configuration.
Visit your Nagios Log Server dashboard to verify that logs are being received.
Can you post the output of this command?rlinux57 wrote:Logstash service not working, getting below error:
Code: Select all
tail -n200 /var/log/logstash/logstash.logLooks successful to me.rlinux57 wrote:Moreover i have run the script as it is that you have mentioned, is it run successfully ? :
Yes, it looks like the script has succeeded.Moreover i have run the script as it is that you have mentioned, is it run successfully ? :
I have seen this before - I'd like to know if any of these options work for you:Logstash service not working, getting below error:
Code: Select all
service logstash start
systemctl start logstash
service logstash status
systemctl status logstashCode: Select all
[root@logs ~]# ll /var/log/logstash/
total 0
Code: Select all
[root@logs ~]# service logstash start
Starting Logstash Daemon: 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: [: 21959: unary operator expectedCode: Select all
[root@logs ~]# service logstash status
Logstash Daemon dead but pid file existsCode: Select all
service elasticsearch startCode: Select all
cat /etc/sysconfig/logstash