Differences

This shows you the differences between two versions of the page.

fr:pnp-0.6:verify_pnp_config [2011/09/13 17:26]
Joerg Linge
fr:pnp-0.6:verify_pnp_config [2012/10/06 16:23] (current)
jacques.soubelet
Line 1: Line 1:
======verify_pnp_config====== ======verify_pnp_config======
-TODO+En cas de problèmes, il existe un script appelé ''verify_pnp_config.pl'' localisé sur  http://verify.pnp4nagios.org. Ce script vous permet de vérifier votre configuration complète aussi bien sur les données de performance des Hosts et des services. Il peut être utilisé avant le lancement de PNP ou pendant son utilisation. 
 + 
 +===== Download ====== 
 + 
 +<code> 
 +wget http://verify.pnp4nagios.org/verify_pnp_config 
 +</code> 
 + 
 +===== Test ====== 
 + 
 +Le script de vérification est accessible sur http://verify.pnp4nagios.org et a besoin de trois options pour être utilisé 
 + 
 +  * ''--mode'' One of the modes described on [[modes]] 
 +  * ''--config'' Path nagios.cfg or icinga.cfg 
 +  * ''--pnpcfg'' Path to PNP´s etc directory 
 + 
 +<code> 
 +lenny:~# perl verify_pnp_config --mode npcdmod --config=/usr/local/nagios/etc/nagios.cfg --pnpcfg=/usr/local/pnp4nagios/etc 
 +[INFO]  ========== Starting Environment Checks ============ 
 +[INFO]  My version is: verify_pnp_config-0.6.14-R.31 
 +[INFO]  Reading /usr/local/nagios/etc/nagios.cfg 
 +[OK  ]  Running product is 'nagios' 
 +[OK  ]  object_cache_file is defined 
 +[OK  ]  object_cache_file=/usr/local/nagios/var/objects.cache 
 +[INFO]  Reading /usr/local/nagios/var/objects.cache 
 +[OK  ]  resource_file is defined 
 +[OK  ]  resource_file=/usr/local/nagios/etc/resource.cfg 
 +[INFO]  Reading /usr/local/nagios/etc/resource.cfg 
 +[INFO]  Reading /usr/local/pnp4nagios/etc/process_perfdata.cfg 
 +[INFO]  Reading /usr/local/pnp4nagios/etc/pnp4nagios_release 
 +[OK  ]  Found PNP4Nagios version "0.6.14" 
 +[OK  ]  Effective User is 'nagios' 
 +[OK  ]  User nagios exists with ID '1000' 
 +[OK  ]  Effective group is 'nagios' 
 +[OK  ]  Group nagios exists with ID '1000' 
 +[INFO]  ========== Checking npcdmod Mode Config  ============ 
 +[OK  ]  process_performance_data is 1 compared with '/1/' 
 +[OK  ]  event_broker_options is defined 
 +[OK  ]  event_broker_options=-1 
 +[OK  ]  event_broker_option bits 2 and 3 enabled (12) 
 +[OK  ]  broker_module is defined 
 +[OK  ]  broker_module=/usr/local/pnp4nagios/lib/npcdmod.o config_file=/usr/local/pnp4nagios/etc/npcd.cfg 
 +[OK  ]  npcdmod.o config file is /usr/local/pnp4nagios/etc/npcd.cfg 
 +[OK  ]  /usr/local/pnp4nagios/etc/npcd.cfg used by npcdmod.o is readable 
 +[OK  ]  npcd daemon is running 
 +[OK  ]  /usr/local/pnp4nagios/etc/npcd.cfg is used by npcd and readable 
 +[OK  ]  npcd and npcdmod.o are using the same config file (/usr/local/pnp4nagios/etc/npcd.cfg) 
 +[INFO]  Nagios config looks good so far 
 +[INFO]  ========== Checking config values ============ 
 +[INFO]  Reading /usr/local/pnp4nagios/etc/npcd.cfg 
 +[OK  ]  Script /usr/local/pnp4nagios/libexec/process_perfdata.pl is executable 
 +[INFO]  ========== Starting global checks ============ 
 +[OK  ]  status_file is defined 
 +[OK  ]  status_file=/dev/shm/status.dat 
 +[INFO]  Reading /dev/shm/status.dat 
 +[INFO]  ==== Starting rrdtool checks ==== 
 +[OK  ]  RRDTOOL is defined 
 +[OK  ]  RRDTOOL=/usr/bin/rrdtool 
 +[OK  ]  /usr/bin/rrdtool is executable 
 +[OK  ]  RRDtool 1.3.1  Copyright 1997-2008 by Tobias Oetiker <tobi@oetiker.ch> 
 +[OK  ]  USE_RRDs is defined 
 +[OK  ]  USE_RRDs=1 
 +[OK  ]  Perl RRDs modules are loadable 
 +[INFO]  ==== Starting directory checks ==== 
 +[OK  ]  RRDPATH is defined 
 +[OK  ]  RRDPATH=/usr/local/pnp4nagios/var/perfdata 
 +[OK  ]  Perfdata directory '/usr/local/pnp4nagios/var/perfdata' exists 
 +[WARN]  62 hosts/services are not providing performance data 
 +[WARN]  'process_perf_data 1' is set for 43 hosts/services which are not providing performance data! 
 +[WARN]  'process_perf_data 0' is set for 27 of your hosts/services 
 +[OK  ]  'process_perf_data 1' is set for 243 of your hosts/services 
 +[INFO]  ==== System sizing ==== 
 +[OK  ]  269 hosts/service objects defined 
 +[INFO]  ==== Check statistics ==== 
 +[WARN]  Warning: 3, Critical: 0 
 +[WARN]  Checks finished... 
 +</code> 
fr/pnp-0.6/verify_pnp_config.1315927582.txt.gz · Last modified: 2011/09/13 17:26 by Joerg Linge
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0