Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnp4nagios update for php5.6 to php8.0 #10

Open
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

celane
Copy link

@celane celane commented Dec 18, 2022

Major changes: update for php8.0
packaging (make rpms easier ... see spec file in dist and README)
file lock in process_perfdata.pl to avoid some errors.

rrdtools needs env setting XDG_CACHE_HOME for fontconfig
Tested on Fedora 35 (php 8.0) Alma 8.6 (php 7.2) and Fedora 22 (php 5.6).

Charles Lane added 25 commits September 11, 2022 13:02
other files to make rpm building work better
note that pid files moved from /var/run  to /run, in line
with modern linux
remove rrd_convert and rrd_modify, because they do not work
for current rrd xml configuration.
file locking is needed for the few times/day when
a pair of process_perfdata runs try to update the stats
file at the same time; minor but annoying.

Updated release version in .spec file
add logwatch config setup
spec file update
Copy link
Owner

@russellvt russellvt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be broken apart intop smaller changes (Read: It's not just "PHP5-PHP8" migration).

Some ideas for general categories:

  • Fix RPM Build from git
  • Various Fedora contribs:
    ** Logwatch for pnp4nagios
    ** npcd system/service/startup configurations and scripts
    ** Logrotate configuration
  • Fixes rpmbuild from git
  • File locking for process_perfdata
    ** Is this actually needed? Is there a race/contention there, right now, between threads?

Note: This also appears to break / change some things / nehaviour in potentially unexpected ways on other platforms. Some examples:

  • Should likely remove Subversion tags sich as $Id$ (in-comments, essentially harmless)
  • Removes previously used environment variables and adds others
  • Hard-coded non-standard (?) directories (eg. /run instead of /var/run)

Overall, I appreciate the contirbution!

It would be nice to break this apart into smaller bite-size quantites, though (all of the Fedora contrib, for example). Most of this isn't a "PHP8 migration," unfortunately.

@russellvt russellvt added the contrib Stuff in the Contrib directory label May 9, 2023
celane added 2 commits August 17, 2023 20:03
so have to do it explicitly.
Also, set up environment variable XDG_CACHE_HOME in systemd startup
of httpd with a plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contrib Stuff in the Contrib directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants