Error: Can't locate perl510.dll

Thomas Grassi
Thomas Grassi used Ask the Experts™
on
Nagios Core 4.3.4
Nsclient 4.3
Windows 10

Just restarted my Windows 10 Desktop VM after November Updates and Nagios reports this warning on two checks

 Error: Can't locate perl510.dll


Check Windows Temp Folder WARNING 11-14-2018 22:01:47 0d 0h 32m 58s 10/10 Error: Can't locate perl510.dll


Explorer WARNING 11-14-2018 22:28:58 0d 0h 33m 34s 20/20 Error: Can't locate perl510.dll

I have the exact same checks on other Windows 10 VMs and Physical Windows 10 Desktop and they all work

I have no perl program installed on any of y computers

Searching for this dll shows nothing any where.


Any ideas?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017

Commented:
The common, first check whether you can run perl in a command window.
Since the upgrade it may have potentially unset..
Try running a repair on the perl install (presumably you are using activeperl)

Check which perl you have installed.


Scan the Windows.old for the referenced dll.
I have the exact same checks on other Windows 10 VMs and Physical Windows 10 Desktop and they all work

I have no perl program installed on any of y computers

If you don't have perl installed on any of the computers, I'd be wondering why you're only getting that nagios alert for one of them, assuming the nagios check is configured for all of them.
Dana DIT Consultant

Commented:
You may want to uninstall all versions of Pearl and then install both the 32 bit and 64 bit of Pearl and then just uninstall them to get rid of the error.
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Thomas GrassiSystems Administrator

Author

Commented:
Arnold

I do not have perl installed  hard to repair something that does not exist.

Fishmonger

That what I am wondering also.  Yes I have the same check for over 50 computers.

Dana D    I do not have Perl installed on any computer can not uninstall it

Guys any other ideas?

Thank you

Tom
IT Consultant
Commented:
Yes install both the 32 bit and 64 bit versions and then uninstall them both then see if the error will be resolved.
Thomas GrassiSystems Administrator

Author

Commented:
Dana D

Do you know where I can get the software from?           Perl.org???   if so which version should I download Activestate Perl or Strawberry Perl?

Please provide a link


Thank you
Dana DIT Consultant

Commented:
Yes you can download from here:

 https://learn.perl.org/installing/windows.html
Distinguished Expert 2017

Commented:
I've previously used activeperl, https://www.activestate.com/products/activeperl/

Other option is to locate the two checks that complain about this issue and see whether you need the checks.
Thomas GrassiSystems Administrator

Author

Commented:
this is the actual error message from Nagios


  WARNING  
 (for 2d 12h 40m 8s)
Status Information: Error: Can't locate perl510.dll
Make sure the ActivePerl bin directory is in your PATH
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApp



It is looking for active perl
Distinguished Expert 2017

Commented:
If memory serves, nagios runs
If memory serves, it was/is perl driven.
This could be related to the web server.. processing.....

The "agent" that runs on the monitored system is commonly perl based script. much depends on the checks you are running.

which check failes with this error?
Do you need/use this check?
Thomas GrassiSystems Administrator

Author

Commented:
Arnold

Yes I require the checks  and yes they was working fine on all systems except for this one

define service{
        use                     generic-service
        host_name               hostname
        service_description     Explorer
        check_command           check_nrpe!check_explorer! -a explorer.exe
        max_check_attempts      20
        servicegroups           explorer
        check_period            backup_period
        notification_period     backup_period
        }
define service {
        host_name               hostname
        service_description     Check Windows Temp Folder
        check_command           check_winfile
        servicegroups           Windows Temp
        check_interval          60
        notification_interval   60
        check_period            backup_period
        notification_period     backup_period
        use                     generic-service
        }

define command{
        command_name    check_winfile
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -t 120 -c check_winfile -a '--target c:\windows\temp --filter "size gt 1073741824" -delete'
}
define command{
        command_name    check_explorer
        command_line    $USER1$/check_procs -c 1:30 -C explorer
}

Open in new window



From the Nagios server I run them from the command line example of the failing machine and one that works

/usr/lib/nagios/plugins# ./check_nrpe -t 50 -H Desk004 -c  check_explorer
Error: Can't locate perl510.dll
Make sure the ActivePerl bin directory is in your PATH
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps

/usr/lib/nagios/plugins# ./check_nrpe -t 50 -H DESK003 -c  check_explorer
PROCESS OK - 55 process(es)|'processes'=55


Any ideas?
Thomas GrassiSystems Administrator

Author

Commented:
Dana D

installed ActivePerl checked that perl is in the path

PATH=C:\Perl64\site\bin;C:\Perl64\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\maxg\AppData\Local\Microsoft\WindowsApps;


Still getting the same errors
Thomas GrassiSystems Administrator

Author

Commented:
Guys,

After installing ActivePerl 5.24.3.2404   from perl.org site   the error still occurred.

So I decided to restart the desktop and after the restart all the checks just started working again.

The error message lead to the resolution activeperl was not in the path.

Still does not explain why the other desktops and servers do not have this problem.

Thanks for all your help

Tom
Distinguished Expert 2017

Commented:
How does this desktop differ from others?
Restarting the service that listens for inbound connections should reset, require the path.
Could it be that activeperl, perl was uninstalled, corrupted on this desktop during the win10 update/upgrade process.
Check targeting on whether this workstation updates/upgrades on the business,,, targeted channel, semi-annually versus quarterly?
Dana DIT Consultant

Commented:
Great News Thomas! Glad to help Sir and thank you for the points!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial