Re: Hosts and Services not appearing in views
Posted: Thu Aug 29, 2013 1:05 pm
yeslmiltchev wrote:Can you see the hosts/services in the Nagios Core?
Code: Select all
http://server_ip/nagios
Support for Nagios products and services
https://support.nagios.com/forum/
yeslmiltchev wrote:Can you see the hosts/services in the Nagios Core?
Code: Select all
http://server_ip/nagios
Code: Select all
service nagios stop
killall -9 nagios
service ndo2db stop
service ndo2db start
service nagios startStill not workinglmiltchev wrote:I wonder if it is a ndo issue... Run the following commands:
Let us know if this fixed your problem.Code: Select all
service nagios stop killall -9 nagios service ndo2db stop service ndo2db start service nagios start
Code: Select all
#service nagios stop
Stopping nagios: done.
# killall -9 nagios
nagios: no process killed
# service ndo2db stop
Stopping ndo2db:head: cannot open `/usr/local/nagios/var/ndo2db.lock' for reading: No such file or directory
done.
# service ndo2db start
Starting ndo2db: done.
# service nagios start
Starting nagios:
done.
Code: Select all
tail 20 /var/log/httpd/error_log
tail 20 /var/log/messages
tail /usr/local/nagios/var/nagios.logNOTE: I omitted our host name from the loglmiltchev wrote:Run the following commands and show the output in code wraps:
Code: Select all
tail 20 /var/log/httpd/error_log tail 20 /var/log/messages tail /usr/local/nagios/var/nagios.log
Code: Select all
# tail -20 /var/log/httpd/error_log
[Thu Aug 29 11:13:57 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: min_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 108, referer: http://******/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 29 11:13:57 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: max_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 109, referer: http://******/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 29 11:13:57 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: avg_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 110, referer: http://******/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 29 11:13:57 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: min_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 115, referer: http://******/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 29 11:13:57 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: max_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 116, referer: http://******/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 29 11:13:57 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: avg_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 117, referer: http://******/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 29 11:13:57 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: min_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 118, referer: http://******/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 29 11:13:57 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: max_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 119, referer: http://******/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 29 11:13:57 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: avg_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 120, referer: http://******/nagiosxi/includes/components/ccm/xi-index.php
[Thu Aug 29 11:16:34 2013] [error] [client 172.22.98.4] PHP Notice: Undefined variable: startdate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://******/nagiosxi/includes/components/graphexplorer/
[Thu Aug 29 11:16:34 2013] [error] [client 172.22.98.4] PHP Notice: Undefined variable: enddate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://******/nagiosxi/includes/components/graphexplorer/
[Thu Aug 29 11:16:52 2013] [error] [client 172.22.98.4] PHP Notice: Undefined variable: startdate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://******/nagiosxi/includes/components/graphexplorer/
[Thu Aug 29 11:16:52 2013] [error] [client 172.22.98.4] PHP Notice: Undefined variable: enddate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://******/nagiosxi/includes/components/graphexplorer/
[Thu Aug 29 11:16:54 2013] [error] [client 172.22.98.4] PHP Notice: Undefined offset: 0 in /usr/local/nagiosxi/html/includes/components/bbmap/bbmap.inc.php on line 229, referer: http://******/nagiosxi/includes/components/bbmap/
[Thu Aug 29 11:17:22 2013] [error] [client 172.22.98.4] PHP Notice: Undefined variable: startdate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://******/nagiosxi/includes/components/graphexplorer/
[Thu Aug 29 11:17:22 2013] [error] [client 172.22.98.4] PHP Notice: Undefined variable: enddate in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 135, referer: http://******/nagiosxi/includes/components/graphexplorer/
[Thu Aug 29 11:17:26 2013] [error] [client 172.22.98.4] PHP Warning: arsort() expects parameter 1 to be array, null given in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 517, referer: http://******/nagiosxi/includes/components/latestalerts/
[Thu Aug 29 11:17:26 2013] [error] [client 172.22.98.4] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 518, referer: http://******/nagiosxi/includes/components/latestalerts/
[Thu Aug 29 11:17:26 2013] [error] [client 172.22.98.4] PHP Notice: Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 521, referer: http://******/nagiosxi/includes/components/latestalerts/
[Thu Aug 29 11:20:29 2013] [error] [client 172.22.98.4] PHP Notice: Undefined index: contactgroup_members in /usr/local/nagiosxi/html/includes/components/ccm/classes/Form_class.php on line 592, referer: http://******/nagiosxi//includes/components/ccm/?cmd=view&type=contactCode: Select all
tail -20 /var/log/messages
returns nothing, because the file is empty.
# ls -altr /var/log/messages
-rw------- 1 root root 0 Aug 25 03:50 /var/log/messages
Code: Select all
# tail -20 /usr/local/nagios/var/nagios.log
[1377793563] Caught SIGTERM, shutting down...
[1377793563] Successfully shutdown... (PID=477)
[1377793563] Nagios 3.5.0 starting... (PID=2057)
[1377793563] Local time is Thu Aug 29 11:26:03 CDT 2013
[1377793563] LOG VERSION: 2.0
[1377793563] Error: Could not load module '/usr/local/nagios/bin/ndomod.o' -> /tmp/nebmod14BwcZ: failed to map segment from shared object: Operation not permitted
[1377793563] Warning: Host recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify down and/or unreachable options as well
[1377793563] Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
[1377793563] Finished daemonizing... (New PID=2058)
[1377797163] Auto-save of retention data completed successfully.
[1377800763] Auto-save of retention data completed successfully.
[1377802849] Caught SIGTERM, shutting down...
[1377802849] Successfully shutdown... (PID=2058)
[1377802902] Nagios 3.5.0 starting... (PID=11186)
[1377802902] Local time is Thu Aug 29 14:01:42 CDT 2013
[1377802902] LOG VERSION: 2.0
[1377802902] Error: Could not load module '/usr/local/nagios/bin/ndomod.o' -> /tmp/nebmodVyRc5h: failed to map segment from shared object: Operation not permitted
[1377802902] Warning: Host recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify down and/or unreachable options as well
[1377802902] Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
[1377802902] Finished daemonizing... (New PID=11187)Code: Select all
chmod 777 /tmpCode: Select all
service nagios stop
service ndo2db stop
service ndo2db start
service nagios startCode: Select all
/usr/local/nagios/etc/nagios.cfgCode: Select all
temp_path=/tmpCode: Select all
temp_path=/export/tmpCode: Select all
service nagios restart