I add one windows host.
and I check the configure file, 3 hosts there.
But I only find two linux servers in the Host Detail.
In the “Status Summary For All Host Groups”, I can see the windows host.
But the host status is “No matching hosts” and service status is “No matching services”.
What wrong with it?
Windows host lost
Can you see the server at the “Service Detail”?
I think you need to create a check for this server, I suggest you try to add the server at the check_ping command. If it is good, you should see this server at the “service detail”, now with at least a ping status.
Did you not only add a service group in stead of a host???
Add a windows host:
On the windows machine i assume you have nrpe_nt installed and port 5666/tcp is open?
Then in your nrpe\bin folder on the windows machine you have a file (nrpe.cfg) like this:
#VOORBEELD WINDOWS C:\NRPE\BIN\NRPE.CFG
server_port=5666
allowed_hosts=192.168.1.xx
dont_blame_nrpe=1
debug=1
command_timeout=30
COMMAND DEFINITIONS
command[nt_check_disk_c]=C:\nrpe\bin\diskspace_nrpe_nt.exe c: 70 90
command[nt_check_disk_d]=C:\nrpe\bin\diskspace_nrpe_nt.exe d: 70 90
command[nt_check_disk_e]=C:\nrpe\bin\diskspace_nrpe_nt.exe e: 70 90
command[nt_cpuload]=C:\nrpe\bin\cpuload_nrpe_nt.exe 50 80
command[nt_memload]=C:\nrpe\bin\memload_nrpe_nt.exe 70 90
command[nt_system]=C:\nrpe\bin\service_nrpe_nt.exe “System”
And on your nagios server you should have a template (also added in /usr/local/nagios/etc/nagios.cfg) with:
- a hostgroup & (windows) host:
aTemplate.cfg
define hostgroup{
hostgroup_name think_something
alias xxxx
members your_windows_machine_name
}
define host{
use generic-server
host_name your windows hostname
alias Windows machine
address 192.168.1.xxx
parents esx01 (optioneel)
}
- a service check like (let’s say check your windows c disk):
in a template.cfg:
define service{
use windows-service
host_name your_windows_machine
service_description C_Disk
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 2
retry_check_interval 1
contact_groups admins
notification_interval 240
notification_period 24x7
notification_options w,u,c,r
check_command check_nrpe!nt_check_disk_c
}
I should check or you have at least al that’s above here, this should work.
Good luck.
Regards,
Remco