i'm trying to install Log Server on CentOS Linux release 7.0.1406 (Core). By following the procedure the link shows me:
"Waiting for database startup"
My server has very restricted internet access so i had to install manually all the packages required from fullinstall script.
I had to disable the ntpdate because the NTP server is not reachable.
I've followed the similar topic https://support.nagios.com/forum/viewto ... se#p146127 but my elasticsearch doesn't log anithing!
if i restart the servervice as root with:
[root@localhost var]# service elasticsearch start
Starting elasticsearch (via systemctl): [ OK ]
If i check the status:
Code: Select all
[root@localhost var]# service elasticsearch status
● elasticsearch.service - LSB: This service manages the elasticsearch daemon
Loaded: loaded (/etc/rc.d/init.d/elasticsearch)
Active: active (exited) since Thu 2016-07-07 13:50:09 CEST; 18s ago
Docs: man:systemd-sysv-generator(8)
Process: 3846 ExecStop=/etc/rc.d/init.d/elasticsearch stop (code=exited, status=0/SUCCESS)
Process: 3866 ExecStart=/etc/rc.d/init.d/elasticsearch start (code=exited, status=0/SUCCESS)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: at java.security.AccessController.doPrivileged(Native Method)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Jul 07 13:50:10 localhost.localdomain elasticsearch[3866]: Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch. Program will exit.
Code: Select all
[root@localhost var]# cat /usr/local/nagioslogserver/var/poller.log
Updating Cluster Hosts File
ERROR: Connection to elasticsearch cannot be made
Updating Elasticsearch with instance...
cat: /var/run/elasticsearch/elasticsearch.pid: No such file or directory
ERROR: Connection to elasticsearch cannot be made
Updating Cluster Hosts File
ERROR: Connection to elasticsearch cannot be made
Updating Elasticsearch with instance...
cat: /var/run/elasticsearch/elasticsearch.pid: No such file or directory
ERROR: Connection to elasticsearch cannot be made
Updating Cluster Hosts File
ERROR: Connection to elasticsearch cannot be made
Updating Elasticsearch with instance...
cat: /var/run/elasticsearch/elasticsearch.pid: No such file or directory
ERROR: Connection to elasticsearch cannot be made
Finished Polling.
curl: (7) Failed connect to localhost:9200; Connection refused
the netsat shows that anything is running on 9200 port.
Can you help me?