Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Mar 25, 2019 12:59 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How to install cacti without sendmail
PostPosted: Fri Feb 15, 2019 11:27 am 
Offline

Joined: Fri Feb 15, 2019 11:20 am
Posts: 3
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


Top
 Profile  
 
 Post subject: Re: How to install cacti without sendmail
PostPosted: Fri Feb 15, 2019 12:03 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
tbh, as long as you reference a valid file, I don't think it actually checks that sendmail is really the sendmail executable.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: How to install cacti without sendmail
PostPosted: Thu Feb 21, 2019 5:27 am 
Offline

Joined: Fri Feb 15, 2019 11:20 am
Posts: 3
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:
File comment: With fake sendmail path
screenshot-cacti-121-02.png
screenshot-cacti-121-02.png [ 67.14 KiB | Viewed 75 times ]
File comment: With wrong sendmail path
screenshot-cacti-121-01.png
screenshot-cacti-121-01.png [ 67.18 KiB | Viewed 75 times ]
Top
 Profile  
 
 Post subject: Re: How to install cacti without sendmail
PostPosted: Thu Feb 21, 2019 11:59 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
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

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: How to install cacti without sendmail
PostPosted: Thu Feb 21, 2019 1:25 pm 
Offline

Joined: Fri Feb 15, 2019 11:20 am
Posts: 3
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group