Re: no Host duration : N/A (no Host Uptime)
Posted: Mon Feb 16, 2015 3:10 pm
by zaji_nms
Dear abrist
Please note UP Time showing for all the Host, except very few, DATE is correct, all performance graph, alert, notification date/time is okay.
[root@nagoisxi-Cust2 zops]# grep timezone /etc/php.ini
; Defines the default timezone used by the date functions
;
http://www.php.net/manual/en/datetime.c ... e.timezone
date.timezone = ((((our continent/our country is okay)))
Feb 16 14:35:14 nagoisxi-Cust2 nagios: qh: core query handler registered
Feb 16 14:35:14 nagoisxi-Cust2 nagios: wproc: Successfully registered manager as @wproc with query handler
Feb 16 14:51:50 nagoisxi-Cust2 nagios: qh: core query handler registered
Feb 16 14:51:50 nagoisxi-Cust2 nagios: wproc: Successfully registered manager as @wproc with query handler
[root@nagoisxi-Cust2 zops]# tail -25 /var/log/mysqld.log
141229 16:07:45 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141229 16:08:08 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141229 16:08:08 InnoDB: Initializing buffer pool, size = 8.0M
141229 16:08:08 InnoDB: Completed initialization of buffer pool
141229 16:08:08 InnoDB: Started; log sequence number 0 44233
141229 16:08:08 [Note] Event Scheduler: Loaded 0 events
141229 16:08:08 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
141229 16:08:17 [Note] /usr/libexec/mysqld: Normal shutdown
141229 16:08:17 [Note] Event Scheduler: Purging the queue. 0 events
141229 16:08:19 InnoDB: Starting shutdown...
141229 16:08:23 InnoDB: Shutdown completed; log sequence number 0 44233
141229 16:08:23 [Note] /usr/libexec/mysqld: Shutdown complete
141229 16:08:23 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141229 16:08:26 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141229 16:08:26 InnoDB: Initializing buffer pool, size = 8.0M
141229 16:08:26 InnoDB: Completed initialization of buffer pool
141229 16:08:26 InnoDB: Started; log sequence number 0 44233
141229 16:08:26 [Note] Event Scheduler: Loaded 0 events
141229 16:08:26 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
141229 16:08:44 [Note] Found 5409 of 0 rows when repairing './nagios/nagios_customvariablestatus'
After your answer to my problem, Can you explain what is 141229 above line?
Regards
Re: no Host duration : N/A (no Host Uptime)
Posted: Thu Feb 19, 2015 8:55 am
by questrad
Hello
I have the same situation.
Here is log from ndo2db regarding to that host:
tail -F /usr/local/nagios/var/ndo2db.debug | grep SQ1VPLRSA001
[1424353946.326735] [002.0] [pid=8777] INSERT INTO nagios_externalcommands SET instance_id='1', command_type='98', entry_time=FROM_UNIXTIME(1424353946), command_name='SCHEDULE_FORCED_HOST_CHECK', command_args='SQ1VPLRSA001;1424353941'
[1424353946.327482] [002.0] [pid=8777] INSERT INTO nagios_hoststatus SET instance_id='1', host_object_id='120471', status_update_time=FROM_UNIXTIME(1424353946), output='OK - SQ1VPLRSA001\.TOR\.QUEST\.COM: rta 24\.467ms, lost 0%', long_output='', perfdata='rta=24\.467ms;3000\.000;5000\.000;0; pl=0%;80;100;; rtmax=24\.678ms;;;; rtmin=24\.301ms;;;;', current_state='0', has_been_checked='1', should_be_scheduled='1', current_check_attempt='1', max_check_attempts='3', last_check=FROM_UNIXTIME(1424353874), next_check=FROM_UNIXTIME(1424353941), check_type='0', last_state_change=FROM_UNIXTIME(0), last_hard_state_change=FROM_UNIXTIME(0), last_hard_state='0', last_time_up=FROM_UNIXTIME(1424353874), last_time_down=FROM_UNIXTIME(0), last_time_unreachable=FROM_UNIXTIME(0), state_type='1', last_notification=FROM_UNIXTIME(0), next_notification=FROM_UNIXTIME(0), no_more_notifications='0', notifications_enabled='1', problem_has_been_acknowledged='0', acknowledgement_type='0', current_notification_number='0', passive_checks_enabled='1', active_checks_enabled='1', event_handler_enabled='0', flap_detection_enabled='1', is_flapping='0', percent_state_change='0.000000', latency='0.000100', execution_time='0.125890', scheduled_downtime_depth='0', failure_prediction_enabled='0', process_performance_data='1', obsess_over_host='1', modified_host_attributes='0', event_handler='xi_host_notification_handler', check_command='check_xi_host_ping!3000\.0!80%!5000\.0!100%!!!!', normal_check_interval='2.000000', retry_check_interval='1.000000', check_timeperiod_object_id='122' ON DUPLICATE KEY UPDATE instance_id='1', host_object_id='120471', status_update_time=FROM_UNIXTIME(1424353946), output='OK - SQ1VPLRSA001\.TOR\.QUEST\.COM: rta 24\.467ms, lost 0%', long_output='', perfdata='rta=24\.467ms;3000\.000;5000\.000;0; pl=0%;80;100;; rtmax=24\.678ms;;;; rtmin=24\.301ms;;;;', current_state='0', has_been_checked='1', should_be_scheduled='1', current_check_attempt='1', max_check_attempts='3', last_check=FROM_UNIXTIME(1424353874), next_check=FROM_UNIXTIME(1424353941), check_type='0', last_state_change=FROM_UNIXTIME(0), last_hard_state_change=FROM_UNIXTIME(0), last_hard_state='0', last_time_up=FROM_UNIXTIME(1424353874), last_time_down=FROM_UNIXTIME(0), last_time_unreachable=FROM_UNIXTIME(0), state_type='1', last_notification=FROM_UNIXTIME(0), next_notification=FROM_UNIXTIME(0), no_more_notifications='0', notifications_enabled='1', problem_has_been_acknowledged='0', acknowledgement_type='0', current_notification_number='0', passive_checks_enabled='1', active_checks_enabled='1', event_handler_enabled='0', flap_detection_enabled='1', is_flapping='0', percent_state_change='0.000000', latency='0.000100', execution_time='0.125890', scheduled_downtime_depth='0', failure_prediction_enabled='0', process_performance_data='1', obsess_over_host='1', modified_host_attributes='0', event_handler='xi_host_notification_handler', check_command='check_xi_host_ping!3000\.0!80%!5000\.0!100%!!!!', normal_check_interval='2.000000', retry_check_interval='1.000000', check_timeperiod_object_id='122'
[1424353946.455953] [002.0] [pid=8777] INSERT INTO nagios_hoststatus SET instance_id='1', host_object_id='120471', status_update_time=FROM_UNIXTIME(1424353946), output='OK - SQ1VPLRSA001\.TOR\.QUEST\.COM: rta 24\.375ms, lost 0%', long_output='', perfdata='rta=24\.375ms;3000\.000;5000\.000;0; pl=0%;80;100;; rtmax=24\.584ms;;;; rtmin=24\.192ms;;;;', current_state='0', has_been_checked='1', should_be_scheduled='1', current_check_attempt='1', max_check_attempts='3', last_check=FROM_UNIXTIME(1424353946), next_check=FROM_UNIXTIME(1424354066), check_type='0', last_state_change=FROM_UNIXTIME(0), last_hard_state_change=FROM_UNIXTIME(0), last_hard_state='0', last_time_up=FROM_UNIXTIME(1424353946), last_time_down=FROM_UNIXTIME(0), last_time_unreachable=FROM_UNIXTIME(0), state_type='1', last_notification=FROM_UNIXTIME(0), next_notification=FROM_UNIXTIME(0), no_more_notifications='0', notifications_enabled='1', problem_has_been_acknowledged='0', acknowledgement_type='0', current_notification_number='0', passive_checks_enabled='1', active_checks_enabled='1', event_handler_enabled='0', flap_detection_enabled='1', is_flapping='0', percent_state_change='0.000000', latency='0.000230', execution_time='0.128340', scheduled_downtime_depth='0', failure_prediction_enabled='0', process_performance_data='1', obsess_over_host='1', modified_host_attributes='0', event_handler='xi_host_notification_handler', check_command='check_xi_host_ping!3000\.0!80%!5000\.0!100%!!!!', normal_check_interval='2.000000', retry_check_interval='1.000000', check_timeperiod_object_id='122' ON DUPLICATE KEY UPDATE instance_id='1', host_object_id='120471', status_update_time=FROM_UNIXTIME(1424353946), output='OK - SQ1VPLRSA001\.TOR\.QUEST\.COM: rta 24\.375ms, lost 0%', long_output='', perfdata='rta=24\.375ms;3000\.000;5000\.000;0; pl=0%;80;100;; rtmax=24\.584ms;;;; rtmin=24\.192ms;;;;', current_state='0', has_been_checked='1', should_be_scheduled='1', current_check_attempt='1', max_check_attempts='3', last_check=FROM_UNIXTIME(1424353946), next_check=FROM_UNIXTIME(1424354066), check_type='0', last_state_change=FROM_UNIXTIME(0), last_hard_state_change=FROM_UNIXTIME(0), last_hard_state='0', last_time_up=FROM_UNIXTIME(1424353946), last_time_down=FROM_UNIXTIME(0), last_time_unreachable=FROM_UNIXTIME(0), state_type='1', last_notification=FROM_UNIXTIME(0), next_notification=FROM_UNIXTIME(0), no_more_notifications='0', notifications_enabled='1', problem_has_been_acknowledged='0', acknowledgement_type='0', current_notification_number='0', passive_checks_enabled='1', active_checks_enabled='1', event_handler_enabled='0', flap_detection_enabled='1', is_flapping='0', percent_state_change='0.000000', latency='0.000230', execution_time='0.128340', scheduled_downtime_depth='0', failure_prediction_enabled='0', process_performance_data='1', obsess_over_host='1', modified_host_attributes='0', event_handler='xi_host_notification_handler', check_command='check_xi_host_ping!3000\.0!80%!5000\.0!100%!!!!', normal_check_interval='2.000000', retry_check_interval='1.000000', check_timeperiod_object_id='122'
[1424353946.457205] [002.0] [pid=8777] INSERT INTO nagios_hoststatus SET instance_id='1', host_object_id='120471', status_update_time=FROM_UNIXTIME(1424353946), output='OK - SQ1VPLRSA001\.TOR\.QUEST\.COM: rta 24\.375ms, lost 0%', long_output='', perfdata='rta=24\.375ms;3000\.000;5000\.000;0; pl=0%;80;100;; rtmax=24\.584ms;;;; rtmin=24\.192ms;;;;', current_state='0', has_been_checked='1', should_be_scheduled='1', current_check_attempt='1', max_check_attempts='3', last_check=FROM_UNIXTIME(1424353946), next_check=FROM_UNIXTIME(1424354066), check_type='0', last_state_change=FROM_UNIXTIME(0), last_hard_state_change=FROM_UNIXTIME(0), last_hard_state='0', last_time_up=FROM_UNIXTIME(1424353946), last_time_down=FROM_UNIXTIME(0), last_time_unreachable=FROM_UNIXTIME(0), state_type='1', last_notification=FROM_UNIXTIME(0), next_notification=FROM_UNIXTIME(0), no_more_notifications='0', notifications_enabled='1', problem_has_been_acknowledged='0', acknowledgement_type='0', current_notification_number='0', passive_checks_enabled='1', active_checks_enabled='1', event_handler_enabled='0', flap_detection_enabled='1', is_flapping='0', percent_state_change='0.000000', latency='0.000230', execution_time='0.128340', scheduled_downtime_depth='0', failure_prediction_enabled='0', process_performance_data='1', obsess_over_host='1', modified_host_attributes='0', event_handler='xi_host_notification_handler', check_command='check_xi_host_ping!3000\.0!80%!5000\.0!100%!!!!', normal_check_interval='2.000000', retry_check_interval='1.000000', check_timeperiod_object_id='122' ON DUPLICATE KEY UPDATE instance_id='1', host_object_id='120471', status_update_time=FROM_UNIXTIME(1424353946), output='OK - SQ1VPLRSA001\.TOR\.QUEST\.COM: rta 24\.375ms, lost 0%', long_output='', perfdata='rta=24\.375ms;3000\.000;5000\.000;0; pl=0%;80;100;; rtmax=24\.584ms;;;; rtmin=24\.192ms;;;;', current_state='0', has_been_checked='1', should_be_scheduled='1', current_check_attempt='1', max_check_attempts='3', last_check=FROM_UNIXTIME(1424353946), next_check=FROM_UNIXTIME(1424354066), check_type='0', last_state_change=FROM_UNIXTIME(0), last_hard_state_change=FROM_UNIXTIME(0), last_hard_state='0', last_time_up=FROM_UNIXTIME(1424353946), last_time_down=FROM_UNIXTIME(0), last_time_unreachable=FROM_UNIXTIME(0), state_type='1', last_notification=FROM_UNIXTIME(0), next_notification=FROM_UNIXTIME(0), no_more_notifications='0', notifications_enabled='1', problem_has_been_acknowledged='0', acknowledgement_type='0', current_notification_number='0', passive_checks_enabled='1', active_checks_enabled='1', event_handler_enabled='0', flap_detection_enabled='1', is_flapping='0', percent_state_change='0.000000', latency='0.000230', execution_time='0.128340', scheduled_downtime_depth='0', failure_prediction_enabled='0', process_performance_data='1', obsess_over_host='1', modified_host_attributes='0', event_handler='xi_host_notification_handler', check_command='check_xi_host_ping!3000\.0!80%!5000\.0!100%!!!!', normal_check_interval='2.000000', retry_check_interval='1.000000', check_timeperiod_object_id='122'