From: Amin A. <ami...@ac...> - 2011-05-19 20:00:00
|
Hello- I have a pnp4nagios 0.6.11 setup using rrdcached and mod_gearman. I have configured RRD_STORAGE_TYPE to SINGLE since the rrd files that I am copying from the nagios server I am migrating from were a single rrd per service. When I moved the rrds into place and restarted pnp_gearman_worker and the nagios service, I noticed that that I wasn't able to view the historical data. When I compared the source perfdata directories to the perfdata directories that were copied into place in my new pnp4nagios setup, I saw something curious. In the source directory I have a file called CPU_Stats.rrd. In the new directory I have that file plus the following: CPU_Stats_CpuIdle.rrd CPU_Stats_CpuIowait.rrd CPU_Stats_CpuNice.rrd CPU_Stats_CpuSteal.rrd CPU_Stats_CpuSystem.rrd CPU_Stats_CpuUser.rrd Why would I get multiple rrd files per service though I have configured process_perfdata.cfg to the contrary? I appreciate your time. -Amin --------------------------------------------- process_perfdata.cfg: # pnp4nagios–0.6.11 # Config File for process_perfdata.pl # # More info on RRDtool can be found at www.rrdtool.org # # process_perfdata.pl Timeout in seconds # TIMEOUT = 5 # # Use RRDs Perl module # USE_RRDs = 1 # # Path to XML/RRD files # RRDPATH = /usr/local/pnp4nagios/var/perfdata # # Location of RRDtool binary # RRDTOOL = /opt/rrdtool-1.4.5/bin/rrdtool # # Location of PNP config files # CFG_DIR = /usr/local/pnp4nagios/etc # # Use a single RRD database per service # one or more datasources per RRD database # RRD_STORAGE_TYPE = SINGLE # # Use multiple RRD databases per service # one RRD Database per Datasource. # RRD_STORAGE_TYPE = MULTIPLE # RRD_STORAGE_TYPE = SINGLE # # max. interval between samples/updates # RRD_HEARTBEAT = 8460 # # file with RRA options used to create new RRD files # RRA_CFG = /usr/local/pnp4nagios/etc/rra.cfg # # interval at which PDPs are generated # RRA_STEP = 60 # # name of the log file # LOG_FILE = /usr/local/pnp4nagios/var/perfdata.log # # Loglevel 0=silent 1=normal 2=debug # LOG_LEVEL = 0 # # XML encoding # The supported encodings are ISO-8859-1, UTF-8 and US-ASCII. # http://www.php.net/xml-parser-create # XML_ENC = UTF-8 # # XML update delay in seconds # 0 = Update XML Files everytime new data arrives # # Use this option to reduce disk I/O # XML_UPDATE_DELAY = 1800 # # Use only with rrdtool svn revision 1511+ # # RRD_DAEMON_OPTS = unix:/tmp/rrdcached.sock RRD_DAEMON_OPTS = unix:/var/run/rrdcached.sock # # Spool Directory used for internal statistic # STATS_DIR = /usr/local/pnp4nagios/var/stats ######################################################### # Gearman Worker Config # Only used while running as gearman worker # # How many Child processes # PREFORK = 20 # # Gearman Server to connect to # GEARMAN_HOST = localhost:4730 # # Restart child process after a given count of requests # REQUESTS_PER_CHILD = 10000 # enables or disables encryption. It is strongly # advised to not disable encryption. Anybody will be # able to inject packages to your worker. # Encryption is enabled by default and you have to # explicitly disable it. # When using encryption, you will either have to # specify a shared password with KEY = ... # Default is 1. # ENCRYPTION = 0 # A shared password which will be used for # encryption of data pakets. Should be at least 8 # bytes long. Maximum length is 32 characters. # KEY = should_be_changed ------------------------------------------------ /etc/default/rrdcached: RUN_RRDCACHED=1 RRDCACHED_USER="nagios" OPTS="-w 1800 -z 1800" PIDFILE="/var/run/rrdcached.pid" SOCKFILE="/var/run/rrdcached.sock" SOCKPERMS=0777 ---------------------------------------------- -- Amin Astaneh Systems Engineer, Acquia, Inc. Ofc: 978.289.8048 Skype: aastaneh Twitter: @aastaneh * * *"Free software that people value adds wealth to the world."* - John Carmack |