I have installed Ubuntu 8.10 Desktop and all 270MB of updates. I followed the install instructions located here (http://beginlinux.com/blog/2008/11/install-nagios-3-on-ubuntu-810/
). Within a few minutes i was using the web-interface to view the localhost.
I proceeded to the next step; monitoring a Windows host. When i got to the point to edit the windows.cfg file, I noticed the folder /usr/local/nagios does not exist. Instead, all .cfg files were placed in /etc/nagios3/objects. I made all changes necessary to nagios.cfg and windows.cfg according to (http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html
) and also verified everything according to (http://www.thegeekstuff.com/2008/07/how-to-monitor-remote-windows-machine-using-nagios-on-linux
). I checked my spelling and syntax numerous times on the config files but i still get this when i try to verify my configuration:
root@nagios:/etc/nagios3# nagios3 -v nagios.cfg
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org
Last Modified: 05-19-2008
Reading configuration data...
Error: Template 'windows-server' specified in host definition could not be not found (config file '/etc/nagios3/objects/wind
ows.cfg', starting on line 25)
***> 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 have checked over and over again and cannot find any problems. I have uploaded my templates.cfg, windows.cfg and nagios.cfg.
Also curious to know, from the looks of the windows.cfg, will each host need it's own windows.cfg? Does each host need a static IP? If not, how do add more windows machines to monitor? I dont think i'm understanding how this software works, cause creating a seperate .cfg file for each host that needs to be monitored seems a little ridiculous.
Thanks for any help.