What is the name of the host?
Also, please provide the output of the following:
# date
# hwclock
# grep date.timezone /etc/php.ini
# mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
# service ntpd status
# df -i
# df -h
Regarding the instructions below, if you do not have killall, you can install it via the following command:
# yum install psmisc
If psmisc is not in your repos, then instead you can check to make sure nagios is not running with
# ps -aef | grep nagios
If that document does not resolve your issue, please run the following commands in order and report any errors. You ***must*** use mariadb instead of mysqld in the commands below, ***if*** you have mariadb.
# service nagios stop
# service ndo2db stop
# service mysqld stop
# service crond stop
# service httpd stop
# killall -9 nagios
# killall -9 ndo2db
# rm -rf /usr/local/nagios/var/rw/nagios.cmd
# rm -rf /usr/local/nagios/var/nagios.lock
# rm -f /usr/local/nagios/var/ndo.sock
# rm -f /usr/local/nagios/var/ndo2db.lock
# rm -f /usr/local/nagiosxi/var/reconfigure_nagios.lock
# for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
# service ndo2db start
# service nagios start
# service mysqld start
# service crond start
# service httpd start
Also, can you post a screenshot of http://YOURSERVER/nagiosxi/admin/globalconfig.php
Force Check not working for host
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Force Check not working for host
I tried running through command steps outlined to restart/clear out lock files but still not working. This is strange that issue is only with this particular host. I have tried to re-add the host but it still did not work. What exactly is the host check attempting to do? ICMP poll ? Below is the output of the commands requested I run:
# date
Wed Jun 7 20:02:03 GMT 2017
# hwclock
Wed 07 Jun 2017 08:02:06 PM GMT -0.677835 seconds
# grep date.timezone /etc/php.ini
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Africa/Monrovia
# mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
+---------------------+
| NOW() |
+---------------------+
| 2017-06-07 20:02:53 |
+---------------------+
# service ntpd status
ntpd (pid 2092) is running...
# date
Wed Jun 7 20:02:03 GMT 2017
# hwclock
Wed 07 Jun 2017 08:02:06 PM GMT -0.677835 seconds
# grep date.timezone /etc/php.ini
; http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = Africa/Monrovia
# mysql -unagiosxi -pn@gweb -e "SELECT NOW();"
+---------------------+
| NOW() |
+---------------------+
| 2017-06-07 20:02:53 |
+---------------------+
# service ntpd status
ntpd (pid 2092) is running...
Code: Select all
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
327680 12715 314965 4% /
tmpfs 2035305 1 2035304 1% /dev/shm
/dev/sda3 65536 51 65485 1% /boot
/dev/mapper/VolGroup00-LogVol02
1310720 37 1310683 1% /home
/dev/mapper/VolGroup00-LogVol06
1310720 24336 1286384 2% /opt
/dev/mapper/VolGroup00-LogVol07
2621440 21 2621419 1% /store
/dev/mapper/VolGroup00-LogVol03
327680 1077 326603 1% /tmp
/dev/mapper/VolGroup00-LogVol04
5898240 113359 5784881 2% /usr
/dev/mapper/VolGroup00-LogVol05
2621440 4913 2616527 1% /var
rkpe4fanr002:/vol/Patches_Linux_new
3112959 77576 3035383 3% /REPOS
rkpe4fanr002:/vol/OpsPatchRepoL
6225917 169928 6055989 3% /REPOS_OPSCode: Select all
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
4.8G 537M 4.1G 12% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda3 976M 95M 830M 11% /boot
/dev/mapper/VolGroup00-LogVol02
20G 45M 19G 1% /home
/dev/mapper/VolGroup00-LogVol06
20G 2.2G 17G 12% /opt
/dev/mapper/VolGroup00-LogVol07
40G 1.4G 36G 4% /store
/dev/mapper/VolGroup00-LogVol03
4.8G 54M 4.5G 2% /tmp
/dev/mapper/VolGroup00-LogVol04
89G 4.3G 80G 6% /usr
/dev/mapper/VolGroup00-LogVol05
40G 2.3G 36G 6% /var
rkpe4fanr002:/vol/Patches_Linux_new
100G 73G 28G 73% /REPOS
rkpe4fanr002:/vol/OpsPatchRepoL
200G 101G 100G 51% /REPOS_OPS
Last edited by dwhitfield on Thu Jun 08, 2017 10:52 am, edited 1 time in total.
Reason: code blocks FTW
Reason: code blocks FTW
Re: Force Check not working for host
ksafa, what is the name of the "problem" host?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Force Check not working for host
ksafa, can we lock this thread as the issue has been resolved (in PM)? Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!