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


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”