WMI config error
Posted: Thu Feb 12, 2015 3:31 pm
Hi I haven't been able to add a WMI host from my Hyper-V test domain.
Here is the error and the contents of the referenced config file.
Reading configuration data...
Read main config file okay...
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/192.168.102.30.cfg', starting on line 16)
Error processing object config files!
***> 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 previos
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.
Config File /usr/local/nagios/etc/services/192.168.102.30 contents.............
define service {
host_name 192.168.102.30
service_description LDAP
use xiwizard_tcp_service
check_command check_xi_service_tcp!-p 389
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard autodiscovery
register 1
}
define service {
host_name 192.168.102.30
service_description NetBIOS
use xiwizard_tcp_service
check_command check_xi_service_tcp!-p 139
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard autodiscovery
register 1
}
define service {
host_name 192.168.102.30
service_description Ping
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard autodiscovery
register 1
}
define service {
host_name 192.168.102.30
service_description RDP
use xiwizard_tcp_service
check_command check_xi_service_tcp!-p 3389
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
As you can see services and host are included in the config file so not sure how to resolve this. I have been through the steps of setting up the windows machine and the nagios host server.
Cheers pj
Here is the error and the contents of the referenced config file.
Reading configuration data...
Read main config file okay...
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/192.168.102.30.cfg', starting on line 16)
Error processing object config files!
***> 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 previos
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.
Config File /usr/local/nagios/etc/services/192.168.102.30 contents.............
define service {
host_name 192.168.102.30
service_description LDAP
use xiwizard_tcp_service
check_command check_xi_service_tcp!-p 389
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard autodiscovery
register 1
}
define service {
host_name 192.168.102.30
service_description NetBIOS
use xiwizard_tcp_service
check_command check_xi_service_tcp!-p 139
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard autodiscovery
register 1
}
define service {
host_name 192.168.102.30
service_description Ping
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard autodiscovery
register 1
}
define service {
host_name 192.168.102.30
service_description RDP
use xiwizard_tcp_service
check_command check_xi_service_tcp!-p 3389
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
As you can see services and host are included in the config file so not sure how to resolve this. I have been through the steps of setting up the windows machine and the nagios host server.
Cheers pj