Difference between revisions of "/var/log/nagios3/nagios.log"
Jump to navigation
Jump to search
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[/var/log/nagios3/]]nagios.log | [[/var/log/nagios3/]]nagios.log | ||
[[/var/log/nagios3/archives/]] | [[/var/log/nagios3/archives/]] | ||
+ | |||
+ | OK | DOWN | ALERT | CRITICAL | ||
grep [[ALERT]] /var/log/nagios3/archives/* [[/var/log/nagios3/]]nagios.log | grep [[ALERT]] /var/log/nagios3/archives/* [[/var/log/nagios3/]]nagios.log | ||
grep [[CRITICAL]] /var/log/nagios3/archives/* [[/var/log/nagios3/]]nagios.log | grep [[CRITICAL]] /var/log/nagios3/archives/* [[/var/log/nagios3/]]nagios.log | ||
+ | |||
+ | grep CRITICAL /var/log/nagios3/archives/* /var/log/nagios3/nagios.log | egrep -v "Disk Space|Connection refused|Current Load|Socket timeout" | ||
+ | |||
+ | [[journalctl -u nagios3]] | grep ALERT | ||
[1695902343] [[SERVICE ALERT]]: localhost;Current Load;OK;HARD;1;OK - load average: 0.29, 3.05, 2.02 | [1695902343] [[SERVICE ALERT]]: localhost;Current Load;OK;HARD;1;OK - load average: 0.29, 3.05, 2.02 | ||
− | [ | + | |
+ | /var/log/nagios3/archives/nagios-11-11-2023-00.log:[1699592494] Warning: The check of service 'Disk Space' on host 'localhost' could not be performed due to a fork() error: '[[Cannot allocate memory]]'. The check will be rescheduled. | ||
Line 33: | Line 40: | ||
Connection refused | Connection refused | ||
[1655769600] CURRENT SERVICE STATE: localhost;Total Processes;OK;HARD;1;PROCS OK: 103 processes | [1655769600] CURRENT SERVICE STATE: localhost;Total Processes;OK;HARD;1;PROCS OK: 103 processes | ||
+ | |||
+ | == ALERT == | ||
+ | [1702012007] SERVICE ALERT: localhost;Current Load;OK;HARD;1;OK - load average: 0.13, 1.10, 0.79 | ||
+ | |||
+ | == [[CRITICAL]] == | ||
+ | [1626134420] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;connect to address 127.0.0.1 and port 80: [[Connection refused]] | ||
+ | |||
+ | [1594324208] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;CRITICAL - [[Socket timeout after]] 10 seconds | ||
+ | |||
+ | [1588658318] SERVICE ALERT: localhost;Disk Space;[[CRITICAL]];SOFT;1;[[DISK CRITICAL]] - free space: /snap/core/8689 0 MB (0% inode=0%): /snap/core18/1650 0 MB (0% inode=0%): /snap/yq/574 0 MB (0% inode=0%): /snap/core/8592 0 MB (0% inode=0%): /snap/yq/491 0 MB (0% inode=0%): /snap/core18/1668 0 MB (0% inode=0%): | ||
+ | |||
+ | [1701925307] SERVICE ALERT: localhost;'''[[Current Load]]''';CRITICAL;HARD;1;CRITICAL - load average: 16.28, 5.36, 1.94 | ||
== Related == | == Related == |
Latest revision as of 16:51, 10 December 2023
/var/log/nagios3/nagios.log /var/log/nagios3/archives/
OK | DOWN | ALERT | CRITICAL
grep ALERT /var/log/nagios3/archives/* /var/log/nagios3/nagios.log grep CRITICAL /var/log/nagios3/archives/* /var/log/nagios3/nagios.log
grep CRITICAL /var/log/nagios3/archives/* /var/log/nagios3/nagios.log | egrep -v "Disk Space|Connection refused|Current Load|Socket timeout"
journalctl -u nagios3 | grep ALERT
[1695902343] SERVICE ALERT: localhost;Current Load;OK;HARD;1;OK - load average: 0.29, 3.05, 2.02
/var/log/nagios3/archives/nagios-11-11-2023-00.log:[1699592494] Warning: The check of service 'Disk Space' on host 'localhost' could not be performed due to a fork() error: 'Cannot allocate memory'. The check will be rescheduled.
[1619568000] LOG ROTATION: DAILY [1619568000] LOG VERSION: 2.0 [1619568000] CURRENT HOST STATE: localhost;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.05 ms [1619568000] CURRENT SERVICE STATE: localhost;Current Load;OK;HARD;1;OK - load average: 0.00, 0.00, 0.00 [1619568000] CURRENT SERVICE STATE: localhost;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in [1619568000] CURRENT SERVICE STATE: localhost;Disk Space;CRITICAL;HARD;4;DISK CRITICAL - free space: / 5055 MB (20% inode=94%): /snap/core18/1988 0 MB (0% inode=0%): /snap/yq/1040 0 MB (0% inode=0%): /snap/core/10908 0 MB (0% inode=0%): /snap/core18/1997 0 MB (0% inode=0%): /snap/core/10958 0 MB (0% inode=0%): /snap/yq/1077 0 MB (0% inode=0%): [1619568000] CURRENT SERVICE STATE: localhost;HTTP;OK;HARD;1;HTTP OK: HTTP/1.1 301 Moved Permanently - 359 bytes in 0.000 second response time [1619568000] CURRENT SERVICE STATE: localhost;SSH;CRITICAL;HARD;4;connect to address 127.0.0.1 and port 22: Connection refused [1619568000] CURRENT SERVICE STATE: localhost;Total Processes;OK;HARD;1;PROCS OK: 109 processes [1619571358] Auto-save of retention data completed successfully. [1619574958] Auto-save of retention data completed successfully. .../...
[1655769600] CURRENT HOST STATE: localhost;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.05 ms [1655769600] CURRENT SERVICE STATE: localhost;Current Load;OK;HARD;1;OK - load average: 0.07, 0.08, 0.02 [1655769600] CURRENT SERVICE STATE: localhost;Current Users;OK;HARD;1;USERS OK - 0 users currently logged in [1655769600] CURRENT SERVICE STATE: localhost;Disk Space;CRITICAL;HARD;4;DISK CRITICAL - /sys/kernel/debug/tracing is not accessible: Permission denied [1655769600] CURRENT SERVICE STATE: localhost;HTTP;OK;HARD;1;HTTP OK: HTTP/1.1 301 Moved Permanently - 359 bytes in 0.004 second response time [1655769600] CURRENT SERVICE STATE: localhost;SSH;CRITICAL;HARD;4;connect to address 127.0.0.1 and port 22: Connection refused [1655769600] CURRENT SERVICE STATE: localhost;Total Processes;OK;HARD;1;PROCS OK: 103 processes
Contents
ALERT[edit]
[1702012007] SERVICE ALERT: localhost;Current Load;OK;HARD;1;OK - load average: 0.13, 1.10, 0.79
CRITICAL[edit]
[1626134420] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;connect to address 127.0.0.1 and port 80: Connection refused
[1594324208] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds
[1588658318] SERVICE ALERT: localhost;Disk Space;CRITICAL;SOFT;1;DISK CRITICAL - free space: /snap/core/8689 0 MB (0% inode=0%): /snap/core18/1650 0 MB (0% inode=0%): /snap/yq/574 0 MB (0% inode=0%): /snap/core/8592 0 MB (0% inode=0%): /snap/yq/491 0 MB (0% inode=0%): /snap/core18/1668 0 MB (0% inode=0%):
[1701925307] SERVICE ALERT: localhost;Current Load;CRITICAL;HARD;1;CRITICAL - load average: 16.28, 5.36, 1.94
Related[edit]
See also[edit]
Advertising: