pnp4nagios Graph Configuration Verification failed

  • What are the configurations I need to share?

    I am running an Icingaweb2 with modules Director working fine

    I am just trying to install pnp4nagios

  • This error message normally tells you that PNP is not writing any performance data into rrdtool. The default .pnp-internal directory can be changed in the module's settings in recent versions.

  • My perfdata Directory is /usr/local/pnp4nagios/var/perfdata/


    In the modules as you said, I found the file which mention the .pnpinternal, which is


    /etc/icingaweb2/modules/pnp/application/controllers/IndexController.php


    class IndexController extends Controller

    {

    public function indexAction()

    {

    $this->getTabs()->activate('pnp');


    $defaultQuery = $this->Config()->get('pnp4nagios', 'default_query', 'host=.pnp-internal&srv=runtime');


    $this->view->title = 'PNP';

    $this->view->url = sprintf(

    '%s/graph?%s',

    $this->getBaseUrl(),

    $defaultQuery


    What change I should bring here?

  • Again...

    I am out of that error.

    Th right file to edit was :

    /etc/icingaweb2/modules/pnp/config.ini


    But still I not getting the curves drawn in the Graph-Background.

    Also I am getting an error while trying to restart the service "carbon-cache"


    Failed to restart carbon-cache.service: Unit carbon-cache.service is masked.



    Is this service required for the pnp4nagios.

  • Alright. So now could you tell me the file which you wanna check to figure out what could be the issue.

    As I said, still I am not getting the curves drawn in the Graph-Background.




    vim /etc/default/rrdcached


    # Full path to daemon

    DAEMON=/usr/bin/rrdcached


    # Optional override flush interval, in seconds.

    #WRITE_TIMEOUT=300


    # Optional override maximum write delay, in seconds.

    #WRITE_JITTER=0


    # Optional override number of write_threads

    #WRITE_THREADS=4


    # Where database files are placed. If left unset, the default /tmp will

    # be used. NB: The daemon will reject a directory that has symlinks as

    # components. NB: You may want to have -B in BASE_OPTS.

    BASE_PATH=/var/lib/rrdcached/db/


    # Where journal files are placed. If left unset, journaling will

    # be disabled.

    JOURNAL_PATH=/var/lib/rrdcached/journal/


    # FHS standard placement for process ID file.

    PIDFILE=/var/run/rrdcached.pid


    # FHS standard placement for local control socket.

    SOCKFILE=/var/run/rrdcached.sock


    # Optional override group that should own/access the local control

    # socket

    #SOCKGROUP=root


    # Optional override access mode of local control socket.

    #SOCKMODE=0660


    # Optional unprivileged group to run under when daemon. If unset

    # retains invocation group privileges.

    #DAEMON_GROUP=_rrdcached


    # Optional unprivileged user to run under when daemon. If unset

    # retains invocation user privileges.

    #DAEMON_USER=_rrdcached


    # Network socket address requests. Use in conjunction with SOCKFILE to

    # also listen on INET domain sockets. The option is a lower-case ell

    # ASCII 108 = 0x6c, and should be repeated for each address. The

    # parameter is an optional IP address, followed by an optional port with

    # a colon separating it from the address. The empty string is

    # interpreted as "open sockets on the default port on all available

    # interfaces", but generally does not pass through init script functions

    # so use -L with no parameters for that configuration.

    #NETWORK_OPTIONS="-L"


    # Any other options not specifically supported by the script (-P, -f,

    # -F, -B).

    BASE_OPTIONS="-B"


    OPTS="-w 1800 -z 1800 -j /var/cache/rrdcached -s nagios -m 0660 -l unix:/var/run/rrdcached.sock"

  • I would open the PNP4Nagios docs and understand the components involved.


    Then I would do it step by step. Icinga 2 writes performance data files to which path, does it work. Are these files processed and removed, does it happen. Is the NPCD running, what does it do. It is an application, it must have any sort of logs. I can enable the debug log probably to see more verbose logging. Maybe I'll find an error inside there. Are the configured paths correct, does it show me something via /pnp4nagios already. If I am sure that the PNP part of the graphing fully works, I'd look into the integration with Icinga Web 2.


    You'll see, there's much more involved here, and you truly need to understand how those components work together and troubleshoot them one by one. It doesn't help much to throw in some text and an unrelated configuration file from rrdcached. Do your homework, analyse as much as it is possible from the given docs, and collect those details into a summary here.

  • Thank you for the last post.

    After that I made a research on the data flow of the Total Scenario and now the picture is more clear.

    Could you please assist me on the reported issue mentioned below




    [INFO] Nagios config looks good so far

    [INFO] ========== Checking config values ============

    [CRIT] npcd daemon is not running

    [INFO] A running npcd daemon is needed to process data.

    root@dc1-monitoring:/home/serveradmin# A running npcd daemon is needed to process data.



    /usr/local/pnp4nagios/etc/ncpd.conf



    user = nagios

    group = nagios



    log_type = syslog


    log_file = /usr/local/pnp4nagios/var/npcd.log


    max_logfile_size = 10485760


    log_level = -1


    perfdata_spool_dir = /usr/local/pnp4nagios/var/spool


    perfdata_file_run_cmd = /usr/local/pnp4nagios/libexec/process_perfdata.pl


    perfdata_file_run_cmd_args = --bulk


    identify_npcd = 1


    npcd_max_threads = 5


    sleep_time = 15


    load_threshold = 0.0


    pid_file=/usr/local/pnp4nagios/var/run/npcd.pid


    perfdata_file = /usr/local/pnp4nagios/var/perfdata/


    perfdata_spool_filename = perfdata

  • As mentioned in the documentation you need to have PNP up and running

    Quote

    If you’re planning to use it, configure it to use the bulk mode with npcd and npcdmod in combination with Icinga 2’s PerfdataWriter. NPCD collects the performance data files which Icinga 2 generates.


    Please use "</>" in the top row of your postings to format code as such.

  • root@dc1-monitoring:/home/serveradmin# perl verify_pnp_config -m bulk+npcd -c /usr/local/icinga/etc/icinga.cfg -p /usr/local/pnp4nagios/etc/

    [INFO] ========== Starting Environment Checks ============

    [INFO] My version is: verify_pnp_config-0.6.26-R.40

    [INFO] Start Options: verify_pnp_config -m bulk+npcd -c /usr/local/icinga/etc/icinga.cfg -p /usr/local/pnp4nagios/etc/

    [INFO] Reading /usr/local/icinga/etc/icinga.cfg

    [OK ] Running product is 'icinga'

    [OK ] object_cache_file is defined

    [OK ] object_cache_file=/var/cache/icinga/objects.cache

    [INFO] Reading /var/cache/icinga/objects.cache

    [OK ] resource_file is defined

    [OK ] resource_file=/etc/icinga/resource.cfg

    [INFO] Reading /etc/icinga/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.25"

    [OK ] ./configure Options '--with-rrdtool=/usr/bin/rrdtool'

    [OK ] Effective User is 'nagios'

    [OK ] User nagios exists with ID '111'

    [OK ] Effective group is 'nagios'

    [OK ] Group nagios exists with ID '117'

    [INFO] ========== Checking Bulk Mode + NPCD Config ============

    [OK ] process_performance_data is 1 compared with '/1/'

    [OK ] service_perfdata_file is defined

    [OK ] service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata

    [OK ] service_perfdata_file_template is defined

    [OK ] service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$

    [OK ] PERFDATA template looks good

    [OK ] service_perfdata_file_mode is defined

    [OK ] service_perfdata_file_mode=a

    [OK ] service_perfdata_file_processing_interval is defined

    [OK ] service_perfdata_file_processing_interval=15

    [OK ] service_perfdata_file_processing_command is defined

    [OK ] service_perfdata_file_processing_command=process-service-perfdata-file

    [OK ] host_perfdata_file is defined

    [OK ] host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata

    [OK ] host_perfdata_file_template is defined

    [OK ] host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$

    [OK ] PERFDATA template looks good

    [OK ] host_perfdata_file_mode is defined

    [OK ] host_perfdata_file_mode=a

    [OK ] host_perfdata_file_processing_interval is defined

    [OK ] host_perfdata_file_processing_interval=15

    [OK ] host_perfdata_file_processing_command is defined

    [OK ] host_perfdata_file_processing_command=process-host-perfdata-file

    [INFO] Icinga config looks good so far

    [INFO] ========== Checking config values ============

    [OK ] npcd daemon is running

    [OK ] /usr/local/pnp4nagios/etc/npcd.cfg is used by npcd and readable

    [INFO] Reading /usr/local/pnp4nagios/etc/npcd.cfg

    [OK ] perfdata_spool_dir is defined

    [OK ] perfdata_spool_dir=/usr/local/pnp4nagios/var/spool

    [OK ] -1 files found in /usr/local/pnp4nagios/var/spool

    service_perfdata_file_processing_command at verify_pnp_config line 462.

    [OK ] Command process-service-perfdata-file is defined

    [OK ] '/bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$'

    [OK ] Command looks good

    host_perfdata_file_processing_command at verify_pnp_config line 462.

    [OK ] Command process-host-perfdata-file is defined

    [OK ] '/bin/mv /usr/local/pnp4nagios/var/host-perfdata /usr/local/pnp4nagios/var/spool/host-perfdata.$TIMET$'

    [OK ] Command looks good

    [OK ] Script /usr/local/pnp4nagios/libexec/process_perfdata.pl is executable

    [INFO] ========== Starting global checks ============

    [OK ] status_file is defined

    [OK ] status_file=/var/lib/icinga/status.dat

    [INFO] host_query =

    [INFO] service_query =

    [INFO] Reading /var/lib/icinga/status.dat

    [INFO] ==== Starting rrdtool checks ====

    [OK ] RRDTOOL is defined

    [OK ] RRDTOOL=/usr/bin/rrdtool

    [OK ] /usr/bin/rrdtool is executable

    [OK ] RRDtool 1.5.5 Copyright 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] 'process_perf_data 0' is set for 1 of your hosts/services

    [OK ] 'process_perf_data 1' is set for 8 of your hosts/services

    [WARN] Logging is enabled in process_perfdata.cfg. This will reduce the overall performance of PNP4Nagios

    [INFO] ==== System sizing ====

    [OK ] 8 hosts/service objects defined

    [INFO] ==== Check statistics ====

    [WARN] Warning: 2, Critical: 0

    [WARN] Checks finished...








    root@dc1-monitoring:/home/serveradmin# perl verify_pnp_config -m bulk+npcd -c /usr/local/nagios/etc/nagios.cfg -p /usr/local/pnp4nagios/etc/

    [INFO] ========== Starting Environment Checks ============

    [INFO] My version is: verify_pnp_config-0.6.26-R.40

    [INFO] Start Options: verify_pnp_config -m bulk+npcd -c /usr/local/nagios/etc/nagios.cfg -p /usr/local/pnp4nagios/etc/

    [INFO] Reading /usr/local/nagios/etc/nagios.cfg

    [OK ] Running product is 'nagios'

    [OK ] object_cache_file is defined

    [OK ] object_cache_file=/var/cache/icinga/objects.cache

    [INFO] Reading /var/cache/icinga/objects.cache

    [OK ] resource_file is defined

    [OK ] resource_file=/etc/icinga/resource.cfg

    [INFO] Reading /etc/icinga/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.25"

    [OK ] ./configure Options '--with-rrdtool=/usr/bin/rrdtool'

    [OK ] Effective User is 'nagios'

    [OK ] User nagios exists with ID '111'

    [OK ] Effective group is 'nagios'

    [OK ] Group nagios exists with ID '117'

    [INFO] ========== Checking Bulk Mode + NPCD Config ============

    [OK ] process_performance_data is 1 compared with '/1/'

    [OK ] service_perfdata_file is defined

    [OK ] service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata

    [OK ] service_perfdata_file_template is defined

    [OK ] service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$

    [OK ] PERFDATA template looks good

    [OK ] service_perfdata_file_mode is defined

    [OK ] service_perfdata_file_mode=a

    [OK ] service_perfdata_file_processing_interval is defined

    [OK ] service_perfdata_file_processing_interval=15

    [OK ] service_perfdata_file_processing_command is defined

    [OK ] service_perfdata_file_processing_command=process-service-perfdata-file

    [OK ] host_perfdata_file is defined

    [OK ] host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata

    [OK ] host_perfdata_file_template is defined

    [OK ] host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$

    [OK ] PERFDATA template looks good

    [OK ] host_perfdata_file_mode is defined

    [OK ] host_perfdata_file_mode=a

    [OK ] host_perfdata_file_processing_interval is defined

    [OK ] host_perfdata_file_processing_interval=15

    [OK ] host_perfdata_file_processing_command is defined

    [OK ] host_perfdata_file_processing_command=process-host-perfdata-file

    [INFO] Nagios config looks good so far

    [INFO] ========== Checking config values ============

    [CRIT] npcd daemon is not running

    [INFO] A running npcd daemon is needed to process data.





    I am getting the Graph-backgroud also, but not the curves.

  • See, I am not ignoring, I am trying to figure it out.

    Please come up with some suggestions, what could be making npcd not work.

  • root@dc1-monitoring:/home/serveradmin# perl verify_pnp_config -m bulk+npcd -c /usr/local/icinga/etc/icinga.cfg -p /usr/local/pnp4nagios/etc/

    [INFO] ========== Starting Environment Checks ============

    [INFO] My version is: verify_pnp_config-0.6.26-R.40

    [INFO] Start Options: verify_pnp_config -m bulk+npcd -c /usr/local/icinga/etc/icinga.cfg -p /usr/local/pnp4nagios/etc/

    [INFO] Reading /usr/local/icinga/etc/icinga.cfg

    [OK ] Running product is 'icinga'

    [OK ] object_cache_file is defined

    [OK ] object_cache_file=/var/cache/icinga/objects.cache

    [INFO] Reading /var/cache/icinga/objects.cache

    [OK ] resource_file is defined

    [OK ] resource_file=/etc/icinga/resource.cfg

    [INFO] Reading /etc/icinga/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.25"

    [OK ] ./configure Options '--with-rrdtool=/usr/bin/rrdtool'

    [OK ] Effective User is 'nagios'

    [OK ] User nagios exists with ID '111'

    [OK ] Effective group is 'nagios'

    [OK ] Group nagios exists with ID '117'

    [INFO] ========== Checking Bulk Mode + NPCD Config ============

    [OK ] process_performance_data is 1 compared with '/1/'

    [OK ] service_perfdata_file is defined

    [OK ] service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata

    [OK ] service_perfdata_file_template is defined

    [OK ] service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$

    [OK ] PERFDATA template looks good

    [OK ] service_perfdata_file_mode is defined

    [OK ] service_perfdata_file_mode=a

    [OK ] service_perfdata_file_processing_interval is defined

    [OK ] service_perfdata_file_processing_interval=15

    [OK ] service_perfdata_file_processing_command is defined

    [OK ] service_perfdata_file_processing_command=process-service-perfdata-file

    [OK ] host_perfdata_file is defined

    [OK ] host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata

    [OK ] host_perfdata_file_template is defined

    [OK ] host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$

    [OK ] PERFDATA template looks good

    [OK ] host_perfdata_file_mode is defined

    [OK ] host_perfdata_file_mode=a

    [OK ] host_perfdata_file_processing_interval is defined

    [OK ] host_perfdata_file_processing_interval=15

    [OK ] host_perfdata_file_processing_command is defined

    [OK ] host_perfdata_file_processing_command=process-host-perfdata-file

    [INFO] Icinga config looks good so far

    [INFO] ========== Checking config values ============

    [OK ] npcd daemon is running

    [OK ] /usr/local/pnp4nagios/etc/npcd.cfg is used by npcd and readable

    [INFO] Reading /usr/local/pnp4nagios/etc/npcd.cfg

    [OK ] perfdata_spool_dir is defined

    [OK ] perfdata_spool_dir=/usr/local/pnp4nagios/var/spool

    [OK ] -1 files found in /usr/local/pnp4nagios/var/spool

    service_perfdata_file_processing_command at verify_pnp_config line 462.

    [OK ] Command process-service-perfdata-file is defined

    [OK ] '/bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$'

    [OK ] Command looks good

    host_perfdata_file_processing_command at verify_pnp_config line 462.

    [OK ] Command process-host-perfdata-file is defined

    [OK ] '/bin/mv /usr/local/pnp4nagios/var/host-perfdata /usr/local/pnp4nagios/var/spool/host-perfdata.$TIMET$'

    [OK ] Command looks good

    [OK ] Script /usr/local/pnp4nagios/libexec/process_perfdata.pl is executable

    [INFO] ========== Starting global checks ============

    [OK ] status_file is defined

    [OK ] status_file=/var/lib/icinga/status.dat

    [INFO] host_query =

    [INFO] service_query =

    [INFO] Reading /var/lib/icinga/status.dat

    [INFO] ==== Starting rrdtool checks ====

    [OK ] RRDTOOL is defined

    [OK ] RRDTOOL=/usr/bin/rrdtool

    [OK ] /usr/bin/rrdtool is executable

    [OK ] RRDtool 1.5.5 Copyright 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] 'process_perf_data 0' is set for 1 of your hosts/services

    [OK ] 'process_perf_data 1' is set for 8 of your hosts/services

    [WARN] Logging is enabled in process_perfdata.cfg. This will reduce the overall performance of PNP4Nagios

    [INFO] ==== System sizing ====

    [OK ] 8 hosts/service objects defined

    [INFO] ==== Check statistics ====

    [WARN] Warning: 2, Critical: 0

    [WARN] Checks finished...





    root@dc1-monitoring:/home/serveradmin# perl verify_pnp_config -m bulk+npcd -c /usr/local/nagios/etc/nagios.cfg -p /usr/local/pnp4nagios/etc/ [INFO] ========== Starting Environment Checks ============

    [INFO] My version is: verify_pnp_config-0.6.26-R.40

    [INFO] Start Options: verify_pnp_config -m bulk+npcd -c /usr/local/nagios/etc/nagios.cfg -p /usr/local/pnp4nagios/etc/

    [INFO] Reading /usr/local/nagios/etc/nagios.cfg

    [OK ] Running product is 'nagios'

    [OK ] object_cache_file is defined

    [OK ] object_cache_file=/var/cache/icinga/objects.cache

    [INFO] Reading /var/cache/icinga/objects.cache

    [OK ] resource_file is defined

    [OK ] resource_file=/etc/icinga/resource.cfg

    [INFO] Reading /etc/icinga/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.25"

    [OK ] ./configure Options '--with-rrdtool=/usr/bin/rrdtool'

    [OK ] Effective User is 'nagios'

    [OK ] User nagios exists with ID '111'

    [OK ] Effective group is 'nagios'

    [OK ] Group nagios exists with ID '117'

    [INFO] ========== Checking Bulk Mode + NPCD Config ============

    [OK ] process_performance_data is 1 compared with '/1/'

    [OK ] service_perfdata_file is defined

    [OK ] service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata

    [OK ] service_perfdata_file_template is defined

    [OK ] service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$

    [OK ] PERFDATA template looks good

    [OK ] service_perfdata_file_mode is defined

    [OK ] service_perfdata_file_mode=a

    [OK ] service_perfdata_file_processing_interval is defined

    [OK ] service_perfdata_file_processing_interval=15

    [OK ] service_perfdata_file_processing_command is defined

    [OK ] service_perfdata_file_processing_command=process-service-perfdata-file

    [OK ] host_perfdata_file is defined

    [OK ] host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata

    [OK ] host_perfdata_file_template is defined

    [OK ] host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$

    [OK ] PERFDATA template looks good

    [OK ] host_perfdata_file_mode is defined

    [OK ] host_perfdata_file_mode=a

    [OK ] host_perfdata_file_processing_interval is defined

    [OK ] host_perfdata_file_processing_interval=15

    [OK ] host_perfdata_file_processing_command is defined

    [OK ] host_perfdata_file_processing_command=process-host-perfdata-file

    [INFO] Nagios config looks good so far

    [INFO] ========== Checking config values ============

    [OK ] npcd daemon is running

    [OK ] /usr/local/pnp4nagios/etc/npcd.cfg is used by npcd and readable

    [INFO] Reading /usr/local/pnp4nagios/etc/npcd.cfg

    [OK ] perfdata_spool_dir is defined

    [OK ] perfdata_spool_dir=/usr/local/pnp4nagios/var/spool

    [OK ] -1 files found in /usr/local/pnp4nagios/var/spool

    service_perfdata_file_processing_command at verify_pnp_config line 462.

    [OK ] Command process-service-perfdata-file is defined

    [OK ] '/bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$'

    [OK ] Command looks good

    host_perfdata_file_processing_command at verify_pnp_config line 462.

    [OK ] Command process-host-perfdata-file is defined

    [OK ] '/bin/mv /usr/local/pnp4nagios/var/host-perfdata /usr/local/pnp4nagios/var/spool/host-perfdata.$TIMET$'

    [OK ] Command looks good

    [OK ] Script /usr/local/pnp4nagios/libexec/process_perfdata.pl is executable

    [INFO] ========== Starting global checks ============

    [OK ] status_file is defined

    [OK ] status_file=/var/lib/icinga/status.dat

    [INFO] host_query =

    [INFO] service_query =

    [INFO] Reading /var/lib/icinga/status.dat

    [INFO] ==== Starting rrdtool checks ====

    [OK ] RRDTOOL is defined

    [OK ] RRDTOOL=/usr/bin/rrdtool

    [OK ] /usr/bin/rrdtool is executable

    [OK ] RRDtool 1.5.5 Copyright 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] 'process_perf_data 0' is set for 1 of your hosts/services

    [OK ] 'process_perf_data 1' is set for 8 of your hosts/services

    [WARN] Logging is enabled in process_perfdata.cfg. This will reduce the overall performance of PNP4Nagios

    [INFO] ==== System sizing ====

    [OK ] 8 hosts/service objects defined

    [INFO] ==== Check statistics ====

    [WARN] Warning: 2, Critical: 0

    [WARN] Checks finished...




    service apache2 restart

    service icinga2 restart

    service npcd restart

    service rrdcached restart


    All service are up and good



    Still the curves are not showing in the Graph

  • Unless you're willing to format such things as requested I'll ignore such postings...

  • While it is helpful to see some output, it also is mandatory to hear your thoughts on this. This forum isn't an enterprise support channel where others do the work for you.


    Still, you aren't following advice with formatting the output in a readable manner. This also is explained in the FAQ in the upper right menu. Please do so, and make up your mind what is going on. Describe what you have tried, what you are thinking, and how it possibly could work.


    Quote


    After that I made a research on the data flow of the Total Scenario and now the picture is more clear.

    Please describe the picture in your own words, and which part you've been troubleshooting and which one works. Where are you at currently.

  • I have tried to check the process_perfdata.

    Then the file permissions.


    And the file listed under:

    /usr/local/pnp4nagios/...

    /usr/local/nagios/...

    /usr/local/icinga/...


    I am lost.. Because the both the verification commands throws "All good"

    Is it okay, if I make a word file with the settings of all the respective files and attach here.