Internal documentation only
This page has been marked as draft.
No notifications are being generated in Ubuntu Cluster
Problem Copied
A client deployed a new Ubuntu 20 cluster and successfully installed mailutils. Email functionality was verified, as all collectors were able to send emails to the configured recipient address.
However, notifications were not reflected in the Opsview UI, indicating that alerts from the cluster were not being properly processed or displayed.
Upon verification of the collector nodes, the following error was encountered when checking the Mail::Sender Perl module:
perl -MMail::Sender -e 'print "Module found\n"'
Can't locate Mail/Sender.pm in @INC (you may need to install the Mail::Sender module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl).
BEGIN failed--compilation aborted.
This indicates that the required Mail::Sender module was not installed on the affected Ubuntu collectors
Root Cause Copied
The issue was caused by the absence of the required Perl module libmail-sender-perl on the Ubuntu collector nodes.
Possible solution Copied
The issue was resolved by installing the missing libmail-sender-perl module on all Ubuntu collectors.
Steps for installation:
-
Run the following command on each collector:
# sudo apt update && sudo apt install libmail-sender-perl -
After installation, verify that the module is properly installed:
# sudo vi /usr/share/perl5/Mail/Sender.pm # perl -MMail::Sender -e 'print "Module found\n" Module found -
After installing the required module, email notifications were successfully processed, and alerts were correctly displayed in the Opsview UI.