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

Primary Admin account notifications may not work in certain cases #4529

Closed
eliassal opened this issue Jan 18, 2022 · 10 comments
Closed

Primary Admin account notifications may not work in certain cases #4529

eliassal opened this issue Jan 18, 2022 · 10 comments
Labels
bug Undesired behaviour resolved A fixed issue
Milestone

Comments

@eliassal
Copy link

Describe the bug

I have a fresh new setup, 5 days ago, I have finalized admin user properties with email but still getting

SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Log

2.Warning displayed

Expected behavior

This should disappear otherwise, where can we setup the notification?

Screenshots

Cacti-warn

Cacti-warn_02

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information)

  • OS: Fedora 35

  • Edge, chrome, Firefox

  • Version 1.2.19

Additional context

Add any other context about the problem here.

@eliassal eliassal added bug Undesired behaviour unverified Some days we don't have a clue labels Jan 18, 2022
@TheWitness
Copy link
Member

Edit the Admin account and setup it's email address.

@TheWitness TheWitness added not a bug Not a bug as determined by dev question A question not a bug and removed bug Undesired behaviour unverified Some days we don't have a clue labels Jan 19, 2022
@eliassal
Copy link
Author

It is already done

@TheWitness
Copy link
Member

Okay, that's odd. Let me check.

@TheWitness TheWitness added bug Undesired behaviour and removed question A question not a bug not a bug Not a bug as determined by dev labels Jan 29, 2022
@TheWitness TheWitness added this to the v1.2.20 milestone Jan 29, 2022
@TheWitness
Copy link
Member

Okay, looked at the code, and I'm going to call bug. Updating lib/functions.php shortly. Please test.

@TheWitness TheWitness changed the title SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email. Primary Admin account notifications not working in some cases Jan 29, 2022
TheWitness added a commit that referenced this issue Jan 29, 2022
Primary Admin account notifications not working in some cases
@TheWitness TheWitness added the resolved A fixed issue label Jan 29, 2022
@eliassal
Copy link
Author

Thanks, so what should I do in my environment?

@TheWitness
Copy link
Member

Did you install from source? If so, the easy process, ntong to verify the user accounts for ownership and that the paths may be different....

cd /var/www/html
git clone -b 1.2.x https:/github.com/cacti/cacti.git cacti.new
/bin/cp -rfp cacti.new/* cacti
chown -r apache:apache cacti

Then refresh your browser to upgrade.

@eliassal
Copy link
Author

No, I followed the instructions at
https://www.tecmint.com/install-cacti-network-monitoring-on-rhel-centos-fedora/
and used

sudo dnf install cacti

@TheWitness
Copy link
Member

It's likely going to be a bit more tricky adding @reubenfarrelly as he can add some clarity as to when a new build might be available. We plan to freeze later today after all the language stuff is finished.

@TheWitness
Copy link
Member

It's working for me now. I'm going to close now. Just wait on 1.2.20 to be released if you don't know how to merge.

@netniV netniV changed the title Primary Admin account notifications not working in some cases Primary Admin account notifications may not work in certain cases Apr 3, 2022
@nani81
Copy link

nani81 commented May 17, 2022

Good evening,
I found this article because the same thing is happening to me in my cacti.

So I've added the fix in my functions.php file, but I still get the same error.

Versión: cacti 1.2.19
OS: Red Hat

@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

3 participants