Cannot Monitor More Than 2 Hosts

2 posts / 0 new
Last post
MichaelDunn
Offline
Last seen: 7 years 9 months ago
Joined: 21.12.2012 - 01:02
Cannot Monitor More Than 2 Hosts

Hello,

 

I am having an issue with adding additional hosts to my Nagwin server. I have followed the steps listed here to add an additional host:

 

/content/nagwin-usage-example-2-basic-monitoring-windows-hosts

 

I am currently monitoring "localhost" and another server in the same network. When I follow the same exact steps to add another server (making it a total of 3 monitored servers) and run the "Check Nagios Configuration" batch file, Nagios is not detecting my additional config file and is not showing up in the web UI. (The "Checking Hosts..." section continues to show "2 hosts") The output below is the same, whether I add another host file or not to the /etc/nagios/nagwin directoy. 

 

Reading configuration data...

   Read main config file okay...

Processing object config directory '/etc/nagios/nagwin'...

Processing object config file '/etc/nagios/nagwin/commands.cfg'...

Processing object config file '/etc/nagios/nagwin/contacts.cfg'...

Processing object config file '/etc/nagios/nagwin/hostgroups.cfg'...

Processing object config file '/etc/nagios/nagwin/[SERVER].cfg'...

Processing object config file '/etc/nagios/nagwin/localhost.cfg'...

Processing object config file '/etc/nagios/nagwin/templates.cfg'...

Processing object config file '/etc/nagios/nagwin/timeperiods.cfg'...

   Read object config files okay...

 

Running pre-flight check on configuration data...

 

Checking services...

Checked 17 services.

Checking hosts...

  Checked 2 hosts.

 

 

Any suggestions would be very helpful. I feel there is something easy I am missing, but I followed the same exact steps to add hosts and the first one worked and the next one didn't. Thanks!!

MichaelDunn
Offline
Last seen: 7 years 9 months ago
Joined: 21.12.2012 - 01:02
Discovered that when I saved

Discovered that when I saved the newly created host configuration file, I saved the extension .cfg in all caps (.CFG). This was not recongized. I changed the extenstion to all lower case (.cfg) and nagios.cfg saw the server.cfg file in the /etc/nagios/nagwin directory.