Page 1 of 2

Spoke too soon - same problem occurring...

Posted: Thu Nov 10, 2016 2:26 pm
by PhilG
https://support.nagios.com/forum/viewto ... 16&t=41049

I tried to add the Windows server/Host, but got the "Configuration verification failed" message.

Re: Spoke too soon - same problem occurring...

Posted: Thu Nov 10, 2016 2:41 pm
by avandemore
Can you repeat the requests I made in the previous thread?

Re: Spoke too soon - same problem occurring...

Posted: Thu Nov 10, 2016 3:57 pm
by PhilG
Attached, since I received the following after I copy/pasted the output into this post and tried to Submit:
"Your message contains too many URLs. The maximum number of URLs allowed is 10."

Re: Spoke too soon - same problem occurring...

Posted: Thu Nov 10, 2016 4:06 pm
by avandemore
That output indicates the Apply Configuration is working...?

How are you adding the the Windows server/Host?

Re: Spoke too soon - same problem occurring...

Posted: Thu Nov 10, 2016 4:10 pm
by PhilG
I have added a different test Windows Server using the Windows Server Wizard, and only chose "Ping" as a service.

The entry was added with no issue.

I have deleted and applied configuration on the test server entry and that entry was removed with no issue.

I will try to add my initial production Windows server as a Host with some service checks now and will report back with the result as soon as I can. The Host will be using NSClient++ 0.4.3.143.

Re: Spoke too soon - same problem occurring...

Posted: Thu Nov 10, 2016 4:13 pm
by PhilG
"Configuration verification failed".
"/usr/local/nagios/etc/services/<Windows_Server>.cfg" exists.
"/usr/local/nagios/etc/hosts/<Windows_Server>.cfg" exists.

The Windows_Server and its affiliated services do NOT appear in Nagios XI web monitoring console.


PhilG wrote:I have added a different test Windows Server using the Windows Server Wizard, and only chose "Ping" as a service.

The entry was added with no issue.

I have deleted and applied configuration on the test server entry and that entry was removed with no issue.

I will try to add my initial production Windows server as a Host with some service checks now and will report back with the result as soon as I can. The Host will be using NSClient++ 0.4.3.143.

Re: Spoke too soon - same problem occurring...

Posted: Thu Nov 10, 2016 4:48 pm
by avandemore
The Windows_Server and its affiliated services do NOT appear in Nagios XI web monitoring console.
Are they in XI > Configure > CCM > Hosts/Services? Are they disabled?

Re: Spoke too soon - same problem occurring...

Posted: Thu Nov 10, 2016 5:27 pm
by PhilG
If I understand you, the Windows_Server is appearing in XI > Configure > CCM > Monitoring > Hosts/Services.
I noted that the Host and its respective Services are appearing in that menu area, and appear to have the "Active" check selected.

Now when I go into my Home Dashboard (is using "Service Status"), the Host and Services appear now, but starting to display Critical for all but "Ping" at this time with message:
connect to address <Windows_Server_IP_Address> and port 12489: Connection refused

I thought the client is supposed to communicate via port 5666.

I'll do some more checking on the client end and with our Firewall guy(s) tomorrow. Time to leave right now.

avandemore wrote:
The Windows_Server and its affiliated services do NOT appear in Nagios XI web monitoring console.
Are they in XI > Configure > CCM > Hosts/Services? Are they disabled?

Re: Spoke too soon - same problem occurring...

Posted: Thu Nov 10, 2016 5:46 pm
by avandemore
NRPE runs on port 5666 and the NSClient Windows Agent runs on 12489. Access to both may be required depending on your setup although generally speaking you can do everything with just one or the other. For example some wizard will generate services utilizing check_nt which connects directly to NSClient.
https://docs.nsclient.org/tutorial/nagios/nrpe.html
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Regarding:
"Configuration verification failed".
"/usr/local/nagios/etc/services/<Windows_Server>.cfg" exists.
"/usr/local/nagios/etc/hosts/<Windows_Server>.cfg" exists.
Please send a screenshot of this.

Re: Spoke too soon - same problem occurring...

Posted: Fri Nov 11, 2016 2:08 pm
by PhilG
After some research and testing, it appears that one must provide an entry in the Service Description field in the Windows Server Wizard in order to avoid the error.

Suggestion: To me, the Service Description should not be a requirement, or at least the Windows Service Wizard should add the "service_description" field and add a blank reference, or not flag that entry as a problem during the Apply Configuration process.

All is working well at this time.

Thank you.