Page 2 of 5

Re: Plugin check not working

Posted: Wed May 30, 2018 3:09 pm
by scottwilkerson
I would compare the 2 nsclient ini files

Re: Plugin check not working

Posted: Wed May 30, 2018 3:31 pm
by kwhogster
Scott

Will do.

Remember Node1 is the problem and it is using Nsclient 5 Node2 works it is using nsclient 4

Re: Plugin check not working

Posted: Wed May 30, 2018 3:41 pm
by scottwilkerson
kwhogster wrote:Scott

Will do.

Remember Node1 is the problem and it is using Nsclient 5 Node2 works it is using nsclient 4
I just re-read that.. If the configs are the same it could be an issue with the version, if that is the case you would need to get help from the nsclinet developers (that's not us)

Re: Plugin check not working

Posted: Wed May 30, 2018 3:44 pm
by kwhogster
Yes I might even remove the 5 version and see if that helps too.

Will keep you posted

Thanks

Tom

Re: Plugin check not working

Posted: Wed May 30, 2018 3:46 pm
by scottwilkerson
kwhogster wrote:
Will keep you posted

Thanks!

Re: Plugin check not working

Posted: Wed May 30, 2018 7:06 pm
by kwhogster
Scott

Same issue after uninstalling nsclient 5 now on nsclient 4.4.23

get this error

C:\Program Files\NSClient++>nscp settings --generate --add-defaults --load-all

E core Failed to register plugin LUAScript: Could not load library: 126: T he specified module could not be found. : LUAScript.dll c:\source\nscp\service\NSClient++.cpp:216

Removed the double quotes

Current Status:
UNKNOWN
(for 0d 0h 36m 59s)
Status Information: Get-Counter : Unable to access the desired computer or service. Check the
permissions and authentication of the log service or the interactive user
session against those on the computer or service being monitored.
At C:\Program Files\NSClient++\scripts\powershell\check_iis_connections.ps1:40
char:12
+ $counter = Get-Counter "\\$server\Web Service($website)\Current Conne ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (:) [Get-Counter], Exception
+ FullyQualifiedErrorId : CounterApiError,Microsoft.PowerShell.Commands.Ge
tCounterCommand

CONNECTIONS UNKNOWN Default Web Site not found
Performance Data:
Current Attempt: 10/10 (HARD state)
Last Check Time: 05-30-2018 19:36:11
Check Type: ACTIVE
Check Latency / Duration: 0.000 / 1.659 seconds
Next Scheduled Check: 05-30-2018 20:36:11
Last State Change: 05-30-2018 19:27:11
Last Notification: N/A (notification 0)
Is This Service Flapping?
NO
(11.97% state change)
In Scheduled Downtime?
YES

Last Update: 05-30-2018 20:04:00 ( 0d 0h 0m 10s ago)


I am thinking it is because I am getting the error from the "nscp settings --generate --add-defaults --load-all" command

I also posted this on the NSCLient Site hope someone has an answer.

Thoughts?

Re: Plugin check not working

Posted: Thu May 31, 2018 7:20 am
by scottwilkerson
kwhogster wrote: I also posted this on the NSCLient Site hope someone has an answer.
I was going to recommend just that

Re: Plugin check not working

Posted: Fri Jun 01, 2018 8:46 pm
by kwhogster
Scott

I made two posts on the nsclient site and still no response

This one has me very puzzled

Hope someone out there has an answer

Thanks

Tom

Re: Plugin check not working

Posted: Mon Jun 04, 2018 10:11 am
by scottwilkerson
I am quite puzzled as well.. Let us know if you hear back

Re: Plugin check not working

Posted: Mon Jun 04, 2018 1:58 pm
by kwhogster
The command works from the nagios server via command line
The command works from the server via powershell

If the command works from the command line on the nagios server then why do we think this is a nsclient problem?

It is using the nsclient when I run the command from the console on nagios server correct?

Also it cant be the servers config file because it works from the command line on the nagios server too.

So what is up with this single check? I have the exact same check on my other IIS servers. Matter of fact just added a new CERT Server which uses IIS and had no problem with this check.

We need to review this closer what do you think?

Thank you,