#rrdtool
Explore tagged Tumblr posts
bigdataschool-moscow · 1 year ago
Link
0 notes
mapkyca · 8 years ago
Text
Collecting performance/health metrics in Known
Collecting performance/health metrics in Known
[postimg]https://www.marcus-povey.co.uk/wp-content/IzqGaQEL.png[/postimg] I have recently been doing a lot of development work for a very large Known installation. This installation is highly customised, has many active users, all doing unexpected and creative things with the platform, and makes use of many of Known’s more advanced features in often quite unexpected ways.
As with everything built…
View On WordPress
0 notes
craigbrownphd · 2 years ago
Text
If you did not already know
SenGen We present a new topic model that generates documents by sampling a topic for one whole sentence at a time, and generating the words in the sentence using an RNN decoder that is conditioned on the topic of the sentence. We argue that this novel formalism will help us not only visualize and model the topical discourse structure in a document better, but also potentially lead to more interpretable topics since we can now illustrate topics by sampling representative sentences instead of bag of words or phrases. We present a variational auto-encoder approach for learning in which we use a factorized variational encoder that independently models the posterior over topical mixture vectors of documents using a feed-forward network, and the posterior over topic assignments to sentences using an RNN. Our preliminary experiments on two different datasets indicate early promise, but also expose many challenges that remain to be addressed. … In-Database Entity Linking (IDEL) We present a novel architecture, In-Database Entity Linking (IDEL), in which we integrate the analytics-optimized RDBMS MonetDB with neural text mining abilities. Our system design abstracts core tasks of most neural entity linking systems for MonetDB. To the best of our knowledge, this is the first defacto implemented system integrating entity-linking in a database. We leverage the ability of MonetDB to support in-database-analytics with user defined functions (UDFs) implemented in Python. These functions call machine learning libraries for neural text mining, such as TensorFlow. The system achieves zero cost for data shipping and transformation by utilizing MonetDB’s ability to embed Python processes in the database kernel and exchange data in NumPy arrays. IDEL represents text and relational data in a joint vector space with neural embeddings and can compensate errors with ambiguous entity representations. For detecting matching entities, we propose a novel similarity function based on joint neural embeddings which are learned via minimizing pairwise contrastive ranking loss. This function utilizes a high dimensional index structures for fast retrieval of matching entities. Our first implementation and experiments using the WebNLG corpus show the effectiveness and the potentials of IDEL. … REINFORCEjs REINFORCEjs is a Reinforcement Learning library that implements several common RL algorithms, all with web demos. In particular, the library currently includes: · Dynamic Programming methods · (Tabular) Temporal Difference Learning (SARSA/Q-Learning) · Deep Q-Learning for Q-Learning with function approximation with Neural Networks · Stochastic/Deterministic Policy Gradients and Actor Critic architectures for dealing with continuous action spaces. (very alpha, likely buggy or at the very least finicky and inconsistent) GitHub REINFORCEjs … RRDtool RRDtool (round-robin database tool) aims to handle time series data such as network bandwidth, temperatures or CPU load. The data is stored in a circular buffer based database, thus the system storage footprint remains constant over time. RRDtool … https://analytixon.com/2023/04/09/if-you-did-not-already-know-2013/?utm_source=dlvr.it&utm_medium=tumblr
0 notes
hackgit · 2 years ago
Text
[Media] ​​Cacti
​​Cacti A complete #network #graphing solution designed to harness the power of RRDtool's data storage and graphing functionality providing the following features: ▫️ Remote and local data collectors ▫️ Device discovery ▫️ Automation of device and graph creation ▫️ Graph and device templating ▫️ Custom data collection methods ▫️ User, group and domain access controls https://github.com/Cacti/cacti Website: https://www.cacti.net/
Tumblr media
0 notes
rsgoind · 3 years ago
Text
Free Tools for Network Administrator
Tumblr media
When it comes to building your tool compartment we all have many select favorites. Numerous instruments come and go but there are those that have stuck around for the long pull. The ones you introduce on modern computers and the ones you keep on a thumb drive, for movability. Below is a list from my toolbox, 7 free tools for Network Administrator. Putty My 1# most-used tool. Whether it is consoling, ssh, or telnetting into a switch this is the application ue use. It is lightweight and simple to use. I can log all of my output to a text file which I have written about previously. It also interfaces with SuperPutty if you like using tabs. Download Putty Wireshark This application is handy for troubleshooting networks and applications. With the plethora of options available, you can filter by protocols, IP addresses, and more. Additionally, it makes a great learning resource for understanding TCP/IP communications. Download Wireshark TFTPD32 This application makes it easy to do maintenance tasks such as uploading firmware to network devices and downloading backups of configuration files from network devices. If you have a template configuration file you can also upload them using TFTPD32. Download TFTPD32 Cacti This open source tool is used for graphing. It utilizes RRDTool, templates, and data acquisition methods to graph your network. I primarily use it to graph interfaces of my switches and routers. Download Cacti Rancid Earlier We were manually backing up my routers and switches configuration files. There were times where I was devastated because a router failed and I had no documentation of it’s configuration. Time was wasted reconfiguring the router. With proper configuration, RANCID will use cron to log into your network hardware and download a copy of it’s latest configuration. This saved my ass so many times. You get plenty of sleep knowing your config files are backed up regularly. Download RANCID IP Scanner To see what devices are active on a subnet we can use this tool. You can give it a range or have it scan a subnet and it will let you know if a host was alive on a specific IP address and what hostname was discovered on that IP. Download IP Scanner Above are few free network administrator. Additional Resources - Free CCNA Study Guide - Free CCNA Workbook Read the full article
0 notes
computingpostcom · 3 years ago
Text
Introduction Hello there guys, welcome once again for another time as we go through another session of exploring knowlegde. “Comfort and prosperity have never enriched the world as much as adversity has.” –Billy Graham In this article, we will be taking a look at some of the monitoring tools you might wish to consider for your network or your infrastructure. We will focus on the opensource tools looking at their features and their components in a nutshell. They have not been arranged in any order and gives a sneak preview of what they offer. A very important part for an organization or one who administers systems is the ability to tell how his house is faring. Being able to know when something is not taking place as expected can really boost performance and reduce the amount of time troubleshooting for anomalities. To succeed in that, there are tools that have to be your best friend because they will aid you in this prudent quest. To that end, therefore, there are a number of tools we can utilize to gather and process what is taking place inside our network and servers. Cacti From Cacti’s site, this tool “is a complete network graphing solution designed to harness the power of RRDTool’s data storage and graphing functionality. Cacti provide a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with thousands of devices.”(Cacti.net, 2018). Cacti harness the power of RRDtool which is an OpenSource industry standard data logging and graphing system for time series data. Thi high performance tool RRDtool can be easily and seamlessly integrated into scripting languages such as shell scripts, perl, python, ruby, lua or tcl applications. The features of Cacti include the following: Data Gathering: Cacti has a functionality for data input. This gives the users the freedom to develop custom scripts for gathering data from the target devices. Nonetheless, it comes bundled with SNMP which is an industry data gathering technology. What is more is that Cacti comes with a PHP-based poller having the benefits of executing scripts, retrieving SNMP data, and updating the RRD files User Management: Cacti has this rich feature where multiple users with their accounts can be set up. The administrator has the flexibility of allocating a given portion of privileges to a given user. Display of graphs: There are three different ways to view your graphs viz, tree view, list view and preview view. These three views have their benefits, for example, the tree view gives users the ability to create hierarchies of graphs and also the chance to place those graphs on the tree. A large number of graphs can be managed this way. The list view as the name suggests is simply a list of the available graphs and links you to the actual graph when clicked. The last preview view gives a visual of all of the graphs in one large list where you can quickly peruse and look at the graphic graphs. Templates: There are three different types of templates: Data Templates, Graph Templates, and Host Templates. It eases the burden of defining all data sources and graphs without using Templates at all which can be quite painful. The data template provides a skeleton for an actual data source. The Host Templates groups all Graph Templates and Data Query for a given device type. What is more exciting is that you do not need to create all Templates on your own. Templates can be found out of the box and there is a very simple feature where such templates can be imported into your cacti platform. Alerting mechanisms: Cacti can be configured to send mail alerts in case pre-defined variables or thresholds have been exceeded or not achieved. This makes your nights awesome since you do not have to start looking for problems when those calls come in. It will pinpoint that a certain service is down or facing particular anomalies.
Reporting: Cacti can generate reports in accordance with your configuration. Below are important Cacti Articles to help you started: How to Install and Configure Cacti on Ubuntu 18.04 How to Import templates on Cacti LibreNMS I recently stumbled upon LibreNMS monitoring tool and I have to say that it has been developed so well. Its installation guide on Ubuntu 18 is on our site. LibreNMS is a community-based fork of the last GPL-licensed version of Observium with plenty of features. The tool is based on PHP/MySQL/SNMP and monitors the network together with your servers. What is cool about libreNMS is the fact that it is auto-discovering. You do not have to tell it if your device is a Cisco, Juniper, Windows or Linux based. It automatically gathers this information like a charm using protocols such as CDP, FDP, LLDP, OSPF, BGP, SNMP, and ARP. It goes an extra mile and discovers the interfaces on your router or switch which is pretty impressive. It also attempts to draw the connection details of your network but requires assistance from you. LibreNMS can group interfaces based on their description’s prefix, for example, “Transit:”, “Peering:”. Which is shown under the “ports” drop-down. Alerts: Like most monitoring tools, libreNMS also has the monitoring functionality which can be highly customized. Scalability: As your network grows, its distributed polling feature allows horizontal scaling of your system. LibreNMS has a billing system. Yes, this tool has one. This can be done through the generation of bandwidth bills for ports on your network in accordance to usage or transfer. LibreNMS has an Andriod and Apple Apps which can be used to view and manage your network. This is such a breath of fresh air. Support or various authentication mechanisms such as radius, LDAP, Active Directory and more. Nevertheless, you can integrate it to any other system via its API access. This tool is a beast and hence encourage you to take a look at what is happening inside its engine. There is much more than the article can reveal including security through You can get started by checking How to Install and Configure LibreNMS on Ubuntu 18.04 LTS with Nginx guide. Nagios From nagios.org, “Nagios monitors your entire IT infrastructure to ensure systems, applications, services, and business processes are functioning properly. In the event of a failure, Nagios can alert technical staff of the problem, allowing them to begin remediation processes before outages affect business processes, end-users, or customers.” It is a tool that began way back in 1999 and has grown to include other products currently but all focused on monitoring. Let us have a look at the features it has for your consideration. Monitoring of a large number of devices: Nagios has the capabilities of monitor applications, services, operating systems, network protocols, system metrics and infrastructure components with a single tool. This makes it a jack of all trades which can be quite beneficial if you want one tool to cover a wide range of services and devices. Multi-tenancy: Having many users logged into the interface simultaneously boosts efficiency and even improves your business since interested stakeholders can have a real-time look at the status of the infrastructure. It can also limit views to only user-specific network and hence accommodate more in one platform. You can only see what belongs to you. Reporting: Nagios ensures that Service Level Agreements are met by producing reports which can be enhanced by plugins from third party vendors. This makes it highly flexible and customizable. Visibility: With a centralized web interface where you can see everything, it can be easy to detect outages. Notifications: Nagios has alerting functionality. The alerts can be sent via SMS and mail which translates to the simplified management of your infrastructure. One interesting feature Nagios has is how event handlers allow the automatic restart of failed applications and services.
In case you are intrigued by Nagios, please visit their site for more insights. Prometheus Prometheus is an open-source system monitoring and alerting toolkit originally built at SoundCloud(prometheus.io, 2018). It works well for recording any purely numeric time series. It fits both machine-centric monitoring as well as monitoring of highly dynamic service-oriented architectures(prometheus.io, 2018) For graphic visualizations, Prometheus supports tools such as Grafana for data visualization and export. There are guides about installations and integrations on our site about Prometheus and Grafana. Install Prometheus Server on CentOS 7 and Ubuntu 18.04 Monitoring Ceph Cluster with Prometheus and Grafana Monitoring MySQL and MongoDB with Prometheus and Grafana – PMM Feel free to look at them if you might be interested. The main features of this tool include(prometheus.io, 2018): A multi-dimensional data model with time series data identified by metric name and key/value pairs A flexible query language to leverage this dimensionality No reliance on distributed storage; single server nodes are autonomous Time series collection happens via a pull model over HTTP Pushing time series is supported via an intermediary gateway Targets are discovered via service discovery or static configuration Multiple modes of graphing and dash-boarding support Zabbix From its site, “Zabbix is the ultimate enterprise-level software designed for real-time monitoring of millions of metrics collected from tens of thousands of servers, virtual machines, and network devices.” It is capable of monitoring not only Linux but Windows, Solaris, IBM AIX. Zabbix contains many features and we shall go over them in a nutshell. Collection of Metrics: It has various methods through which it can collect the metrics being desired including: Multi-platform Zabbix agent(Zabbix agent may run on various supported platforms, including Linux, UNIX, and Windows, and collect data such as CPU, memory, disk and network interface usage from a device.), SNMP and IPMI agents, Agentless monitoring of user services, Custom methods, Calculation and aggregation and end-user web monitoring Detection of anomalies in your set-up: Zabbix is able to detect problem states within the incoming metric flow in an automatic fashion. Better visualization presentation: According to the Zabbix developers, the interface gives its users multiple ways of presenting a visual overview of your infrastructure and environment. These can be in-form of Widget-based dashboards, Graphs, Network maps, and Slideshows. Notifications: The server can send messages or mail. A lot more can be done as far as alerts are concerned. For example, the messages can be customized based on the recipient’s role or with runtime and inventory information. Moreover, the messages can be configured to focus on the root causes of the arising problem using the Zabbix Event correlation mechanism. The use of templates: This feature allows you to Use out-of-the-box templates for most of the popular platforms and to Monitor thousands of similar devices by using configuration templates Scalability: Zabbix uses proxies which send collected information in the environment it sits in a central Zabbix server. The Use of Zabbix proxies may greatly simplify the maintenance of an environment monitored by Zabbix and increase the performance of the central Zabbix server. This shows how the monitoring system can scale in a distributed fashion. Zabbix has an API and hence can be used to integrate it to any system in the infrastructure. Below are Zabbix guides available on our blog. How to Install and configure Zabbix agent 3.4 on CentOS 7 How to Install and configure Zabbix agent on Ubuntu 18.04 Install Zabbix Server on Ubuntu 18.04 We hope you have gained a lot from the article. There are other monitoring tools available out there such as Sensu, Systat and many more that the article’s scope could not allow. Cheers guys.
If you’re looking for a proper way to manage and audit access rights across your IT infrastructure, explore Access Rights Manager.
0 notes
sololinuxes · 5 years ago
Text
Instalar Ganglia Monitoring Server en Ubuntu
Tumblr media
Instalar Ganglia Monitoring Server en Ubuntu. Ganglia, es un sistema de monitoreo para sistemas y redes de alto rendimiento. Creado en 2002 bajo licencia BSD por la Universidad de Berkeley, es la base de muchos de los sistemas de monitorización que todos conocemos. Ganglia utiliza estructuras de datos y algoritmos especialmente diseñados para lograr un consumo mínimo del sistema, independientemente de los datos masivos a recolectar. Dado su carácter poderoso y robusto, actualmente se usa en miles de clusters de todo el mundo, también se admite en la mayoría de sistemas basados en Unix, y varias arquitecturas. En este articulo veremos como instalar y configurar un servidor Ganglia (especifico), para monitorizar varios servidores, vps o clusters.  
Instalar Ganglia Monitoring Server en Ubuntu
Nosotros instalamos Ganglia Monitoring en Ubuntu 18.04 LTS, pero también es valido para otros sistemas similares. Comenzamos. Instalar Apache Instalamos el servidor Apache. sudo apt update sudo apt install apache2 Iniciamos y habilitamos Apache con el inicio del sistema. sudo systemctl start apache2.service sudo systemctl enable apache2.service Ya tenemos Apache instalado y corriendo en nuestro servidor.   Instalar PHP 7.2 La versión 7.2 de php viene de manera predeterminada en los repositorios de Ubuntu 18.04 LTS, si instalas Ganglia en otras versiones como por ejemplo Ubuntu 16.04 LTS debes agregar el siguiente repositorio (si no es tu caso, omite). sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php Actualizamos e instalamos PHP 7.2 con los módulos necesarios para el correcto funcionamiento de Ganglia. sudo apt update sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-gd php7.2-xml php7.2-cli php7.2-zip Ahora vamos a configurar php.ini. sudo nano /etc/php/7.2/apache2/php.ini La configuración que te propongo es correcta para Glanglia, aun así, puedes modificarla dependiendo de tus necesidades. file_uploads = On allow_url_fopen = On short_open_tag = On memory_limit = 256M upload_max_filesize = 100M max_execution_time = 360 max_input_vars = 1500 date.timezone = Europe/Madrid Reiniciamos Apache. sudo systemctl restart apache2.service La instalación de php a terminado, vamos a instalar el monitoring server.   Instalamos la herramienta Ganglia Nuestro servidor web ya está en marcha, continuamos con la instalación de Ganglia desde los repositorios oficiales predeterminados. sudo apt update sudo apt install ganglia-monitor rrdtool gmetad ganglia-webfrontend Una vez termine la instalación, iniciamos y habilitamos la herramienta para que arranque con el sistema. sudo systemctl start ganglia-monitor.service sudo systemctl enable ganglia-monitor.service Puedes verificar que se instalo correctamente y que está corriendo, con el comando... systemctl status ganglia-monitor.service ejemplo de salida valida... ● ganglia-monitor.service     Loaded: loaded (/etc/init.d/ganglia-monitor; generated)       Active: active (running) since Wed 2020-01-23 07:12:46 CST; 38s ago         Docs: man:systemd-sysv-generator(8)       Tasks: 2 (limit: 3927)    CGroup: /system.slice/ganglia-monitor.service                    └─20853 /usr/sbin/gmond --pid-file /var/run/gmond.pid Jan 23 07:12:46 ubuntu1804 systemd: Starting ganglia-monitor.service... Jan 23 07:12:46 ubuntu1804 ganglia-monitor: Starting Ganglia Monitor Daemon: gmond. Jan 23 07:12:46 ubuntu1804 systemd: Started ganglia-monitor.service. Perfecto... Ganglia ya funciona.   Configurar Ganglia El archivo de configuración predeterminado es "gmetad.conf", para que Glangios nos funcione bien debemos hacer algunas modificaciones. sudo nano /etc/ganglia/gmetad.conf Edita la ip de "my cluster". Esta IP debe ser del servidor que trabajara como nodo principal. # A list of machines which service the data source follows, in the # format ip:port, or name:port. If a port is not specified then 8649 # (the default gmond port) is assumed. # default: There is no default value # # data_source "my cluster" 10 localhost my.machine.edu:8649 1.2.3.5:8655 # data_source "my grid" 50 1.3.4.7:8655 grid.org:8651 grid-backup.org:8651 # data_source "another source" 1.3.4.7:8655 1.3.4.8 data_source "my cluster" 50 192.168.0.100:8655 Read the full article
0 notes
stevensaus · 6 years ago
Text
Bare-Bones Monitoring with Monit and RRDtool
http://bit.ly/2OlU1Ve
0 notes
nksistemas · 8 years ago
Text
Instalación de PNP4Nagios en Nagios con Centos
PNP4Nagios es un complemento para Nagios que analiza los datos de rendimiento obtenidos por los plugins y los almacena automáticamente en bases de datos RDD (Round Robin Databases, ver RRD Tool). En el desarrollo de PNP hemos valorado que tuviera una fácil instalación y un mínimo mantenimiento mientras está en producción. 1- Dependencias necesarias # yum install rrdtool perl-Time-HiRes…
View On WordPress
0 notes
mckaygerhard · 5 years ago
Text
Cacti on Alpine host install: traffic analysis and monitoring network
Cacti: traffic analysis and monitoring network Cacti is a complete network monitoring and data analising solution using RRDTool's data storage and graphing functionality. It is the most widely used monitoring tool by ISPs to see graphically the network. This time a complete guide install and configuration for Alpine systems hosted as monitor system, using 8G or RAM (this are important, http://dlvr.it/RSBBpJ
0 notes
kenwu0310 · 6 years ago
Text
Cacti 1.2.3 Released
版本號:
1.2.3
官方網站:http://www.cacti.net
下載點:http://www.cacti.net/download_cacti.php
重點項目:
phpseclib 更新至 2.0.15
1.2.2 ChangeLog:
issue#1063: Tree View does not display the last item correctly under ‘Modern’ theme
issue#2282: Install Wizard does not Detect RRDtool Version on Windows
issue#2430: “New Device” menu item showing as selected incorrect when “Devices” clicked
issue#2435:Tree View becomes…
View On WordPress
0 notes
computingpostcom · 3 years ago
Text
This guide will cover how to install and configure Cacti on RHEL 8 / CentOS 8. Monitoring is a key component of any Infrastructure. At ComputingPost, so far, we have covered the usage of Zabbix, telegraf/ Influxdb, Grafana, and Prometheus. Cacti is a completely open-source network monitoring and graphing tool that was designed as a front-end application for the industry-standard data logging tool – RRDtool. Cacti harnesses the power of RRDTool’s data storage and graphing functionality. Some good features of Cacti include: Fast polling of metrics Support for multiple data acquisition methods Support for advanced graph templating User management functionality with ACL Cacti provides an intuitive and easy to use web interface for managing network monitoring and configurations. There are dependencies needed for building and running Cacti on RHEL 8 / CentOS 8. This section will cover installation and configuration of each component. Step 1: Install Build tools and System Dependencies Upgrade your OS: sudo dnf -y update sudo reboot Start with installation of Development Tools set. Install GCC and Development Tools on RHEL / CentOS 8 After installation of Development tools, install SNMP packages. sudo dnf install -y net-snmp net-snmp-utils rrdtool Step 2: Install php and required extensions Install PHP and extensions required by Cacti on your RHEL / CentOS 8. sudo dnf -y install @php sudo dnf -y install php php-mysqlnd,curl,gd,intl,pear,recode,ldap,xmlrpc,snmp,mbstring,gettext,gmp,json,xml,common Verify PHP version and loaded modules. $ php -v PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies Set PHP Paramenets inside /etc/php.ini file. sudo vim /etc/php.ini Set correct timezone: date.timezone = Africa/Nairobi Change PHP memory limit to 400M memory_limit = 512M Update Maximum execution time of each script: max_execution_time = 300 Start php-fpm service. sudo systemctl enable --now php-fpm Confirm status. $ systemctl status php-fpm ● php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2019-03-17 10:23:52 EAT; 5s ago Main PID: 31139 (php-fpm) Status: "Ready to handle connections" Tasks: 6 (limit: 11510) Memory: 38.2M CGroup: /system.slice/php-fpm.service ├─31139 php-fpm: master process (/etc/php-fpm.conf) ├─31140 php-fpm: pool www ├─31141 php-fpm: pool www ├─31142 php-fpm: pool www ├─31143 php-fpm: pool www └─31144 php-fpm: pool www Mar 17 10:23:52 rhel8.local systemd[1]: Starting The PHP FastCGI Process Manager… Mar 17 10:23:52 rhel8.local systemd[1]: Started The PHP FastCGI Process Manager. Step 3: Install Apache Web server Use the command below to install Apache httpd server. sudo dnf -y install @httpd Start and enable service to start at boot. sudo systemctl enable --now httpd Status should indicate running. $ systemctl status httpd ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/httpd.service.d └─php-fpm.conf Active: active (running) since Sun 2019-03-17 10:49:20 EAT; 2s ago Docs: man:httpd.service(8) Main PID: 32106 (httpd) Status: "Started, listening on: port 443, port 80" Tasks: 213 (limit: 11510) Memory: 29.2M CGroup: /system.slice/httpd.service ├─32106 /usr/sbin/httpd -DFOREGROUND ├─32108 /usr/sbin/httpd -DFOREGROUND ├─32109 /usr/sbin/httpd -DFOREGROUND ├─32110 /usr/sbin/httpd -DFOREGROUND └─32111 /usr/sbin/httpd -DFOREGROUND Mar 17 10:49:20 rhel8.local systemd[1]: Starting The Apache HTTP Server…
Mar 17 10:49:20 rhel8.local httpd[32106]: Server configured, listening on: port 443, port 80 Mar 17 10:49:20 rhel8.local systemd[1]: Started The Apache HTTP Server. Allow http and https ports on the firewall. sudo firewall-cmd --add-service=http,https --permanent sudo firewall-cmd --reload Ref: How to Install Apache with mod_ssl & mod_http2 on RHEL 8 Step 4: Install and Configure Database Server You can choose to use MySQL or MariaDB database server. if you don’t have either installed, below guides should be helpful. sudo dnf -y install @mariadb Start and enable mariadb service: sudo systemctl enable --now mariadb Secure your database server: sudo mysql_secure_installation Reference: How to Install MariaDB on RHEL 8 / CentOS 8 How to Install MySQL 8.0 on RHEL 8 / CentOS 8 After Database server installation, create database and user for Cacti Monitoring tool. $ sudo mysql -u root -p CREATE DATABASE cacti; GRANT ALL ON cacti.* TO 'cacti'@'localhost' IDENTIFIED BY 'StrongDBPassword'; FLUSH PRIVILEGES; exit Tune MariaDB database for Cacti Add the following settings under [mysqld] setion the file /etc/my.cnf.d/mariadb-server.cnf sudo vim /etc/my.cnf.d/mariadb-server.cnf Add the following settings inside mysqld section: [mysqld] character-set-server=utf8mb4 collation-server=utf8mb4_unicode_ci max_heap_table_size=128M tmp_table_size=128M join_buffer_size=256M innodb_buffer_pool_size=512M innodb_doublewrite=OFF innodb_flush_log_at_timeout=3 innodb_read_io_threads=32 innodb_write_io_threads=16 innodb_buffer_pool_instances=5 Restart mariadb service after adding the lines. sudo systemctl restart mariadb Step 5: Download and Configure Cacti Download the latest release of Cacti tarball to your system. mkdir cacti && cd cacti curl -SL https://www.cacti.net/downloads/cacti-latest.tar.gz | tar --strip 1 -xzf - Move cacti folder to /var/www/html directory. cd .. sudo mv cacti/ /var/www/html/ Import Cacti database data sudo mysql -u root -p cacti < /var/www/html/cacti/cacti.sql Setup mysql timezone for cacti database user. mysql_tzinfo_to_sql /usr/share/zoneinfo | sudo mysql -u root -p mysql Grant cacti MySQL database user access to Timezone database: $ sudo mysql -u root -p GRANT SELECT ON mysql.time_zone_name TO cacti@localhost; ALTER DATABASE cacti CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; FLUSH PRIVILEGES; QUIT Configure SELinux. sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/cacti(/.*)?" sudo restorecon -Rv /var/www/html/cacti You need to restart apache service after making above modifications, sudo systemctl restart httpd php-fpm Configure Cacti Edit the file /var/www/html/cacti/include/config.php and set database connection parameters. $ sudo vi /var/www/html/cacti/include/config.php $database_type = 'mysql'; $database_default = 'cacti'; $database_hostname = 'localhost'; $database_username = 'cacti'; $database_password = 'StrongDBPassword'; $database_port = '3306'; ............. Replace StrongDBPassword with your cacti user database password. When done. save file and exit. Create Cacti system log file. sudo touch /var/www/html/cacti/log/cacti.log Set directory permissions sudo chown -R apache:apache /var/www/html/cacti Setup Cacti cron job. sudo crontab -u apache -e Add below. */5 * * * * php /var/www/html/cacti/poller.php > /dev/null 2>&1 Step 6: Access Cacti installation wizard Access Cacti Installation Wizard interface on http://[ServerIP/Hostname]/cacti. The default Logins are: Username: admin Password: admin Change password on the next screen. The new password should: Contain at least 1 numerical character! Contain at least 1 special character! Accept GPL License Agreement and click “Begin“ All pre-installation checks should show green – passed. Select type of installation in the next window. Ensure that Directory Permission Checks are Okay.
Confirm that all binaries all located and click Next. Select default data source profile for polling sources. Select Device templates to be used after installation. Confirm database settings are okay. Confirm installation. Installation should start, wait for it to finish then access cacti administration web dashboard. Step 7: Monitor Linux Servers with Cacti Start and enable snmpd daemon to start at boot. sudo systemctl enable --now snmpd Confirm it is running. $ systemctl status snmpd ● snmpd.service - Simple Network Management Protocol (SNMP) Daemon. Loaded: loaded (/usr/lib/systemd/system/snmpd.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2019-03-17 12:24:50 EAT; 4s ago Main PID: 3129 (snmpd) Tasks: 1 (limit: 11510) Memory: 4.9M CGroup: /system.slice/snmpd.service └─3129 /usr/sbin/snmpd -LS0-6d -f Mar 17 12:24:49 rhel8.local systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon…. Mar 17 12:24:50 rhel8.local snmpd[3129]: NET-SNMP version 5.8 Mar 17 12:24:50 rhel8.local systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon.. Add the Linux server for monitoring.  Login to Cacti as admin user and go to: Console > Create > New Device Provide Server details and save the configuration.
0 notes
3zschool · 7 years ago
Link
Cacti是一个开源的监控工具,基于mysql、php、apache、rrdtools,笔者在日常工作中经常使用其来监控网络流量。 近期在日常工作中遇见一个问题,在监控100GE网络端口时,发现监控到��流量数据在大于30多G左右的时候会出现无法显示的现象,如下图所示: 通过对监控的数据源进行debug发现,在创建初始监控数据的时候,Cacti通过rrd命令创建了监控数据的原始rrd文件并定义了其支持的最大值。此最大值通过snmp采集的时候获取端口speed数据写入,应该是在获取100GE端口的带宽数据时出现了错误。
Data Source Debug
/usr/bin/rrdtool create \ /var/www/html/rra/202/4344.rrd \ --step 60 \ DS:traffic_in:COUNTER:120:0:4294967295 \ DS:traffic_out:COUNTER:120:0:4294967295 \
找到原因后,查阅rrd官方文档,发现可以通过rrdtoo tune的命令格式对已建立的rrd文件进行最大值修改
具体命令为:
rrdtool tune xxxx.rrd --maximum traffic_out:1000000000000
直接修改rrd文件的最大值为1000G。
由于监控的数据比较多,有近千个rrd文件,如果一个一个去修改得改到猴年马月去,于是写了个shell脚本来进行批量操作。
代码如下:
#!/bin/bash for line in ` ls -F |grep '/$'` do cd $line for file in `ls -l | grep rrd | awk '{print $9}'` do rrdtool tune $file --maximum traffic_out:1000000000000 rrdtool tune $file --maximum traffic_in:1000000000000 echo "$file ok" done cd .. done
脚本通过ls列出目录和目录中的rrd文件,然后通过两个for循环,进入cacti的rra数据库目录,并通过rrdtool tune命令对rrd文件进行最大值修改。
将脚本命名为changemax.sh放在cacti的rra文件目录下,位于/var/www/html/rra/,使用chmod +x changemax.sh赋予执行权限,然后运行./changmax.sh即可。
上千个rrd文件,1分钟内全部搞定,改完后效果:
0 notes
774 · 7 years ago
Quote
csvでの出力 (例)2013/1/1~2013/1/31の間のcpuの使用率 # cd /var/lib/munin/localhost # rrdtool fetch ./localhost-cpu-user-d.rrd MAX -s 20130101 -e 20130131 > ./localhost-cpu-user-d.csv excelで開くと、日時の部分がunixtimeのためわかりにくくなっています。 通常の日付形式にする場合は、以下のようにtext関数を使います。 =TEXT(A1/86400+("1970/1/2"*1-"1900/1/1"*1+"9:0"*1),"yyyy/mm/dd hh:mm:ss")
監視ツールmuninのデータをcsvに変換する方法 [ へっぽこSEのメモ帳 ]
0 notes
johanlouwers · 7 years ago
Text
Weekend Reading: All Things Bash
by Carlie Fairchild
Bash is a shell and command language. It is distributed widely as the default login shell for most Linux distributions. We've rounded up some of the most popular Bash-related articles for your weekend reading.
Create Dynamic Wallpaper with a Bash Script By Patrick Wheelan Harness the power of bash and learn how to scrape websites for exciting new images every morning.
Developing Console Applications with Bash By Andy Carlson Bring the power of the Linux command line into your application development process.
Parsing an RSS News Feed with a Bash Script By Jim Hall I can automate an hourly job to retrieve a copy of an RSS feed, parse it, and save the news items to a local file that the website can incorporate. That reduces complexity on the website, with only a little extra work by parsing the RSS news feed with a Bash script.
Hacking a Safe with Bash By Adam Kosmin Being a minimalist, I have little interest in dealing with GUI applications that slow down my work flow or application-specific solutions (such as browser password vaults) that are applicable only toward a subset of my sensitive data. Working with text files affords greater flexibility over how my data is structured and provides the ability to leverage standard tools I can expect to find most anywhere.
Graph Any Data with Cacti! By Shawn Powers Cacti is not a new program. It's been around for a long time, and in its own way, it's a complicated beast itself. I finally really took the time to figure it out, however, and I realized that it's not too difficult to use. The cool part is that Cacti makes RRDtool manipulation incredibly convenient. It did take me the better part of a day to understand Cacti fully, so hopefully this article will save you some time.
Reading Web Comics via Bash Script By Jim Hall I follow several Web comics. I used to open my Web browser and check out each comic's Web site. That method was fine when I read only a few Web comics, but it became a pain to stay current when I followed more than about ten comics. These days, I read around 20 Web comics. It takes a lot of time to open each Web site separately just to read a Web comic. I could bookmark the Web comics, but I figured there had to be a better way—a simpler way for me to read all of my Web comics at once.
Go to Full Article
https://ift.tt/2vZNmae via @johanlouwers . follow me also on twitter
0 notes
frentmeister · 7 years ago
Text
Monitorix Open Source Systemüberwachung
Monitorix ist ein Systemüberwachungs-Tool, das entwickelt wurde, um so viele Dienste und Systemressourcen wie möglich zu überwachen. Es besteht hauptsächlich aus zwei Programmen: einem Collector namens monitorix, einem Perl-Daemon, der wie jeder andere System-Service automatisch gestartet wird, und einem CGI-Skript namens monitorix.cgi. Seit der Version 3.0 enthält Monitorix einen eigenen integrierten HTTP-Server, so dass ihr keinen Webserver für die Verwendung installieren müsst.
Tumblr media
Wie man Monitorix installiert?
Installation auf einem Fedora Linux
Benutzer neuerer Fedora-Versionen können Monitorix direkt über die offiziellen Repositories installieren. Daher sollte ein einfacher Befehl wie der folgende genügen: # yum install monitorix https://www.youtube.com/watch?v=QN1QbkuzAQQ
Installation auf einem RedHat / CentOS Linux
Installiert zuerst das EPEL-Repository und dann Monitorix mit yum: # yum installiere epel-release # yum installiere monitorix Wenn yum bei der Installation eines der Pakete fehlschlägt (wahrscheinlich nur in EL4 oder EL5), könntet ihr versuchen, sie manuell aus diesem zusätzlichen Repository zu beziehen:      Repoforge Repository für Red Hat, CentOS und Fedora Obwohl diese Repositories von vielen in der Community als stabil und sicher angesehen werden, folgt bitte diesen Empfehlungen: Halten Sie Ihre Systeme von permanenten Installationen von Drittanbieter-Repositories fern. Bewahren Sie diese Repositorys immer als deaktiviert auf und aktivieren Sie sie nur bei Bedarf. Wenn die Installation erfolgreich war, schaut bitte in die Konfigurationsdatei /etc/monitorix/monitorix.conf, um die Optionen für euer System einzustellen und Graphen zu aktivieren oder zu deaktivieren. Startet Monitorix schließlich mit: # service monitorix start An diesem Punkt beginnt Monitorix mit der Erfassung der Systeminformationen basierend auf eurer Konfiguration. Nach einigen Minuten solltet ihr  die Ergebnisse in eurem  Browsers sehen können. Unter  http: // localhost: 8080 /monitorix /  könnt ihr Monitorix aufrufen. https://www.youtube.com/watch?v=xbJTOnTbfRw Monitorix Installation unter Debian Die Installation ist etwas aufwendiger als normal, da es noch kein Packet in der offiziellen Debian Repository gibt: apt-get update apt-get install rrdtool perl libwww-perl libmailtools-perl libmime-lite-perl librrds-perl libdbi-perl libxml-simple-perl libhttp-server-simple-perl libconfig-general-perl libio-socket-ssl-perl Nach diesem Schritt wird eventuell ein apt-get -f install benötigt. Danach laden wir noch das aktuelle “.deb” File von der Homepage: wget http://www.monitorix.org/monitorix_3.6.0-izzy1_all.deb dpkg -i monitorix_3.6.0-izzy1_all.deb und danach installieren wir es noch schnell mit: dpkg -i monitorix_3.6.0-izzy1_all.deb Die Installation ist nun abgeschlossen, jetzt müssen wir noch ein wenig die Konfiguration anpassen. Zuerst bearbeiten wir das File unter /etc/monitorix/monitorix.conf Hier deaktivieren wir den integirerten Webserver der mit Monitorix daher kommt. enabled = n “hostname” und “title” können je nach belieben angepasst werden. Das File speichern und Monitorix mit service monitorix restart neu starten. Jetzt noch einen Apache2 vhosts anlegen vim /etc/apache2/sites-available/monitorix   hier könnt ihr dieses Template verwenden und für euch anpassen: Alias /monitorix /var/lib/monitorix/www ScriptAlias /monitorix-cgi /var/lib/monitorix/www/cgi # Apache 2.4 Require all denied Require ip 127.0.0.1 # Apache 2.2 Order deny,allow Deny from all Allow from 127.0.0.1 Allow from all DirectoryIndex monitorix.cgi Options ExecCGI Read the full article
0 notes