pnp4nagios configuration errors

Julius Kidubuka juki.emma at gmail.com
Tue Aug 24 09:32:14 CEST 2010


Hi list,

I'm trying to setup and configure pnp4nagios [v0.6.6] on a currently working
Nagios Core [v3.2.0] system running on openSUSE 11.1

I installed pnp4nagios from source and also installed rrdtool using an rpm.
All was going well until I tried to verify the pnp configuration. Below are
the
specific errors;


*the-host:/usr/local/pnp4nagios/libexec # ./verify_pnp_config.pl -m sync

Check Nagios/Icinga/PNP integration, v0.1.21

[I] OS: Welcome to openSUSE 11.1 - Kernel  ().
[I] Perl: 5.010000
[I] Package Manager: /bin/rpm
[I] Package: "php5-5.2.6-49.11"
[I] Package: "dejavu-2.26-1.41"
[I] install_opts: -o nagios -g nagios
[I] PNP-version: 0.6.6
[I] using Nagios basedir "/usr/local/nagios"
[I] using Nagios config "/usr/local/nagios/etc/nagios.cfg"
[I] using Nagios binary "/usr/local/nagios/bin/nagios"
[I] PNP mode: "sync"
[I] Nagios info: Nagios Core 3.2.0
[A] verifying Nagios config
[A] processing "/usr/local/nagios/etc/nagios.cfg"
[I] nagios_user=nagios
[I] nagios_group=nagios
[A] checking RRDtool (/usr/bin/rrdtool)
[I] RRDtool: RRDtool 1.2.26
[I] RRDs perl module not installed
[A] processing "/usr/local/nagios/etc/resource.cfg"
[I] using "/usr/local/nagios/var/objects.cache" entries
[E] value "/usr/bin/printf "%b"
"$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n"
>> /usr/local/nagios/var/service-perfdata.out" for
"service_perfdata_command" is invalid
[H] http://docs.pnp4nagios.org/pnp-0.6/config#sync_mode
[E] value "/usr/bin/printf "%b"
"$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n"
>> /usr/local/nagios/var/host-perfdata.out" for "host_perfdata_command" is
invalid
[H] http://docs.pnp4nagios.org/pnp-0.6/config#sync_mode
[A] processing "/usr/local/pnp4nagios/etc/process_perfdata.cfg-sample"
[I] (rra_cfg) file "/usr/local/pnp4nagios/etc/rra.cfg" doesn't exist (yet)
[I] (log_file) file "/usr/local/pnp4nagios/var/perfdata.log" doesn't exist
(yet)
[A] processing "/usr/local/pnp4nagios/etc/config.php"
[E] ($conf['template_dirs']) directory "/usr/local/check_mk/pnp-templates"
is missing
[A] checking of RRDpath "/usr/local/pnp4nagios/var/perfdata"
[E] 0 dir(s) but NO rrd files => NO graphs!

Errors found. Please check the settings and have a look at the
documentation.*


In my commands.cfg file, I have the following configuration as shown in the
excerpt below;

*# 'process-host-perfdata' command definition
define command {
       command_name    process-service-perfdata
       command_line    /usr/bin/perl /usr/local/pnp4nagios/libexec/
process_perfdata.pl
}

# 'process-service-perfdata' command definition
define command {
       command_name    process-host-perfdata
       command_line    /usr/bin/perl /usr/local/pnp4nagios/libexec/
process_perfdata.pl -d HOSTPERFDATA
}*


Would anyone know why I'm getting the errors highlighted above? Kindly point
me in the right direction.


Thanks,
Juki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100824/4f5fdf2e/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list