Instalando Cacti + plugins no Ubuntu 10.10

Este artigo irá demonstrar como criar um servidor de monitoramento com Ubuntu server + Cacti + plugins. Será mostrado passo a passo como se instalar cada pacote e como configurar o seu novo servidor para monitor sua rede através do protocolo SNMP.

[ Hits: 168.555 ]

Por: Ailson Ferreira Guerra em 03/02/2011


Instalação do Apache2 + MySQL



O servidor Apache é o mais bem sucedido servidor web livre.

Ele será utilizado como nosso servidor para o Cacti, visto que ele roda na Web.

# apt-get install apache2 apache2-utils

PHP é uma linguagem de programação de computadores interpretada, livre e muito utilizada para gerar conteúdo dinâmico na Web.

Ele é necessário para poder roda o Cacti e seus plugins, devido eles serem feitos em php.

# apt-get install php5

Módulo de integração do Apache e PHP:

# apt-get install libapache2-mod-php5

O MRTG é uma ferramenta de monitoramento que gera páginas HTML com gráficos de dados coletados a partir de SNMP.

# apt-get install mrtg ap-utils

O MySQL é um sistema de gerenciamento de banco de dados. Atualmente um dos bancos de dados mais populares.

# apt-get install mysql-server

Lembre-se de anotar a senha que você dará ao usuário root do banco.

Página anterior     Próxima página

Páginas do artigo
   1. Cacti
   2. Instalação do Apache2 + MySQL
   3. Instalação do Cacti
   4. Instalação dos plugins
Outros artigos deste autor
Nenhum artigo encontrado.
Leitura recomendada

Zabbix e iPhone

Instalando o IBExpert no Linux e acessando o Firebird

Instalando o MEO Cloud em qualquer distro GNU/Linux

Servidor VoIP com Slackware e Asterisk

Gerenciamento de programas no Ubuntu através do Synaptic

  
Comentários
[1] Comentário enviado por removido em 03/02/2011 - 21:05h

Gostei do artigo. Muito bom mesmo !



Abraço

[2] Comentário enviado por alefesampaio em 06/02/2011 - 22:29h

Realmente muito bom seu artigo

[3] Comentário enviado por cristian_lacerda em 07/02/2011 - 11:09h

Parabéns seu artigo esta muito bom, tive problemas somente com o NTOP que não está funcionando, acredito que seja algo na autenticação, tem alguma dica?

[4] Comentário enviado por ailson guerra em 07/02/2011 - 12:29h

Um erro que já vi ocorrer com o Ntop + cacti, é que quando se instala o plugin do Ntop no cacti o serviço do Ntop da problema.
Nesse caso basta reiniciar o serviço do ntop.

/etc/init.d/ntop restart


Abraços.

[5] Comentário enviado por heigormaeda em 04/03/2011 - 10:37h

Parabéns pelo artigo,muito bom!
Entretanto preciso de uma ajuda, fiz tudo como passou mas na hora de configurar os plugins via WEB a aba Plugin Management não aparece..
Oque será que fiz de errado.
Valew

[6] Comentário enviado por ailson guerra em 04/03/2011 - 10:55h

Amigo você tem que ir em User Management.
No fim da pagina vai ter uma aba chamada Realm Permissions.
Lá você concede permissão para o seu usuário visualizar esta aba.

Abraços.

[7] Comentário enviado por heigormaeda em 04/03/2011 - 11:34h

Fui até lá, todas opções estão habilitadas, mas não aparece nada.
Obraços

[8] Comentário enviado por ailson guerra em 04/03/2011 - 11:40h

Verifique a instalação do plugin Architeture.
Quando ocorre algum erro na instalação deste plugin, ele não habilita todos os plugins instalados.
Verifique também se o setting está instalado.
Lebrando que deve obedecer a ordem a seguir no arquivo de configuração.
$plugins = array();

$plugins[] = 'settings';

$plugins[] = 'thold';

$plugins[] = 'monitor';

$plugins[] = 'ntop';

$plugins[] = 'update';

$plugins[] = 'tools';

$plugins[] = 'weathermap';

Abraços.

[9] Comentário enviado por heigormaeda em 04/03/2011 - 11:48h

No inicio do tópico quando pede para digitar o comando
# patch -p1 -N --dry-run < cacti-plugin-0.8.7g-PA-v2.8.diff , quando eu digito ta gerando uma falha.
Hunk #1 FAILED at 183
1 out of 1 hunk FAILED -- saving rejects
THE next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file poller php
Hunk #1 FAILED at 108
Hunk #2 FAILED at 304
Hunk #3 FAILED at 446
Hunk #4 FAILED at 495
4out of 4 hunks FAILED -- saving rejects to file poller.php.rej patching file user_admin.php.

Não sei se te algo a ver.
Abraços

[10] Comentário enviado por ailson guerra em 04/03/2011 - 12:00h

Faça manualmente então.
entre na pasta /usr/share/cacti/cacti-plugin-arch/files-0.x.xx/include/
copie os arquivos recursivo desta pasta para a pasta do cacti.
Depois reinicie o processo a partir de

Edite o arquivo: /usr/share/cacti/site/include/global.php

[11] Comentário enviado por heigormaeda em 04/03/2011 - 12:06h

Cara muito obrigado por sua atenção e desculpa o trabalho, é que estou iniciando no Linux.
só saberia fazer com passo a passo. não sei nem oque são arquivos recursivos.
Mas agredeço seu apoio.
Abraços

[12] Comentário enviado por heigormaeda em 04/03/2011 - 13:32h

Ailson fiz com vc pediu e nada.
Acesso o cacti mas não aparece os plugins.
Será que deve inciar tudo do inicio?
Abraços

[13] Comentário enviado por ailson guerra em 04/03/2011 - 15:00h

Quando você inclui o array dos plugins na função plugin array no arquivo /usr/share/cacti/site/include/config.php
Você colocou na ordem abaixo?
Em testes que realizei se eles não tiverem nessa ordem dava problema justamente com o setting não deixando você configurar os plugins

plugins = array();

$plugins[] = 'settings';

$plugins[] = 'thold';

$plugins[] = 'monitor';

$plugins[] = 'ntop';

$plugins[] = 'update';

$plugins[] = 'tools';

$plugins[] = 'weathermap';

se Sim, verifique se no menu lateral direito tem a opção Plugin Management
se Sim, verifique se algum plugins esta desabilitado ou desinstalado.
Se algum deles estiver, click em habilitar ou instalar (install).


Feito isto, vá novamente em User Management.
No fim da pagina vai ter uma aba chamada Realm Permissions.
Lá você concede permissão para o seu usuário visualizar esta aba.


Abraços

[14] Comentário enviado por mrtorture em 29/04/2011 - 14:42h

Após executar a linha

# patch -p1 -N < cacti-plugin-0.8.7g-PA-v2.8.diff

Os gráficos do Cacti desapareceram e apareceram os seguintes erros:

Notice: Undefined variable: config in /usr/share/cacti/site/lib/functions.php on line 1655
Notice: Undefined variable: config in /usr/share/cacti/site/lib/functions.php on line 1656

Tens idéia do que pode ser? Faltou alguma dependência talvez?

Se puder ajudar, agradeço!

[15] Comentário enviado por ailson guerra em 29/04/2011 - 15:09h

Amigo nessas linhas citadas estão as funções do banco de dados.
vai no arquivo config.php
#vim /usr/share/cacti/site/include/config.php

la procure por esta parte

* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "usuario que o cacti usa pra conectar no bando de dados";
$database_password = "*********";
$database_port = "3306";

verifique se o usuário do mysql e a senha estão corretas.

[16] Comentário enviado por mrtorture em 02/05/2011 - 11:42h

Olá Ailson,
no config.php só consta a linha
$database_type = "mysql";

Adicionei as demais e nada mudou.

O erro exibido é o seguinte: http://i52.tinypic.com/15heef5.png

[17] Comentário enviado por ailson guerra em 02/05/2011 - 17:11h

Amigo então você vai colocar abaixo do $database_type = "mysql";
essas linhas:

$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "usuario que o cacti usa pra conectar no bando de dados";
$database_password = "*********";
$database_port = "3306";


onde esta usuario que o cacti usa para conectar coloque o que você cadastrou? se seguiu o tutorial vai ser cactiuser
onde esta ****** é a senha para para o usuario acessar o banco. se seguiu o tutorial e aceitou as opções padroes vai ser cactiuser

Espeto ter ajudado

Abraços

[18] Comentário enviado por kimbundo em 26/05/2011 - 10:40h

Boa Tarde Ailson Ferreira Guerra.
Felicito-te pelo o Artigo, dizer desde já que o meu cacti esta operacional. segundo o seu Artigo Parabens.
Ailson, como elogio algumas vezes vem acompanhado de alguma coisa heheheheheh. preciso do seu aopoio ou de alguem que ja tivera passado por esta situação.
NTop= nao mostra nenhuma informação (nao colheta) informação nenhuma. mesmo estando
Weathermap= You Have No Maps
Name Description** Type Status Author Web Page Version
Monitor Device Monitoring Old PIA Active Jimmy Conner http://cactiusers.org 0.8.2
Settings Global Plugin Settings System Active Jimmy Conner http://cactiusers.org 0.5
Ntop NTop Viewer Old PIA Active Jimmy Conner http://cactiusers.org 0.1
Weathermap PHP Network Weathermap Old PIA Active Howard Jones http://www.network-weathermap.com/ 0.97a
Update Update Checker Old PIA Active Jimmy Conner http://cactiusers.org 0.4

Caso alguem estiver desponivel a solução da minha duvida obrigado.

obrigado

[19] Comentário enviado por ailson guerra em 26/05/2011 - 15:02h

Boa Tarde Jose Antonio,
Em primeiro Lugar Gostaria de Agradecer pelo elogio, e o Sr. pode contar comigo sim, então vamos la?

NTOP

Reconfigura a senha do Ntop
# ntop -A
Reinicie o Serviço
#/etc/init.d/ntop restart
No cacti vá em Console -> Settings -> Misc
Procure pelo campo NTop URL, E coloque nele o ip do seu servidor com o parâmetro da porta 3000. Ex.: http://192.168.100.10:3000

Weathermap

Você precisa criar o seus mapas, para tal altere o arquivo editor.php
#vim /usr/share/cacti/site/plugins/weathermap/editor.php
Dentro do arquivo procure pela linha
$ENABLED=false;
E Mude para:
$ENABLED=true;
Feito isto vá em Console -> Weathermaps -> Weathermap Editor ( ele fica no rodapé em uma tarja azul). ele irá abrir uma pagina para você criar o mapa da sua rede utilizando seus servidores e ativos cadastrados.


Em relação à:
"Name Description** Type Status Author Web Page Version
Monitor Device Monitoring Old PIA Active Jimmy Conner http://cactiusers.org 0.8.2
Settings Global Plugin Settings System Active Jimmy Conner http://cactiusers.org 0.5
Ntop NTop Viewer Old PIA Active Jimmy Conner http://cactiusers.org 0.1
Weathermap PHP Network Weathermap Old PIA Active Howard Jones http://www.network-weathermap.com/ 0.97a
Update Update Checker Old PIA Active Jimmy Conner http://cactiusers.org 0.4"

Não entendi sua duvida me desculpe, peço que me explique o que deseja.
=)

Espero ter ajudado.
Em breve estarei enviando novos artigos para ajudar na configuração e utilização do Cacti, inclusive com novas funcionalidade, tais como uso de link em tempo real, monitoramento de serviços em maquinas Windows e Linux .

E estou esperando a Aprovação de um script para realizar o Backup automático do banco do cacti.

Espero ter ajudado a sanar suas duvidas.

Att. Ailson F. Guerra

[20] Comentário enviado por tacortes em 03/10/2011 - 16:41h

Desculpe a minha pergunta [*****], pois sou novo no linux.

No meu arquivo: /usr/share/cacti/site/include/global.php

tem as linhas

$config['url_path'] = '$url_path';
define ('URL_PATH', $url_path);

eu tenho que substituir por :

$config['url_path'] = '/cacti/';
define ('URL_PATH', /cacti/);

[21] Comentário enviado por ailson guerra em 03/10/2011 - 17:32h

Boa Tarde,

O parametro 'url_path' serve apenas para informar onde se encontra os arquivos.
Seria a pasta raiz dos documentos e arquivos do cacti.

Em relação a não existir a linha "$config['url_path'] = '/'; , isto quer dizer que o plugin Architeture ainda não foi instalado.

Atenciosamente,
Ailson F. Guerra

[22] Comentário enviado por tacortes em 03/10/2011 - 18:00h

eu verifiquei que no meu arquivo: /usr/share/cacti/site/include/global.php

tem sim as linhas

$config['url_path'] = '$url_path';
define ('URL_PATH', $url_path);

eu tenho que substituir por :

$config['url_path'] = '/cacti/';
define ('URL_PATH', /cacti/);
?

[23] Comentário enviado por ailson guerra em 03/10/2011 - 19:57h

Boa Noite,

Olhe acima no mesmo arquivo onde encontrou:

$config['url_path'] = '$url_path';
define ('URL_PATH', $url_path);

Procure pela seguinte função:


/* set URL path */
if (! isset($url_path)) {
$url_path = "/";
}
$config['url_path'] = $url_path;
define('URL_PATH', $url_path);


Mude para

/* set URL path */
if (! isset($url_path)) {
$url_path = "/cacti/";
}
$config['url_path'] = $url_path;
define('URL_PATH', $url_path);

Dependendo da versão do Cacti e do plugin Architeture pode haver variações da forma de configuração.

Espero ter ajudado.

Atenciosamente,
Ailson F. Guerra

[24] Comentário enviado por gabolli em 08/11/2011 - 11:08h

Boa dia amigo, estou com um problema serio aqui pois estou fazendo um trabalho de gerenciamento e peguei como ferramenta o cacti porem instalado tudo como esta no manual porem na hora que vou abrir o navegador ele da muitos erros naum deixa eu entrar no cacti-web.
aqui esta a tela com os erros http://imageshack.us/photo/my-images/84/imagemluy.png/ fico grato se alguem me der uma luz... ps: estou utilizando a distribuição debian lenny

[25] Comentário enviado por tacortes em 15/11/2011 - 12:33h

Bom dia Ailson,
segui o seu artigo e esta tudo funcionando perfeitamente!!!!
eu so estou com uma dificuldade de adicionar mais dois plugins, o realtime e o manage. ve se voce pode me ajudar em identificar alguma besteira que eu fiz (ou deixei de fazer..rsrsrs)

bom eu fiz o seguinte procedimento para tentar instalar os plugins
baixei o plugin realtime: "wget http://docs.cacti.net/_media/plugin:realtime-v0.5-1.tgz"
renomiei o arquivo: " cp plugin:realtime-v0.5-1.tgz realtime.tgz"
descompactei o arquivo : " tar -zxvf realtime.tar"
movi os arquivos para o diretorio plugins: "mv realtime /usr/share/cacti/site/plugins"

e fiz o mesmo com o plugin manage

baixei o plugin manage: "http://docs.cacti.net/_media/userplugin:manage-0.6.2.zip"
renomiei o arquivo: " cp userplugin:manage-0.6.2.zip anage.zip"
descompactei o arquivo : " unzip manage.zip"
movi os arquivos para o diretorio plugins: "mv manage /usr/share/cacti/site/plugins"

editei o arquivo "config.php" da seginte forma
vim /usr/share/cacti/site/include/config.php

$plugins = array();
$plugins[] = 'setting';
$plugins[] = 'thold';
$plugins[] = 'monitor';
$plugins[] = 'ntop';
$plugins[] = 'realtime';
$plugins[] = 'manage';
$plugins[] = 'update';
$plugins[] = 'tools';
$plugins[] = 'weathermap';

criei um diretorio: "mkdir /usr/share/cacti/site/plugins/rt_plugin"

e alterei a permição : "chmod 777 /usr/share/cacti/site/plugins/rt_plugin"


apos esse procedimentos, os novos plugins nao aparecem no "Plugin Management" e nem no "Realm Permissions" em "User Management"


vlw pela ajuda!!!

[26] Comentário enviado por danniel-lara em 19/05/2012 - 10:47h

Parabéns , pelo artigo
está 100% funcionado no ubuntu 12.04 LTS
bom minha dica é usar o plugin "Disk IO Usage"
muito bom pra ficar monitorando o IO de disco do seu servidor

[27] Comentário enviado por morati em 26/05/2012 - 14:44h

Colega,

Onde eu digito esse comando?
patch -p1 -N --dry-run < cacti-plugin-0.8.7g-PA-v2.8.diff

Realmente eu tenho que instalar primeiro o architeture? para os outros funiconar? eu preciso muito do realtime e watmap

[28] Comentário enviado por ailson guerra em 28/05/2012 - 08:30h

alexandrefortal nesta versão do cacti Sim.



dentro de /usr/share/cacti/site/

[29] Comentário enviado por morati em 30/05/2012 - 12:54h

Colega,

Aqui tenho duas dúvidas.

root@monitoramento:/usr/share/cacti/cacti-plugin-arch# mysql -p cacti < pa.sql
Enter password:
ERROR 1064 (42000) at line 5: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 12

Esse é o primeiro erro....

Em /usr/share/cacti/site/include/config.php existe é esse parametro $url_path = "/cacti/";, sem o $config.

Em fim. esse cacti é osso.podes me ajudar de alguma forma? viae-mail ou msn?



[30] Comentário enviado por bqlima em 11/04/2013 - 00:41h

Ailson, eu empaquei nessa etapa, meu arquivo de configuração global.php não contem
essa linha conforme você escreveu,
Edite o arquivo: /usr/share/cacti/site/include/global.php
De: $config['url_path'] = '/';

Meu arquivo de configuração está assim:

<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2009 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDTool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/

/*
!!! IMPORTANT !!!

The following defaults are not to be altered. Please refer to
include/config.php for user configurable database settings.

*/

/* Default database settings*/
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";

/* Default session name - Session name must contain alpha characters */
$cacti_session_name = "Cacti";

/* Include configuration */
include(dirname(__FILE__) . "/config.php");

if (isset($config["cacti_version"])) {
die("Invalid include/config.php file detected.");
exit;
}

/* Files that do not need http header information - Command line scripts */
$no_http_header_files = array(
"cmd.php",
"poller.php",
"poller_commands.php",
"script_server.php",
"query_host_cpu.php",
"query_host_partitions.php",
"sql.php",
"ss_host_cpu.php",
"ss_host_disk.php",
"ss_sql.php",
"add_device.php",
"add_graphs.php",
"add_perms.php",
"add_tree.php",
"copy_user.php",
"host_update_template.php",
"poller_export.php",
"poller_graphs_reapply_names.php",
"poller_output_empty.php",
"poller_reindex_hosts.php",
"rebuild_poller_cache.php",
"repair_database.php",
"structure_rra_paths.php"
);

$config = array();
$colors = array();

/* this should be auto-detected, set it manually if needed */
$config["cacti_server_os"] = (strstr(PHP_OS, "WIN")) ? "win32" : "unix";

/* built-in snmp support */
$config["php_snmp_support"] = function_exists("snmpget");

/* set URL path */
if (! isset($url_path)) {
$url_path = "";
}
$config['url_path'] = $url_path;
define('URL_PATH', $url_path);

/* used for includes */
$config["base_path"] = strtr(ereg_replace("(.*)[\\\/]include", "\\1", dirname(__FILE__)), "\\", "/");
$config["library_path"] = ereg_replace("(.*[\\\/])include", "\\1lib", dirname(__FILE__));
$config["include_path"] = dirname(__FILE__);
$config["rra_path"] = '/var/lib/cacti/rra';

/* colors */
$colors["dark_outline"] = "454E53";
$colors["dark_bar"] = "AEB4B7";
$colors["panel"] = "E5E5E5";
$colors["panel_text"] = "000000";
$colors["panel_link"] = "000000";
$colors["light"] = "F5F5F5";
$colors["alternate"] = "E7E9F2";
$colors["panel_dark"] = "C5C5C5";

$colors["header"] = "00438C";
$colors["header_panel"] = "6d88ad";
$colors["header_text"] = "ffffff";
$colors["form_background_dark"] = "E1E1E1";

$colors["form_alternate1"] = "F5F5F5";
$colors["form_alternate2"] = "E5E5E5";

if ((!in_array(basename($_SERVER["PHP_SELF"]), $no_http_header_files, true)) && ($_SERVER["PHP_SELF"] != "")) {
/* Sanity Check on "Corrupt" PHP_SELF */
if ($_SERVER["SCRIPT_NAME"] != $_SERVER["PHP_SELF"]) {
echo "\nInvalid PHP_SELF Path \n";
exit;
}

/* we don't want these pages cached */
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
/* prevent IE from silently rejects cookies sent from third party sites. */
header('P3P: CP="CAO PSA OUR"');

/* initilize php session */
session_name($cacti_session_name);
session_start();

/* detect and handle get_magic_quotes */
if (!get_magic_quotes_gpc()) {
function addslashes_deep($value) {
$value = is_array($value) ? array_map('addslashes_deep', $value) : addslashes($value);
return $value;
}

$_POST = array_map('addslashes_deep', $_POST);
$_GET = array_map('addslashes_deep', $_GET);
$_COOKIE = array_map('addslashes_deep', $_COOKIE);
}

/* make sure to start only only Cacti session at a time */
if (!isset($_SESSION["cacti_cwd"])) {
$_SESSION["cacti_cwd"] = $config["base_path"];
}else{
if ($_SESSION["cacti_cwd"] != $config["base_path"]) {
session_unset();
session_destroy();
}
}
}

/* emulate 'register_globals' = 'off' if turned on */
if ((bool)ini_get("register_globals")) {
$not_unset = array("_GET", "_POST", "_COOKIE", "_SERVER", "_SESSION", "_ENV", "_FILES", "database_type", "database_default", "database_hostname", "database_username", "database_password", "config", "colors");

/* Not only will array_merge give a warning if a parameter is not an array, it will
* actually fail. So we check if HTTP_SESSION_VARS has been initialised. */
if (!isset($_SESSION)) {
$_SESSION = array();
}

/* Merge all into one extremely huge array; unset this later */
$input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_SESSION, $_ENV, $_FILES);

unset($input["input"]);
unset($input["not_unset"]);

while (list($var,) = @each($input)) {
if (!in_array($var, $not_unset)) {
unset($$var);
}
}

unset($input);
}

/* display ALL errors */
error_reporting(E_ALL);

/* include base modules */
include("/usr/share/php/adodb/adodb.inc.php");
include($config["library_path"] . "/database.php");

/* connect to the database server */
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type, $database_port);

/* include additional modules */
include_once($config["library_path"] . "/functions.php");
include_once($config["include_path"] . "/global_constants.php");
include_once($config["library_path"] . "/plugins.php");
include_once($config["include_path"] . "/plugins.php");
include_once($config["include_path"] . "/global_arrays.php");
include_once($config["include_path"] . "/global_settings.php");
include_once($config["include_path"] . "/global_form.php");
include_once($config["library_path"] . "/html.php");
include_once($config["library_path"] . "/html_form.php");
include_once($config["library_path"] . "/html_utility.php");
include_once($config["library_path"] . "/html_validate.php");
include_once($config["library_path"] . "/variables.php");
include_once($config["library_path"] . "/auth.php");

api_plugin_hook("config_insert");

/* current cacti version */
$config["cacti_version"] = "0.8.7e";

?>


Aguardo retorno, abs
Bruno Queiroz de Lima
brunoqueirozlima@gmail.com

[31] Comentário enviado por ailson guerra em 11/04/2013 - 09:40h

Bom Dia bqlima,

No seu caso você vai ter que procurar no arquivo include/config.php

Neste trecho o arquivo /usr/share/cacti/site/include/global.php , ele informa que no seu caso as alterações deverão ser feita dentro no include/config.php


!!! IMPORTANT !!!

The following defaults are not to be altered. Please refer to
include/config.php for user configurable database settings.

[32] Comentário enviado por betoef em 13/05/2013 - 15:52h

Boa Tarde,

Tenho instalado o cacti Version 0.8.7g no Debian (Linux beto-mrtg 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux), gostaria de atualizar a versão do cacti para Version 0.8.8a, tentei procurar alguma artigo sobre esta upgrade, mas não achei, alguém pode me ajudar como é este procedimento? Grato.

[33] Comentário enviado por kimbundo em 09/09/2013 - 10:04h

Boa Tarde a todos que poderem ajudar-me nesta impreitada de duvidas.
Instalei o cacti neste momento esta a monitorar apenas a maquina onde esta instalado o cacti.
O que mais pretendo é por tambem os plugisn necessario a funcionar. Mais infelizmente não consigo porque, quando aplico o patch recebo muitos erros.

patch -p1 -N < cacti-plugin-0.8.7h-PA-v3.0.diff
patching file auth_changepassword.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file auth_changepassword.php.rej
patching file auth_login.php
Hunk #1 FAILED at 124.
Hunk #2 FAILED at 168.
Hunk #3 FAILED at 189.
Hunk #4 FAILED at 222.
Hunk #5 FAILED at 249.
Hunk #6 FAILED at 264.
Hunk #7 FAILED at 303.
Hunk #8 FAILED at 319.
8 out of 8 hunks FAILED -- saving rejects to file auth_login.php.rej
patching file cli/add_graph_template.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file cli/add_graph_template.php.rej
patching file cli/host_update_template.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file cli/host_update_template.php.rej
patching file data_sources.php
Reversed (or previously applied) patch detected! Skipping patch.
9 out of 9 hunks ignored -- saving rejects to file data_sources.php.rej
patching file graph.php
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file graph.php.rej
patching file graph_image.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file graph_image.php.rej
patching file graphs.php
Reversed (or previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file graphs.php.rej
patching file graphs_new.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file graphs_new.php.rej
patching file host.php
Reversed (or previously applied) patch detected! Skipping patch.
8 out of 8 hunks ignored -- saving rejects to file host.php.rej
The next patch would create the file images/disable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/enable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/enable_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/install_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/install_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/uninstall_icon.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/view_none.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file include/auth.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file include/auth.php.rej
patching file include/bottom_footer.php
Hunk #1 FAILED at 21.
1 out of 1 hunk FAILED -- saving rejects to file include/bottom_footer.php.rej
The next patch would create the file include/config.php.dist,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file include/global.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file include/global.php.rej
patching file include/global_arrays.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file include/global_arrays.php.rej
patching file include/global_constants.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/global_constants.php.rej
patching file include/global_form.php
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 1241.
2 out of 2 hunks FAILED -- saving rejects to file include/global_form.php.rej
patching file include/global_settings.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/global_settings.php.rej
The next patch would create the file include/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file include/top_graph_header.php
Reversed (or previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 66.
Hunk #3 FAILED at 74.
3 out of 3 hunks FAILED -- saving rejects to file include/top_header.php.rej
patching file index.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file index.php.rej
patching file lib/api_device.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/api_device.php.rej
patching file lib/api_graph.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/api_graph.php.rej
patching file lib/auth.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/auth.php.rej
patching file lib/data_query.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/data_query.php.rej
patching file lib/functions.php
Reversed (or previously applied) patch detected! Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file lib/functions.php.rej
patching file lib/html.php
Reversed (or previously applied) patch detected! Skipping patch.
8 out of 8 hunks ignored -- saving rejects to file lib/html.php.rej
patching file lib/html_form.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/html_form.php.rej
patching file lib/html_tree.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/html_tree.php.rej
The next patch would create the file lib/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file lib/poller.php
Hunk #1 FAILED at 432.
1 out of 1 hunk FAILED -- saving rejects to file lib/poller.php.rej
patching file lib/rrd.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file lib/rrd.php.rej
patching file lib/template.php
Reversed (or previously applied) patch detected! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/template.php.rej
patching file lib/variables.php
Reversed (or previously applied) patch detected! Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file lib/variables.php.rej
The next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file poller.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file poller.php.rej
patching file user_admin.php
Hunk #1 FAILED at 57.
Hunk #2 FAILED at 83.
Hunk #3 FAILED at 402.
Hunk #4 FAILED at 444.
Hunk #5 succeeded at 900 with fuzz 2 (offset 11 lines).
Hunk #6 FAILED at 917.
Hunk #7 FAILED at 930.
6 out of 7 hunks FAILED -- saving rejects to file user_admin.php.rej
patching file utilities.php
Hunk #1 FAILED at 123.
Hunk #2 succeeded at 310 with fuzz 2 (offset 22 lines).
Hunk #3 succeeded at 1671 with fuzz 2 (offset 9 lines).
1 out of 3 hunks FAILED -- saving rejects to file utilities.php.rej

Sera que alguem me pode ajudar?

[34] Comentário enviado por renatoramossilva em 28/10/2014 - 13:54h


Entre na pasta e execute o comando para copiar os arquivos e substituir os originais.

# cp -r * /usr/share/cacti/site/

Digite o comando:

# patch -p1 -N --dry-run < cacti-plugin-0.8.7g-PA-v2.8.diff
# patch -p1 -N < cacti-plugin-0.8.7g-PA-v2.8.diff

que pasta é essa?

quand executo # patch -p1 -N --dry-run < cacti-plugin-0.8.7g-PA-v2.8.diff daarquivo nao encontrado


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts