That what i got after i changed this line in nagios.cfg:
# Definitions for monitoring a Windows machine
cfg_file=/etc/nagios3/objects/windows.cfg
[code]:/etc/nagios3$ nagios3 -v nagios.cfg
Nagios 3.0.2
Copyright © 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-19-2008
License: GPL
Reading configuration data…
Error: Cannot open resource file ‘/etc/nagios3/resource.cfg’ for reading!
Error in configuration file ‘/etc/nagios3/nagios.cfg’ - Line 465 (Check result path is not a valid directory)
***> 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.
tretos@tretos-desktop:/etc/nagios3$ ls
apache2.conf commands.cfg htpasswd.users nagios.cfg~ resource.cfg
cgi.cfg conf.d nagios.cfg objects stylesheets
tretos@tretos-desktop:/etc/nagios3$ [/code]
And thats the Resource.cfg
[code]###########################################################################
RESOURCE.CFG - Resource File for Nagios
You can define $USERx$ macros in this file, which can in turn be used
in command definitions in your host config file(s). $USERx$ macros are
useful for storing sensitive information such as usernames, passwords,
etc. They are also handy for specifying the path to plugins and
event handlers - if you decide to move the plugins or event handlers to
a different directory in the future, you can just update one or two
$USERx$ macros, instead of modifying a lot of command definitions.
The CGIs will not attempt to read the contents of resource files, so
you can set restrictive permissions (600 or 660) on them.
Nagios supports up to 32 $USERx$ macros ($USER1$ through $USER32$)
Resource files may also be used to store configuration directives for
external data sources like MySQL…
###########################################################################
Sets $USER1$ to be the path to the plugins
$USER1$=/usr/lib/nagios/plugins
Sets $USER2$ to be the path to event handlers
#$USER2$=/usr/lib/nagios/plugins/eventhandlers
Store some usernames and passwords (hidden from the CGIs)
#$USER3$=someuser
#$USER4$=somepassword[/code]
Nagios is running, i can login to webpage and see localhost monitored.
Now i just want to have windows monitored and it doesnt work…
I heard about nagios configurator, do you know which one is good ? You think this will help ?