Plugin de Centreon/Nagios para HP StoreOnce 4G

Hay disponible unos Plugins en Python 3 para los StoreOnce de cuarta generación , que funcionan estupendamente, pero decidí empezar a rediseñarlos en Bash, ya que los necesitaba tener en un Satélite Centreon bastante antiguo en el cual no podía instalar Python 3.

El plugin en Bash aún no cumple todas las funciones que tiene el plugin en Python 3, pero la idea es ir añadiendo cada vez más funcionalidades.

De momento con este plugin podrás:

  • Extraer el estado actual de los servicios: VTL, Object Store, Predupe, Catalyst RPC Server, SMM Thift RPC Service, NAS RPC Server, Replication, Buffer Manager, NAS, VTL RPC Server, Replication RPC Server, RepObj RPC Server, D2D Event Manager, NAS Share Manager, D2D Manager, D2D Reource Manager, ISCSI Daemon, Fiber Channel RPC Server, Store Manager Manager, Licensing RPC Server, RMC ERT iSCSI Daeon, NAS Buffer Manager y D2D Manager -> Opción: serviceshealth del plugin.
  • Extraer información generica de la salud del sistema: Sysheal Status, Appliance Status, Data Services Status, Licence Status y Remote Support Status -> Opción: syshealth del plugin.
  • Extraer el estado general de los componentes de hardware -> Opción: compstatus del plugin.

Los requisitos para usar el script son:

  • Bash v4
  • curl
  • jq

El uso del plugin es el siguiente:

./check_storeonce4g_plugin -h <ip> -u <user> -p <pass> -o [<option> = serviceshealth || syshealth || compstatus ]

El script lo podrás encontrar en mi GitHub: github.com/deividgdt/check_StoreOnce_4G_plugin

A Centreon/Nagios Plugin for HP StoreOnce 4G

There are some Python 3 plugins for the 4th generation of StoreOnce, and they works as expected, but I decided to recreate them in Bash since I was getting some issues installing Python 3 in an old machine. The Bash Plugin does not cover all the functions yet, but the idea is to continue improving it.

At the moment, with this plugin you will be able to:

  • Retrieve the current state of the services: VTL, Object Store, Predupe, Catalyst RPC Server, SMM Thift RPC Service, NAS RPC Server, Replication, Buffer Manager, NAS, VTL RPC Server, Replication RPC Server, RepObj RPC Server, D2D Event Manager, NAS Share Manager, D2D Manager, D2D Reource Manager, ISCSI Daemon, Fiber Channel RPC Server, Store Manager Manager, Licensing RPC Server, RMC ERT iSCSI Daeon, NAS Buffer Manager y D2D Manager -> Option: serviceshealth.
  • Retrieve generic system health information: Sysheal Status, Appliance Status, Data Services Status, Licence Status y Remote Support Status -> Option: syshealth
  • Retrieve the current status of hardware components: -> Option: compstatus

The requirements are the following:

  • Bash v4
  • curl
  • jq

The usage is the following:

./check_storeonce4g_plugin -h <ip> -u <user> -p <pass> -o [<option> = serviceshealth || syshealth || compstatus ]

You will find the plugin in my GitHub: github.com/deividgdt/check_StoreOnce_4G_plugin


Installing Centreon in Docker on a Raspberry Pi 3

This time I am going to install Centreon in a Docker container. Currently, I have Pi-hole working on my Raspberry and it’s working as DHCP server and DNS. Without Docker, the installation of Centreon it could be have been quite tricky.

In order to install Centreon in Docker I followed the next steps:

  1. Create a Docker file for the installation and configuration of the container.
  2. I did a fork of a script made by Kermith72 the next one: auto_install.
Sigue leyendo “Installing Centreon in Docker on a Raspberry Pi 3”

A Centreon/Nagios Plugin for the Pi-hole API

This morning i found out that Pi-hole has an small API and can be called from the endpoint: admin/api.php? so i decided to create an small plugin for Centreon/Nagios in order to extract (almost) all the information possible that can be graphed

  • Number of DNS queries in a day.
  • Number and percentage of ads blocked.
  • Number of clients using Pi-hole as their DNS server.
  • Number of queries classified by IPv4, IPv6, PTR, SRV, etc…

The API is quite limited so i could not do too much. The following are some graphs that I am getting now using the plugin.

Sigue leyendo “A Centreon/Nagios Plugin for the Pi-hole API”

Plugin de Centreon/Nagios para la API de Pi-hole

Este mañana he descubierto que Pihole tiene una pequeña API que se puede llamar desde el endpoint: admin/api.php? así que he decido crear un pequeño plugin que se pueda usar tanto en Centreon como en Nagios . Lo que conseguiremos con este plugin es mantener un histórico y graficar datos en nuestro Centreon como:

  • Numero consultas DNS al dia
  • Numero y porcentaje de anuncios bloqueados
  • Numero de clientes usando Pihole como DNS
  • Numero consultas clasificadas por IPv4, IPv6, PTR, SRV, etc…

La API es bastante limitada así que no he podido sacarle mucho mas. A continuación os dejo unos gráficos extraídos de mi Dashboard en el Centreon que tengo en mi Raspberry corriendo sobre un contenedor de Docker.

Sigue leyendo “Plugin de Centreon/Nagios para la API de Pi-hole”