Page 1 of 1

Regarding log entries after Core upgrade

Posted: Wed Dec 18, 2019 11:35 am
by dshader
Hello all,
Just upgraded our 3.5.1 system to 4.4.5 and noticed during the upgrade that a few things have been deprecated so I managed through them and was successful at getting Nagios restarted and back to monitoring. However, I looked at the event logs and have a lot of the following:

[12-18-2019 09:33:31] wproc: stderr line 01: Can't open perl script "/usr/local/nagios/libexec/process_perfdata.pl": No such file or directory
Informational Message[12-18-2019 09:33:31] wproc: early_timeout=0; exited_ok=1; wait_status=512; error_code=0;

I looked in /usr/local/nagios/libexec and noticed that the process_perfdata.pl script doesn't even exist. Is this something that happened with the upgrade? How do I get rid of this notice?

Thanks in advance for your responses.
Don Shader

Re: Regarding log entries after Core upgrade

Posted: Wed Dec 18, 2019 5:30 pm
by mbellerue
Hi Don, welcome to the forums!

Do you know if you have any commands that require the use of that script? If you go to /usr/local/nagios/etc/objects/ and run grep -R process_perfdata.pl * that should tell you if it's used in a configuration file somewhere.

Re: Regarding log entries after Core upgrade

Posted: Fri Dec 20, 2019 3:11 pm
by dshader
This is what I get:

[root@tdclog01 objects]# grep -R process_perfdata.pl
RCS/commands.cfg,v: command_line /usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl
RCS/commands.cfg,v: command_line /usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
commands.cfg: command_line /usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl
commands.cfg: command_line /usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA

I cannot find any reference to this script in any of these locations.
Don

Re: Regarding log entries after Core upgrade

Posted: Fri Dec 20, 2019 4:18 pm
by mbellerue
Okay, I think I know what happened. PNP4Nagios must have been destroyed during the upgrade. It isn't installed by default with Nagios Core. Here are the install instructions. Try running through this, and see if it gets you back up and running again.
https://support.nagios.com/kb/article/n ... s-801.html