Plugin check not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Plugin check not working

Post by scottwilkerson »

I would compare the 2 nsclient ini files
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugin check not working

Post by kwhogster »

Scott

Will do.

Remember Node1 is the problem and it is using Nsclient 5 Node2 works it is using nsclient 4
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Plugin check not working

Post 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)
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugin check not working

Post by kwhogster »

Yes I might even remove the 5 version and see if that helps too.

Will keep you posted

Thanks

Tom
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Plugin check not working

Post by scottwilkerson »

kwhogster wrote:
Will keep you posted

Thanks!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugin check not working

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Plugin check not working

Post by scottwilkerson »

kwhogster wrote: I also posted this on the NSCLient Site hope someone has an answer.
I was going to recommend just that
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugin check not working

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Plugin check not working

Post by scottwilkerson »

I am quite puzzled as well.. Let us know if you hear back
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugin check not working

Post 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,
Locked