PNP4nagios
Les templates spéciaux de PNP4NAGIOS
07/08/14 14:32 Classé dans: Techniques

Un exemple concret
Prenons le cas où nous désirons avoir tous les graphes de charge de tous nos serveurs supervisés. Il suffira de copier le fichier load.php ci-dessous dans le dossier /usr/local/pnp4nagios/share/templates.special
?php
#
#
#
$this->MACRO['TITLE'] = "Charge serveur";
$this->MACRO['COMMENT'] = "Pour tous les serveurs";
#
# Define the Service we want to graph
$services = $this->tplGetServices("","Load");
#
# The Datasource Name for Graph 1 ( index 0 )
$ds_name[0] = "LOADAVERAGE";
$opt[0] = "--title \"Charge Serveur\"";
$def[0] = "";
#
# Iterate through the list of hosts
foreach($services as $key=>$val){
#
# get the data for a given Host/Service
$data = $this->tplGetData($val['host'],$val['service']);
$hostname = rrd::cut($data['MACRO']['HOSTNAME']);
$def[0] .= rrd::def("var$key" ,$data['DS'][0]['RRDFILE'], $data['DS'][0]['DS'], "AVERAGE");
$def[0] .= rrd::line1("var$key", rrd::color($key), $hostname);
$def[0] .= rrd::gprint("var$key", array("MAX", "AVERAGE"));
}
?>
Lire plus…
RaspCentreon : Les graphes enfin !
01/03/14 11:17 Classé dans: RaspBerry


Superviser avec un RaspBerry
30/12/13 22:02 Classé dans: RaspBerry


Je vous souhaite une bonne année 2014.
NaemonBox 0.0.4, encore une amélioration
06/12/14 21:52 Classé dans: Installations


NaemonBox 0.0.4, une solution à découvrir
04/12/14 14:20 Classé dans: Installations

- Naemon avec l'interface Thruk,
- la cartographie avec Nagvis,
- la gestion du parc informatique avec gestion automatisée des tickets d'incidents avec la supervision,
- la gestion de l'agent fusioninventory,
- la gestion du serveur avec Webmin,
- la gestion des la base de données MySQL avec PhpMyadmin,
- la gestion d'un Wiki.
Ce projet est jeune mais néanmoins prometteur pour une petite structure informatique. Je vous laisse découvrir les différents éléments de ce NaemonBox avec cet article.
NaemonBox 0.0.5 is out !
14/12/14 21:48 Classé dans: Installations
