Hello!
Thanks for your reply!
When you say you checked the configs, did you run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg? Either way, could you post the output of that?
I have already published results of configuration test, but moderator have deleted it, by some reasons, I think.
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.2.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-24-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Warning: use_embedded_perl_implicitly is deprecated and will be removed.
Warning: enable_embedded_perl is deprecated and will be removed.
Warning: p1_file is deprecated and will be removed.
Warning: sleep_time is deprecated and will be removed.
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 44 services.
Checked 10 hosts.
Checked 4 host groups.
Checked 3 service groups.
Checked 6 contacts.
Checked 4 contact groups.
Checked 35 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 10 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Also, can you give the output of tail -100 /usr/local/nagios/var/nagios.log
Here you are!
Code: Select all
tail -100 /usr/local/nagios/var/nagios.log
[1479081600] LOG ROTATION: DAILY
[1479081600] LOG VERSION: 2.0
[1479081600] CURRENT HOST STATE: CB Node 1;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.93 ms
[1479081600] CURRENT HOST STATE: CB Node 2;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 2.15 ms
[1479081600] CURRENT HOST STATE: Couchbase Sport;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 21.92 ms
[1479081600] CURRENT HOST STATE: GitLab;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 24.53 ms
[1479081600] CURRENT HOST STATE: Math LB + Memcached;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.36 ms
[1479081600] CURRENT HOST STATE: Monitoring;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.03 ms
[1479081600] CURRENT HOST STATE: Notification Server;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.44 ms
[1479081600] CURRENT HOST STATE: TestWebloadBalancer;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.46 ms
[1479081600] CURRENT HOST STATE: WebLoadBalancer;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.26 ms
[1479081600] CURRENT HOST STATE: WebLoadBalancer Sport;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 23.17 ms
[1479081600] CURRENT SERVICE STATE: CB Node 1;Bucket slots RAM Quota usage;OK;HARD;1;RAM Usage OK: 59.38 %
[1479081600] CURRENT SERVICE STATE: CB Node 1;Bucket slots-logs RAM Quota usage;OK;HARD;1;RAM Usage OK: 42.47 %
[1479081600] CURRENT SERVICE STATE: CB Node 1;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in
[1479081600] CURRENT SERVICE STATE: CB Node 1;DATA Partition;OK;HARD;1;DISK OK - free space: /mnt/data 138025 MB (94% inode=99%):
[1479081600] CURRENT SERVICE STATE: CB Node 1;INDEX Partition;OK;HARD;1;DISK OK - free space: /mnt/index 139048 MB (95% inode=99%):
[1479081600] CURRENT SERVICE STATE: CB Node 1;Root Partition;OK;HARD;1;DISK OK - free space: / 37354 MB (93% inode=98%):
[1479081600] CURRENT SERVICE STATE: CB Node 2;Bucket slots RAM Quota usage;OK;HARD;1;RAM Usage OK: 59.38 %
[1479081600] CURRENT SERVICE STATE: CB Node 2;Bucket slots-logs RAM Quota usage;OK;HARD;1;RAM Usage OK: 42.47 %
[1479081600] CURRENT SERVICE STATE: CB Node 2;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in
[1479081600] CURRENT SERVICE STATE: CB Node 2;DATA Partition;OK;HARD;1;DISK OK - free space: /mnt/data 137265 MB (94% inode=99%):
[1479081600] CURRENT SERVICE STATE: CB Node 2;INDEX Partition;OK;HARD;1;DISK OK - free space: /mnt/index 144777 MB (99% inode=99%):
[1479081600] CURRENT SERVICE STATE: CB Node 2;Root Partition;OK;HARD;1;DISK OK - free space: / 37469 MB (93% inode=98%):
[1479081600] CURRENT SERVICE STATE: Couchbase Sport;Bucket sports RAM Quota usage;OK;HARD;1;RAM Usage OK: 73.14 %
[1479081600] CURRENT SERVICE STATE: Couchbase Sport;Bucket sports-logs RAM Quota usage;OK;HARD;1;RAM Usage OK: 17.91 %
[1479081600] CURRENT SERVICE STATE: Couchbase Sport;Current Load;OK;HARD;1;OK - load average: 0.24, 0.21, 0.20
[1479081600] CURRENT SERVICE STATE: Couchbase Sport;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in
[1479081600] CURRENT SERVICE STATE: Couchbase Sport;DATA Partition;OK;HARD;1;DISK OK - free space: /mnt/DATA 26102 MB (91% inode=99%):
[1479081600] CURRENT SERVICE STATE: Couchbase Sport;Root Partition;OK;HARD;1;DISK OK - free space: / 4636 MB (59% inode=90%):
[1479081600] CURRENT SERVICE STATE: GitLab;Current Load;OK;HARD;1;OK - load average: 0.00, 0.00, 0.00
[1479081600] CURRENT SERVICE STATE: GitLab;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in
[1479081600] CURRENT SERVICE STATE: GitLab;Disk Usage;OK;HARD;1;DISK OK - free space: / 65083 MB (64% inode=96%):
[1479081600] CURRENT SERVICE STATE: GitLab;GitLab UI;OK;HARD;1;HTTP OK: HTTP/1.1 302 Found - 581 bytes in 0.141 second response time
[1479081600] CURRENT SERVICE STATE: Math LB + Memcached;Current Load;OK;HARD;1;OK - load average: 0.00, 0.01, 0.05
[1479081600] CURRENT SERVICE STATE: Math LB + Memcached;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in
[1479081600] CURRENT SERVICE STATE: Math LB + Memcached;Math;OK;HARD;1;HTTP OK: HTTP/1.1 200 OK - 254 bytes in 0.003 second response time
[1479081600] CURRENT SERVICE STATE: Math LB + Memcached;Root Partition;OK;HARD;1;DISK OK - free space: / 17034 MB (85% inode=96%):
[1479081600] CURRENT SERVICE STATE: Monitoring;Current Load;OK;HARD;1;OK - load average: 0.21, 0.84, 1.17
[1479081600] CURRENT SERVICE STATE: Monitoring;Root Partition;OK;HARD;1;DISK OK - free space: / 9947 MB (71% inode=85%):
[1479081600] CURRENT SERVICE STATE: Notification Server;API;OK;HARD;1;HTTP OK: HTTP/1.1 301 MOVED PERMANENTLY - 249 bytes in 0.001 second response time
[1479081600] CURRENT SERVICE STATE: Notification Server;Current Load;OK;HARD;1;OK - load average: 0.00, 0.00, 0.00
[1479081600] CURRENT SERVICE STATE: Notification Server;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in
[1479081600] CURRENT SERVICE STATE: Notification Server;Root Partition;OK;HARD;1;DISK OK - free space: / 36065 MB (89% inode=95%):
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer;Current Load;OK;HARD;1;OK - load average: 0.18, 0.08, 0.06
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer;Logs Partition;OK;HARD;1;DISK OK - free space: /mnt/logs 45393 MB (95% inode=99%):
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer;Root Partition;OK;HARD;1;DISK OK - free space: / 2618 MB (33% inode=89%):
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer;SSL certificate check;OK;HARD;1;OK - Certificate 'slots.mintdev.ru' will expire on 10/19/2018 11:55.
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer;Slots Admin;OK;HARD;1;HTTP OK: HTTP/1.1 302 Found - 224 bytes in 0.001 second response time
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer;Slots Mobile;OK;HARD;1;HTTP OK: HTTP/1.1 200 OK - 2317 bytes in 0.001 second response time
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer;Slots Socialnet;OK;HARD;1;HTTP OK: HTTP/1.1 200 OK - 2398 bytes in 0.004 second response time
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer Sport;Current Load;OK;HARD;1;OK - load average: 0.02, 0.03, 0.05
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer Sport;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer Sport;Root Partition;OK;HARD;1;DISK OK - free space: / 5344 MB (68% inode=90%):
[1479081600] CURRENT SERVICE STATE: WebLoadBalancer Sport;Sport REST;OK;HARD;1;HTTP OK: HTTP/1.1 200 OK - 319 bytes in 0.002 second response time
[1479084284] Auto-save of retention data completed successfully.
[1479087884] Auto-save of retention data completed successfully.
[1479091484] Auto-save of retention data completed successfully.
[1479095084] Auto-save of retention data completed successfully.
[1479098684] Auto-save of retention data completed successfully.
[1479102284] Auto-save of retention data completed successfully.
[1479105884] Auto-save of retention data completed successfully.
[1479109484] Auto-save of retention data completed successfully.
[1479113084] Auto-save of retention data completed successfully.
[1479116684] Auto-save of retention data completed successfully.
[1479120284] Auto-save of retention data completed successfully.
[1479123884] Auto-save of retention data completed successfully.
[1479127484] Auto-save of retention data completed successfully.
[1479131084] Auto-save of retention data completed successfully.
[1479134684] Auto-save of retention data completed successfully.
[1479138284] Auto-save of retention data completed successfully.
[1479141884] Auto-save of retention data completed successfully.
[1479145484] Auto-save of retention data completed successfully.
As you can see, all works fine... except WebUI
What was done exactly for this upgrade, did you cleanly remove the repository version?
I do not remove repo version. Now, I make backup of whole machine and remove old version. I afraid it remove some necessary configs.
Amazon Linux is loosely based on CentOS
Did it mean what Amazon Linux uncompatible with Nagios 4? Nagios 3 is in repo and works normal.