Re: Getting "Error: Could not read host and service status".
Posted: Thu Nov 05, 2015 9:57 am
Sounds good, let us know your results once you look into httpd.
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
# 'process-host-perfdata' command definition
define command{
command_name process-host-perfdata
command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/lib/nagios3/host-perfdata.out
}
# 'process-service-perfdata' command definition
define command{
command_name process-service-perfdata
command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out
}
define command {
command_name process-service-perfdata-file
command_line /usr/lib/pnp4nagios/libexec/process_perfdata.pl --bulk=/var/lib/pnp4nagios/perfdata/hosts
}
define command {
command_name process-host-perfdata-file
command_line /usr/lib/pnp4nagios/libexec/process_perfdata.pl --bulk=/var/lib/pnp4nagios/perfdata/services
}
Code: Select all
broker_module=/usr/lib/check_mk/livestatus.o /usr/lib/nagios/mk-livestatus/live
broker_module=/usr/lib/ndoutils/ndomod-mysql-3x.o config_file=/etc/nagios3/ndomod.cfg
event_broker_options=-1
Code: Select all
[1462273898] Warning: Return code of 255 for check of service 'Check IOstat' on host 'MOBILE-U64-926' was out of bounds.
[1462273898] Warning: Return code of 255 for check of service 'Check IOstat' on host 'MOBILE-U64-141' was out of bounds.
[1462273898] Warning: Return code of 255 for check of service 'Check System Load' on host 'MOBILE-U64-141' was out of bounds.
[1462273898] Warning: Return code of 255 for check of service 'Git Sync Delay' on host 'MOBILE-U64-141' was out of bounds.
[1462273899] Warning: Return code of 255 for check of service 'Check System Load' on host 'MOBILE-U64-82' was out of bounds.
[1462273899] Warning: Return code of 255 for check of service 'Disk Usage - /' on host 'MOBILE-U64-82' was out of bounds.
[1462273899] Warning: Return code of 255 for check of service 'Builder Java' on host 'MOBILE-U64-83' was out of bounds.
[1462273899] Warning: Return code of 255 for check of service 'Puppet Last Run' on host 'MOBILE-U64-83' was out of bounds.
[1462273899] Warning: Return code of 255 for check of service 'Git Sync Delay' on host 'MOBILE-U64-926' was out of bounds.
[1462273899] Warning: Return code of 255 for check of service 'Check Disk' on host 'MOBILE-WIN-46' was out of bounds.
[1462273908] Warning: Return code of 255 for check of service 'Git Sync Delay' on host 'MOBILE-U64-82' was out of bounds.
[1462273918] Warning: Return code of 255 for check of service 'Builder Java' on host 'MOBILE-U64-519' was out of bounds.
[1462273918] Warning: Return code of 255 for check of service 'Check Memory Usage' on host 'MOBILE-U64-83' was out of bounds.
[1462273918] Warning: Return code of 255 for check of service 'Check IOstat' on host 'MOBILE-U64-874' was out of bounds.
[1462273918] Warning: Return code of 255 for check of service 'Puppet Last Run' on host 'MOBILE-U64-926' was out of bounds.
[1462273918] Warning: Return code of 255 for check of service 'Check System Load' on host 'MOBILE-U64-83' was out of bounds.
[1462273922] Caught SIGTERM, shutting down...
[1462273922] Successfully shutdown... (PID=24279)
[1462273922] ndomod: Shutdown complete.
[1462273922] Event broker module '/usr/lib/ndoutils/ndomod-mysql-3x.o' deinitialized successfully.
[1462273923] livestatus: Socket thread has terminated
[1462273923] Event broker module '/usr/lib/check_mk/livestatus.o' deinitialized successfully.
[1462273939] Nagios 3.5.1 starting... (PID=32651)
[1462273939] Local time is Tue May 03 04:12:19 PDT 2016
[1462273939] LOG VERSION: 2.0
[1462273939] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1462273939] ndomod: Successfully connected to data sink. 0 queued items to flush.
[1462273939] Event broker module '/usr/lib/ndoutils/ndomod-mysql-3x.o' initialized successfully.
[1462273939] livestatus: Livestatus 1.2.2p3 by Mathias Kettner. Socket: '/usr/lib/nagios/mk-livestatus/live'
[1462273939] livestatus: Please visit us at http://mathias-kettner.de/
[1462273939] livestatus: Hint: please try out OMD - the Open Monitoring Distribution
[1462273939] livestatus: Please visit OMD at http://omdistro.org
[1462273939] livestatus: Warning: environment_macros are enabled. This might decrease the overall nagios performance
[1462273939] livestatus: archive path /var/log/nagios3/archives
[1462273939] livestatus: Finished initialization. Further log messages go to /var/log/nagios3/livestatus.log
[1462273939] Event broker module '/usr/lib/check_mk/livestatus.o' initialized successfully.
[1462273939] Finished daemonizing... (New PID=32654)