How to install cacti without sendmail

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
wilcoK
Posts: 3
Joined: Fri Feb 15, 2019 11:20 am

How to install cacti without sendmail

Post by wilcoK »

I try to install cacti 1.21 on a centos6 server which doesn't have sendmail installed (it uses exim). During the install, the installation stalls on page 5 when no sendmail path is available. This path cannot be left blanc, even when sendmail is not mandatory.

Is there a way to disable sendmail berfore installation?

Or, is there a way to install cacti with exim as mail agent?

Many thanks,
Wilco
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: How to install cacti without sendmail

Post by netniV »

tbh, as long as you reference a valid file, I don't think it actually checks that sendmail is really the sendmail executable.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
wilcoK
Posts: 3
Joined: Fri Feb 15, 2019 11:20 am

Re: How to install cacti without sendmail

Post by wilcoK »

Thanks netniV,

Sure I tried that (see screenshots).

When using a fake sendmail path, the check is green, but when clicking Next, the error remains and nothing happens. So I guess there is a real check.

Thanks,
Wilco
Attachments
With fake sendmail path
With fake sendmail path
screenshot-cacti-121-02.png (67.14 KiB) Viewed 836 times
With wrong sendmail path
With wrong sendmail path
screenshot-cacti-121-01.png (67.18 KiB) Viewed 836 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: How to install cacti without sendmail

Post by netniV »

OK, when I had this issue, I had to make sendmail optional. To do that, edit include/global_settings.php and then locate path_sendmail. add a subentry for optional and set it to true.

see this commit for more info:
https://github.com/Cacti/cacti/commit/6 ... f328b6f200
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
wilcoK
Posts: 3
Joined: Fri Feb 15, 2019 11:20 am

Re: How to install cacti without sendmail

Post by wilcoK »

Thank you netniV,

In include/global_settings.php I added one line in array 'settings_sendmail_path':
'install_optional' => true,

And the installation went on. Problem solved.

Best regards,
Wilco
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests