I can ping it, my other nagios server is showing that it is up, but just refusing the connections.
I can even log onto it with putty. It also stopped sending notifications when it went down.
So I did the f0llowing, and nagios started flooding my users with alerts.
Code: Select all
[root@lkennagiosp02 ~]# service nagios restart
Running configuration check...done.
Stopping nagios: No lock file found in /usr/local/nagios/var/nagios.lock
Starting nagios: done.
[root@lkennagiosp02 ~]# No lock file found in /usr/local/nagios/var/nagios.lock
-bash: No: command not found
[root@lkennagiosp02 ~]# service http restart
http: unrecognized service
[root@lkennagiosp02 ~]# service mysqld start
Starting mysqld: [ OK ]
[root@lkennagiosp02 ~]# service nagios stop
Stopping nagios: .done.
Code: Select all
[root@lkennagiosp02 ~]# service nagios restart
Running configuration check...done.
Stopping nagios: No lock file found in /usr/local/nagios/var/nagios.lock
Starting nagios: done
[root@lkennagiosp02 ~]# nagios -v /etc/nagios/nagios.cfg
Nagios Core 3.4.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 05-11-2012
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Error: Cannot open main configuration file '/etc/nagios/nagios.cfg' for reading!
Error processing main config file!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
[root@lkennagiosp02 ~]# No lock file found in /usr/local/nagios/var/nagios.lock
-bash: No: command not found
[root@lkennagiosp02 ~]# tup
-bash: tup: command not found
[root@lkennagiosp02 ~]# top
top - 14:19:44 up 9 days, 21:09, 1 user, load average: 6.83, 5.45, 3.83
Tasks: 758 total, 1 running, 757 sleeping, 0 stopped, 0 zombie
Cpu(s): 14.8%us, 2.4%sy, 0.0%ni, 82.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 16296880k total, 13361724k used, 2935156k free, 317120k buffers
Swap: 18530296k total, 0k used, 18530296k free, 11772916k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1223 nagios 20 0 148m 13m 2260 S 11.8 0.1 0:00.36 check_wmi_plus.
1225 nagios 20 0 148m 13m 2260 S 11.8 0.1 0:00.36 check_wmi_plus.
1231 nagios 20 0 148m 13m 2260 S 11.8 0.1 0:00.36 check_wmi_plus.
1227 nagios 20 0 148m 13m 2260 S 11.5 0.1 0:00.35 check_wmi_plus.
1233 nagios 20 0 148m 13m 2260 S 11.5 0.1 0:00.35 check_wmi_plus.
1209 nagios 20 0 148m 13m 2260 S 9.9 0.1 0:00.30 check_wmi_plus.
1211 nagios 20 0 148m 13m 2260 S 9.9 0.1 0:00.30 check_wmi_plus.
1213 nagios 20 0 148m 13m 2260 S 9.9 0.1 0:00.30 check_wmi_plus.
1215 nagios 20 0 148m 13m 2260 S 9.9 0.1 0:00.30 check_wmi_plus.
1217 nagios 20 0 148m 13m 2260 S 9.9 0.1 0:00.30 check_wmi_plus.
1219 nagios 20 0 148m 13m 2260 S 9.9 0.1 0:00.30 check_wmi_plus.
1221 nagios 20 0 148m 13m 2260 S 9.9 0.1 0:00.30 check_wmi_plus.
1229 nagios 20 0 148m 13m 2260 S 9.5 0.1 0:00.29 check_wmi_plus.
30110 nagios 20 0 50912 21m 1032 S 8.9 0.1 2:11.85 nagios
7468 root 20 0 15656 1988 988 R 1.3 0.0 0:03.30 top
47 root RT 0 0 0 0 S 0.3 0.0 0:00.93 migration/11
136 root 20 0 0 0 0 S 0.3 0.0 0:28.79 events/5
2074 postgres 20 0 208m 12m 11m S 0.3 0.1 0:54.94 postmaster
29066 nagios 20 0 206m 20m 7400 S 0.3 0.1 0:00.26 php
29068 nagios 20 0 207m 20m 7368 S 0.3 0.1 0:00.27 php
29099 postgres 20 0 209m 5972 3736 S 0.3 0.0 0:00.07 postmaster
29156 postgres 20 0 209m 6040 3812 S 0.3 0.0 0:00.03 postmaster
1 root 20 0 19204 1504 1220 S 0.0 0.0 0:03.22 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.02 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.08 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
7 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/1
9 root 20 0 0 0 0 S 0.0 0.0 0:00.08 ksoftirqd/1
10 root RT 0 0 0 0 S 0.0 0.0 0:00.05 watchdog/1
11 root RT 0 0 0 0 S 0.0 0.0 0:00.12 migration/2
12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/2
13 root 20 0 0 0 0 S 0.0 0.0 0:00.03 ksoftirqd/2
14 root RT 0 0 0 0 S 0.0 0.0 0:00.12 watchdog/2
15 root RT 0 0 0 0 S 0.0 0.0 0:00.21 migration/3
16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/3
17 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/3
18 root RT 0 0 0 0 S 0.0 0.0 0:03.21 watchdog/3