First installation and configuration


#1

Hello,

I have installed NAGIOS 3.0.6 + plugins
(on a DEBIAN server)

I have installed an agent on a Windows XP machine

I have modified the nagios.cfg file to enable the windows.cfg file:

Definitions for monitoring a Windows machine

cfg_file=/usr/local/nagios/etc/objects/windows.cfg

I have modified the windows.cfg file :

define host{
use windows-server ; Inherit default values from a template
host_name msuntec7 ; The name we’re giving to this host
alias MSUNTEC7 ; A longer name associated with the host
address 192.168.2.199
}

define service{
use generic-service
host_name msuntec7
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}

Create a service for monitoring the uptime of the server

Change the host_name to match the name of the host you defined above

define service{
use generic-service
host_name msuntec7
service_description Uptime
check_command check_nt!UPTIME
}

but I don’t see my Windows XP machine in Nagios!!!

Any ideas???

Thanks

Didier
:?


#2

In the /usr/local/nagios/etc/nagios.cfg file, uncomment the line that includes the windows.cfg file. This may also solve the problem of your other post.


#3

Already uncommented:

You can specify individual object config files as shown below:

cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/hosts.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/objects/templates.cfg

Definitions for monitoring the local (Linux) host

cfg_file=/usr/local/nagios/etc/objects/localhost.cfg

Definitions for monitoring a Windows machine

cfg_file=/usr/local/nagios/etc/objects/windows.cfg


#4

did you run
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
?

What’s the result?