-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New architecture | New options | Improvements | Corrections
The following changes were made: - Change in project architecture. - New option for automatic error reporting. Using RSA encryption. - New service filter option. - Now DebugInfo is able to show all the services of a host - Improvements in some functions. - Corrections in translations. - Version update. CAUTION: Due to architectural change, it is not recommended when updating simple overwriting of files. Because it can cause duplicate files and configuration problems.
- Loading branch information
1 parent
4839482
commit 59bd03d
Showing
50 changed files
with
1,783 additions
and
659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
config.php | ||
keys.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<?php | ||
#################################################################################################### | ||
# CONFIGURAÇÕES GERAIS # | ||
#################################################################################################### | ||
// Defina essa duas linhas, elas sao extremamente importantes | ||
// No linux execute `updatedb`, `locate nagios.cfg` e `locate status.dat` para encontrar esses arquivos | ||
// Eles geralmente ficam em: /usr/local/nagios/etc/nagios.cfg e /usr/local/nagios/var/status.dat | ||
$nagios_cfg_file = "/usr/local/nagios/etc/nagios.cfg"; | ||
$nagios_status_dat_file = "/usr/local/nagios/var/status.dat"; | ||
|
||
// Ativar Debug? | ||
// Use somente para gerar informacoes extras para suporte e acessar a pagina Debug Info. | ||
// 1 = SIM. | ||
// 0 = NAO. | ||
$nagMapR_Debug = 0; | ||
|
||
// Define se o sistema de monitoramento e o Nagios, caso nao, esconde algumas informacoes especificas. | ||
// 1 = SIM, o sistema de monitoramento e o Nagios. | ||
// 0 = NAO, o sistema de monitoramento nao e o Nagios. | ||
$nagMapR_IsNagios = 1; | ||
|
||
#################################################################################################### | ||
# PREFERENCIAS DO MAPA # | ||
#################################################################################################### | ||
// Defina o centro do mapa (latitude, longitude) | ||
$nagMapR_MapCentre = '-4.018935, -52.607260'; | ||
|
||
// Nivel padrao de zoom no mapa. | ||
$nagMapR_MapZoom = 6.2; | ||
|
||
// Qual tipo de mapa? | ||
// ROADMAP | ||
// SATELLITE | ||
// HYBRID | ||
// TERRAIN | ||
$nagMapR_MapType = 'ROADMAP'; | ||
|
||
// Insira sua chave privada de API. | ||
// Veja aqui como conseguir uma chave privada de API (EM INGLES): | ||
// https://developers.google.com/maps/documentation/javascript/get-api-key | ||
$nagMapR_Mapkey = ''; | ||
|
||
#################################################################################################### | ||
# CARACTERISTICAS DO NAGMAP REBORN # | ||
#################################################################################################### | ||
// Define o nome do arquivo de traducao. | ||
// Veja na pasta 'langs' as traducoes disponiveis. | ||
// Voce pode criar sua propria traducao, basta somente copiar e renomear um dos arquivos existentes | ||
// e fazer as mudanças necessarias | ||
$nagMapR_Lang = 'pt-BR'; | ||
|
||
// Filtro de Hostgroup, mostra somente os host pertecentes a esse hostgroup. | ||
// Deixe em branco para não filtrar. | ||
$nagMapR_FilterHostgroup = ''; | ||
|
||
// Filtro de servicos - Usa o status de um servico especifico como primario. O servico que sera | ||
// usado para definir o status no mapa. Util quando existem mais de um servico por host. | ||
// Pode ser utilizado mais de um servico no filtro (utilizando ';' como separador), desde que um | ||
// um unico host nao contenha mais de um dos servicos filtrados. | ||
// Nao e necessario informar o nome completo do servico, mas uma parte unica que diferencie o servico | ||
// dos demais ja e o suficiente. | ||
// Os servicos sao filtrados pelo service_description. | ||
// Deixe em branco para não filtrar. | ||
$nagMapR_FilterService = ''; | ||
|
||
// Estilos personalizados | ||
// Se utilizado, essa opcao sobrepoem o tipo de mapa definido em ($nagMapR_MapType) | ||
// Essa opcao deve conter o nome do arquivo .json presente na pasta 'styles'. | ||
// Estilos personalizados podem ser criados aqui: (https://mapstyle.withgoogle.com/) | ||
// Veja na pasta 'styles' os estilos prontos para uso. | ||
// Deixe em branco para nao utilizar estilos personalizados. | ||
$nagMapR_Style = ''; //Por exemplo: ($nagMapR_Style = 'Dark';) Para usar o estilo Dark.json | ||
|
||
// Exibir ChangesBar? (Barra com informãcoes sobre os hosts) | ||
// 1 = SIM. | ||
// 0 = NAO. | ||
$nagMapR_ChangesBar = 1; | ||
|
||
// Seelecione o modo de operacao da ChangesBar | ||
// 1 = Modo historico mode. (Exibe todas as ocorrencias de forma sequencial com a data e hora) | ||
// 2 = Modo alerta. (Exibe somente os hosts que estao DOWN, CRITICAL ou em WARNING, com o tempo decorrido) | ||
$nagMapR_ChangesBarMode = 2; | ||
|
||
// Tamanho em porcentagem ocupado pela ChangesBar na tela. (use somente numeros) | ||
$nagMapR_ChangesBarSize = 15; | ||
|
||
// Tamanho da fonte em pixel usado na ChangesBar. (use somente numeros) | ||
$nagMapR_FontSize = 15; | ||
|
||
// Define o formato de data utilizado na ChangesBar. | ||
// 1 = DD/MM/YYYY | ||
// 2 = MM/DD/YYYY | ||
// 3 = YYYY/MM/DD | ||
$nagMapR_DateFormat = 1; | ||
|
||
// Tocar um alerta sonoro quando o status de um host mudar para down? | ||
// Para mudar o alerta tocado, basta somente substituir o arquivo 'Beep.mp3' na pasta do NagMap Reborn. | ||
// 1 = SIM. | ||
// 0 = NAO. | ||
$nagMapR_PlaySound = 1; | ||
|
||
// Escolha o estilo dos icones no mapa. | ||
// 0 = Icone original. | ||
// 1 = Sem bordas com sombra. | ||
// 2 = Com bordas sem sombra. | ||
$nagMapR_IconStyle = 1; | ||
|
||
// Mostrar linha entre hosts e seus parentes?. | ||
// 1 = SIM. | ||
// 0 = NAO. | ||
$nagMapR_Lines = 1; | ||
|
||
// Tempo em segundos, para atualização do status dos hosts. (use somente numeros) | ||
$nagMapR_TimeUpdate = 10; | ||
|
||
// Reportar erros automaticamente? | ||
// 1 = SIM. | ||
// 0 = NAO. | ||
$nagMapR_Reporting = 1; | ||
|
||
#################################################################################################### | ||
# INFORMACAO DE SEGURANCA # | ||
#################################################################################################### | ||
// Chave de seguranca, protege de requisicoes externas. (use somente numeros e letras) | ||
$nagMapR_key = 'JFJQPLyCqcEnTOe7ReWJUzYO7QA9Tq9v9XOhTQfEvLe3dUiQLdoVVny2PI9gdcJ0R8TWadF6m8j8iqPKpqCFZBr2XnCaVFyWGTlND5BG2C58qvMr3AjYfv01T7qoPmoh'; | ||
?> |
Oops, something went wrong.