Giter VIP home page Giter VIP logo

cacti-install-wizard's Introduction

Cacti server setup wizard

this script requires git and unzip

#Debian To use the script
git clone https://github.com/bmfmancini/cacti-auto-install.git
cd cacti-auto-install
chmod +x cacti-setup-wizard-debian-Ubuntu.sh
./cacti-setup-wizard-debian-Ubuntu.sh
RUN THE SCRIPT AS ROOT!!

The script also works on RHEL however you MUST enable EPEL prior to running the script and ensure its working to enable RHEL EPEL reports you can use the following command

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  • features are

-download either chosen or latest version of cacti
-autoconfigure database either with defaults or chose credentials
-auto tunes MariaDB using cacti recommended settings
-auto-populates cacti database
-downloads all needed packages for cacti install
-asks if you want to install spine if so it will automatically compile it
-adds system user and assigns permissions to folders
-downloads and installs plugins

TODO

Debug Add more plugins to download option
add option to select specific plugins from list
Document script

BUGS

July 6th 2021 - Script is not working on Centos 8 will have a fix soon !

any other bugs Please let me know!

Check out my video tutorial on using the script !

Video Tutorial

cacti-install-wizard's People

Contributors

bmfmancini avatar clashplayer-protect avatar stybyk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cacti-install-wizard's Issues

Can't Login

I ran a new install today and can't login to the GUI. I tried to reset the password for "admin" in the DB and still no luck. Also copied the MD5 hash from the DB and verified it is actually set to "admin" after the change.

Ubuntu 18.04 LTS
Cacti 1.2.10

Ubuntu script - assigning installation permissions to cacti user

Looking at the if...then statement, lines 126-133

read user
if [$user = ""]
then 
user="www-data"
echo  "cacti will be run under www-data"
# missing useradd here
chown -R  www-data:www-data $location/cacti
else 
useradd $user

May I suggest something like:

read -r user
if [ $user = "" ]
then
user=www-data
echo  "cacti will be run under $user"
fi
useradd $user
chown -R $user:$user $location/cacti

In the above else statement is not really needed. Then one statement for useradd $user and chown -R $user:$user $location/cacti can be used for either default or a chosen user.

Finally, lines 146-157 should use a $user instead of www-data. As of now the script does not work if a non-default user for cacti is chosen.
Should look like this

chown -R $user:$user $location/cacti/resource/snmp_queries/
chown -R $user:$user $location/cacti/resource/script_server/
chown -R $user:$user $location/cacti/resource/script_queries/
chown -R $user:$user $location/cacti/scripts/
chown -R $user:$user $location/cacti/cache/boost/
chown -R $user:$user $location/cacti/cache/mibcache/
chown -R $user:$user $location/cacti/cache/realtime/
chown -R $user:$user $location/cacti/cache/spikekill/
touch $location/cacti/log/cacti.log
chmod 777 $location/cacti/log/cacti.log
chown -R $user:$user  $location/cacti/log/
cp $location/cacti/include/config.php.dist $location/cacti/include/config.php

PHP Time Zone "Europe/Istanbul error

Hello,

During the installation phase, I enter Europe/Istanbul in the PHP time query. However, he does not accept and gives an error.

How can I solve this?
Thank you.

stop install on centos 7

hi, i get stop install after install git

this script requires git
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • base: mirror.biznetgio.com
  • epel: d2lzkl7pfhq30w.cloudfront.net
  • extras: vpsmurah.jagoanhosting.com
  • updates: mirror.biznetgio.com
    Package git-1.8.3.1-23.el7_8.x86_64 already installed and latest version
    Nothing to do
  1. New-installation
  2. spine-only-installation
  3. cacti-upgrade
  4. Remote Poller Setup
  5. Quit
    #?
    [root@webserver ~]#

cant change password

Hi
I have problem with change password admin on the first login. I set old default pass 'admin' and new password next click on write... and page to change pass only refresh with blank forms ;/
pls help

Debian 10

Graphs not filling full window.

The setup completed successfully, but the graphs are not being displayed fully. They begin and stay roughly at the 19:00 mark.
Graphs

I tried deleting the graphs and data sources and recreating them, but I am seeing the same behavior. Any idea's on what may be causing this? This is running on an Ubuntu guest on a VMWare ESXI server.

Content missing

Hey my friend,

Where are the new videos on youtube ?

Looking foor it

Thanks for all the knowladge share

cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.