添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
I've just installed a clean build of LS and it's stuck on the;
Waiting for Database Startup
It looks like your local elasticsearch service is starting.
Why am I getting this error?
Elasticsearch can take a little while to start up because of it's indexing. This may take a few seconds.
The page will refresh automatically after 5 seconds...
The logstash.log file shows;

Code: Select all

{:timestamp=>"2019-03-19T03:53:17.278000+0000", :message=>"No config files found: /usr/local/nagioslogserver/logstash/etc/conf.d/*\nCan you make sure this path is a logstash config file?", :level=>:error}
{:timestamp=>"2019-03-19T05:54:53.489000+0000", :message=>"Connection refused (Connection refused)", :class=>"Manticore::SocketException", :level=>:error}
{:timestamp=>"2019-03-19T05:54:53.639000+0000", :message=>"Connection refused (Connection refused)", :class=>"Manticore::SocketException", :level=>:error}
{:timestamp=>"2019-03-19T05:54:53.709000+0000", :message=>"Connection refused (Connection refused)", :class=>"Manticore::SocketException", :level=>:error}
{:timestamp=>"2019-03-19T05:54:53.743000+0000", :message=>"Connection refused (Connection refused)", :class=>"Manticore::SocketException", :level=>:error}
{:timestamp=>"2019-03-19T05:54:53.839000+0000", :message=>"Pipeline main started"}
{:timestamp=>"2019-03-19T05:54:54.385000+0000", :message=>"Pipeline main has been shutdown"}
{:timestamp=>"2019-03-19T05:54:56.852000+0000", :message=>"stopping pipeline", :id=>"main"}
{:timestamp=>"2019-03-19T07:32:04.734000+0000", :message=>"Connection refused (Connection refused)", :class=>"Manticore::SocketException", :level=>:error}
{:timestamp=>"2019-03-19T07:32:04.837000+0000", :message=>"Connection refused (Connection refused)", :class=>"Manticore::SocketException", :level=>:error}
{:timestamp=>"2019-03-19T07:32:04.876000+0000", :message=>"Connection refused (Connection refused)", :class=>"Manticore::SocketException", :level=>:error}
{:timestamp=>"2019-03-19T07:32:04.895000+0000", :message=>"Connection refused (Connection refused)", :class=>"Manticore::SocketException", :level=>:error}
{:timestamp=>"2019-03-19T07:32:04.972000+0000", :message=>"Pipeline main started"}
{:timestamp=>"2019-03-19T07:32:05.331000+0000", :message=>"Pipeline main has been shutdown"}
{:timestamp=>"2019-03-19T07:32:07.993000+0000", :message=>"stopping pipeline", :id=>"main"}

Code: Select all

[root@proxy1 ~]# service elasticsearch status
● elasticsearch.service - LSB: This service manages the elasticsearch daemon
   Loaded: loaded (/etc/rc.d/init.d/elasticsearch; bad; vendor preset: disabled)
   Active: active (exited) since Tue 2019-03-19 07:31:35 UTC; 4min 4s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3232 ExecStart=/etc/rc.d/init.d/elasticsearch start (code=exited, status=0/SUCCESS)
Mar 19 07:31:34 proxy1.solblu.uk systemd[1]: Starting LSB: This service manages the elasticsearch daemon...
Mar 19 07:31:35 proxy1.solblu.uk runuser[3302]: pam_unix(runuser:session): session opened for user nagios by (uid=0)
Mar 19 07:31:35 proxy1.solblu.uk elasticsearch[3232]: Starting elasticsearch: [  OK  ]
Mar 19 07:31:35 proxy1.solblu.uk systemd[1]: Started LSB: This service manages the elasticsearch daemon.
Mar 19 07:31:35 proxy1.solblu.uk elasticsearch[3232]: OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropri...allelGCThreads=N
Hint: Some lines were ellipsized, use -l to show in full.
[root@proxy1 ~]# service mariadb status
Redirecting to /bin/systemctl status mariadb.service
● mariadb.service - MariaDB database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-03-19 07:31:36 UTC; 4min 10s ago
  Process: 2836 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
  Process: 2779 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
 Main PID: 2835 (mysqld_safe)
   CGroup: /system.slice/mariadb.service
           ├─2835 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
           └─3124 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock
Mar 19 07:31:32 proxy1.solblu.uk systemd[1]: Starting MariaDB database server...
Mar 19 07:31:32 proxy1.solblu.uk mariadb-prepare-db-dir[2779]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
Mar 19 07:31:33 proxy1.solblu.uk mysqld_safe[2835]: 190319 07:31:33 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Mar 19 07:31:33 proxy1.solblu.uk mysqld_safe[2835]: 190319 07:31:33 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Mar 19 07:31:36 proxy1.solblu.uk systemd[1]: Started MariaDB database server.
[root@proxy1 ~]#
Any ideas?
Hello, @nathanplatt. This doesn't seem like a clean install. Log Server doesn't come with MariaDB by default.
Do you have SELINUX enabled on this server? Please run the following command and show me the output:
getenforce
Do you have the installation.log file in the /tmp/nagioslogserver/ folder?
But looking at the logs you provided this installation failed. Logstash is missing configs that should have gotten installed by default and elasticsearch won't start either.
I suggest starting with a clean server that has nothing installed on it and following these instructions to install the log server:
https://assets.nagios.com/downloads/nag ... Server.pdf
Sorry my mistake, the server is running a zabbix proxy on it and nothing else;
[root@proxy1 ~]# getenforce
Disabled
@nathanplatt, Did the MariaDB come with Zabbix as well? Is there a possibility of installing the log server on a completely clean system? I'm not very sure but Zabbix could potentially be interfering with the LS installation. We tested fullinstall on all major Rhel and CentOS releases in the lab and didn't have this problem. Have you considered deploying a precompiled OVA image with OS + Log Server already installed and running?
https://www.nagios.com/downloads/nagios ... er/vmware/
  • Community Support Forums For Nagios Commercial Products
  • ↳   Nagios XI
  • ↳   Nagios Log Server
  • ↳   Nagios Network Analyzer
  • ↳   Nagios Fusion
  • ↳   Development on Github
  • ↳   Nagios Core
  • ↳   Nagios Plugins
  • ↳   NCPA
  • Community Support Forums For Nagios Open Source Projects
  • ↳   Open Source Nagios Projects
  •