Page 2 of 2

Re: PNP$NAGIOS

Posted: Mon Sep 23, 2013 10:22 am
by abrist
It all depends on what you have configured in your nagios.cfg, and what was already present. It looks like you are using perfdata files, which is not supported by npcdmod anymore. Could you please post a copy of your nagios.cfg? (in code wraps)

Re: PNP$NAGIOS

Posted: Mon Sep 23, 2013 10:40 am
by veenm
i will post the nagios.cfg file and mean time i would like to tel below are the modification i have done in nrpe.cfg file


# service performance data
#
service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file

#
# host performance data starting with Nagios 3.0
#
host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file

And below one i have added in command.cfg file

define command{
command_name process-service-perfdata-file
command_line /bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$
}

define command{
command_name process-host-perfdata-file
command_line /bin/mv /usr/local/pnp4nagios/var/host-perfdata /usr/local/pnp4nagios/var/spool/host-perfdata.$TIMET$
}

Re: PNP$NAGIOS

Posted: Mon Sep 23, 2013 11:00 am
by sreinhardt
Is this the same system with selinux enabled? Likely this will be your issue as well. Please complete the other thread, then continue with this if issues persist.

Re: PNP$NAGIOS

Posted: Mon Sep 23, 2013 8:39 pm
by veenm
i have disabled the selinux , but still i problem persists .

Re: PNP$NAGIOS

Posted: Mon Sep 23, 2013 8:43 pm
by veenm
attached is my nagios.cfg file

Re: PNP$NAGIOS

Posted: Tue Sep 24, 2013 10:55 am
by abrist
Could you PM it to me?

Re: PNP$NAGIOS

Posted: Tue Sep 24, 2013 8:00 pm
by veenm
after following http://docs.pnp4nagios.org/pnp-0.6/conf ... nd_npcdmod i was able to get the graph. Thank you for you help .

Re: PNP$NAGIOS

Posted: Wed Sep 25, 2013 9:44 am
by abrist
No problem. I am glad you could work it out.