Bug 2414794

Summary: Dependency not in Requires:
Product: [Fedora] Fedora EPEL Reporter: Nuno Dias <nuno.dias>
Component: check_postgresAssignee: Devrim Gündüz <devrim>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: epel9CC: devrim
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nuno Dias 2025-11-13 10:07:57 UTC
Description of problem:
When I try to run check_postgres I have this error
"Cannot find Time::HiRes, needed if 'showtime' is true at /usr/bin/check_postgres.pl line 2009."

Due to the fact that perl-Time-HiRes.x86_64 is not installed, and is not in the Requires of the package


Version-Release number of selected component (if applicable):
check_postgres-2.25.0-4.el9.noarch

How reproducible:
Every Time

Steps to Reproduce:
1. Run check_postgres and connect to postgres
2.
3.

Actual results:
This error and fail to connect
"Cannot find Time::HiRes, needed if 'showtime' is true at /usr/bin/check_postgres.pl line 2009."

Expected results:
Connect to the database

Additional info:

Comment 1 Nuno Dias 2025-11-13 10:29:47 UTC
Also a good improvement maybe to put the plugin in /usr/lib64/nagios/plugins