It looks like you may be missing some required info seeing as how your XP host isn’t attached to a template. Add this into your host definition and see if it make the host appear.
more hosts.cfg
define host{ use windows-server(you could also try generic-host in place of windows-server)
host_name msuntec7
alias MSUNTEC7
address 192.168.2.199
}
I would like to be sure that Nagios use the right configuration files
My configuration files are under :/usr/local/nagios/etc/objects
In the localhost file, I see:
define host{
use linux-server ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
host_name localhost
alias localhost
address 127.0.0.1
}
define hostgroup{
hostgroup_name linux-servers ; The name of the hostgroup
alias Linux Servers ; Long name of the group
members localhost ; Comma separated list of hosts that belong to this group
}
But in the Web Nagios Interface, I don’t see the hots group linux-servers.
Warning: Duplicate definition found for timeperiod ‘24x7’ (config file ‘/etc/nagios3/conf.d/timeperiods.cfg’, starting on line 28)
Error: Could not add object property in file ‘/etc/nagios3/conf.d/timeperiods.cfg’ on line 29.
***> 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 previous
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.
I always install from .tar file. Much easier to administer. This may sound a bit extreme but it seems like your install is fairly new, so it may be worth reinstalling via .tar
None of the RPM installations is standard, tehre isn’t even a standard. What is considered as a “standard” install is from source into /usr/local/nagios.
is your hosts.cfg files listed in the resource file sin nagios.cfg?