installing CACTI on Centos 7 and using Nginx

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
jepoytengco
Posts: 16
Joined: Wed Jun 29, 2016 1:59 am

installing CACTI on Centos 7 and using Nginx

Post by jepoytengco »

Hi, I'm planning to setup a cacti network monitoring on a Centos 7 server and using Nginx instead of Apache. I tried to follow an article below:

http://www.tecmint.com/install-cacti-ne ... ora-17-12/

I stopped on the part where you will need to start the mysqld and snmpd service. The Nginx service did start. I got an error message saying

[root@localhost ~]# service snmpd start
Redirecting to /bin/systemctl start snmpd.service
Failed to issue method call: Unit snmpd.service failed to load: No such file or directory.
[root@localhost ~]# service mysqld start
Redirecting to /bin/systemctl start mysqld.service
Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.
[root@localhost ~]#

Am I missing something here? Though all of the steps before were successfully met, no errors.

Thanks
Jeff
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: installing CACTI on Centos 7 and using Nginx

Post by phalek »

Did you try out:

Code: Select all

systemctl start mariadb.service
as described in the howto you are refering to ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
jepoytengco
Posts: 16
Joined: Wed Jun 29, 2016 1:59 am

Re: installing CACTI on Centos 7 and using Nginx

Post by jepoytengco »

Apologies for that, didn't focus on the How to, yeah that I think work. Now the only service not running is the snmpd.service

Thanks
Jeff
jepoytengco
Posts: 16
Joined: Wed Jun 29, 2016 1:59 am

Re: installing CACTI on Centos 7 and using Nginx

Post by jepoytengco »

Tried this:

[root@localhost ~]# service snmpd start
Redirecting to /bin/systemctl start snmpd.service
Failed to issue method call: Unit snmpd.service failed to load: No such file or directory.
[root@localhost ~]# systemctl start snmpd
Failed to issue method call: Unit snmpd.service failed to load: No such file or directory.
[root@localhost ~]# systemctl start snmpd.service
Failed to issue method call: Unit snmpd.service failed to load: No such file or directory.
[root@localhost ~]#

I think this time I'm sure of the service name :) and tried reinstalling again the snmp-net by entering this command

yum install net-snmp-utils net-snmp-libs

Thanks
Jeff
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: installing CACTI on Centos 7 and using Nginx

Post by phalek »

You should also install

Code: Select all

yum install net-snmp
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
jepoytengco
Posts: 16
Joined: Wed Jun 29, 2016 1:59 am

Re: installing CACTI on Centos 7 and using Nginx

Post by jepoytengco »

I think yum install net-snmp did the installation.

I was able to start the service.

Thanks guys
Jeff
jepoytengco
Posts: 16
Joined: Wed Jun 29, 2016 1:59 am

Re: installing CACTI on Centos 7 and using Nginx

Post by jepoytengco »

After I've resolved the snmp service issue this is more of a continuation of my project to install and setup cacti on a Centos 7 server.

After following the steps in the URL below:

http://www.tecmint.com/install-cacti-ne ... ora-17-12/

I've stopped in the steps wherein I need to

Install cacti tables to MySQL or MariaDB

After I typed in this command

[root@tecmint ~]# mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8b/cacti.sql
Enter password:

Instead of accepting the password I created for MySQL or MariaDB, it just says

[root@localhost ~]# mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8h/cacti.sql
Enter password:
ERROR 1045 (28000): Access denied for user 'cacti'@'localhost' (using password: YES)
[root@localhost ~]#

I tried to repeat the step in creating the database but it says cacti already exists.

I'm kind of lockdown here, appreciate any suggestion as to what to do next.

Thanks
Jeff
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests