Problem with pnp4nagios

Kaplan, Andrew H. AHKAPLAN at PARTNERS.ORG
Thu Jul 9 18:53:20 CEST 2009


Hi there --

I went through the motions of installing pnp4nagios on our 3.1.2 system. I ran
the 
verify_pnp_config script and the output from it is shown below:

[ahk at romonitor pnp]$ sudo /home/ahk/Nagios/pnp\ 4\
nagios/pnp-0.4.14/contrib/verify_pnp_config -c
/usr/local/nagios/etc/pnp/config.php -m default


Check Nagios/PNP integration, v0.1.12

[I] OS: CentOS release 5.3 (Final)Kernel  on an
[I] Perl: 5.008008
[I] using Nagios basedir "/usr/local/nagios"
[I] using Nagios config "/usr/local/nagios/etc/pnp/config.php"
[I] using Nagios binary "/usr/local/nagios/bin/nagios"
[I] PNP mode: "default"
[I] Nagios info: Nagios 3.1.2
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[A] verifying Nagios config
[A] checking RRDtool (/usr/local/rrdtool-1.3.8/bin/rrdtool)
[I] RRDtool: RRDtool 1.3.8
[I] RRDs perl module not installed
[A] processing "/usr/local/nagios/etc/pnp/config.php"
Use of uninitialized value in string eq at /home/ahk/Nagios/pnp 4
nagios/pnp-0.4.14/contrib/verify_pnp_config line 393, <NFILE> line 1.
[W] "<?php" looks odd
Use of uninitialized value in string eq at /home/ahk/Nagios/pnp 4
nagios/pnp-0.4.14/contrib/verify_pnp_config line 393, <NFILE> line 150.
[W] "?>" looks odd
[E] directive "$conf['allowed_for_host_search'] " is duplicate
[E] directive "$views[4]["title"] " is duplicate
[E] directive "$conf['nagios_base'] " is duplicate
[E] directive "$views[0]["start"] " is duplicate
[E] directive "$conf['show_xml_icon'] " is duplicate
[E] directive "$conf['rrdbase'] " is duplicate
[E] directive "$conf['graph_height'] " is duplicate
[E] directive "$conf['overview-range'] " is duplicate
[E] directive "$views[2]["title"] " is duplicate
[E] directive "$conf['use_calendar'] " is duplicate
[E] directive "$conf['use_fpdf'] " is duplicate
[E] directive "$conf['background_pdf'] " is duplicate
[E] directive "$conf['graph_width'] " is duplicate
[E] directive "$views[0]["title"] " is duplicate
[E] directive "$conf['RRD_DAEMON_OPTS'] " is duplicate
[E] directive "$conf['enable_recursive_template_search'] " is duplicate
[E] directive "$views[3]["start"] " is duplicate
[E] directive "$conf['max_age'] " is duplicate
[E] directive "$conf['allowed_for_host_overview'] " is duplicate
[E] directive "$views[4]["start"] " is duplicate
[E] directive "$conf['allowed_for_service_links'] " is duplicate
[E] directive "$views[1]["title"] " is duplicate
[E] directive "$conf['rrdtool'] " is duplicate
[E] directive "$views[1]["start"] " is duplicate
[E] directive "$conf['date_fmt'] " is duplicate
[E] directive "$views[2]["start"] " is duplicate
[E] directive "$conf['page_dir'] " is duplicate
[E] directive "$conf['allowed_for_pages'] " is duplicate
[E] directive "$conf['temp'] " is duplicate
[E] directive "$conf['graph_opt'] " is duplicate
[E] directive "$conf['lang'] " is duplicate
[E] directive "$views[3]["title"] " is duplicate
[E] directive "$conf['refresh'] " is duplicate
Use of uninitialized value in concatenation (.) or string at
/home/ahk/Nagios/pnp 4 nagios/pnp-0.4.14/contrib/verify_pnp_config line 409.
[I] nagios_user=
Use of uninitialized value in getpwnam at /home/ahk/Nagios/pnp 4
nagios/pnp-0.4.14/contrib/verify_pnp_config line 418.
Use of uninitialized value in concatenation (.) or string at
/home/ahk/Nagios/pnp 4 nagios/pnp-0.4.14/contrib/verify_pnp_config line 421.
[I] nagios_group=
Use of uninitialized value in getgrnam at /home/ahk/Nagios/pnp 4
nagios/pnp-0.4.14/contrib/verify_pnp_config line 430.
[I] using "/usr/local/nagios/var/objects.cache" entries
[E] no performance data enabled (process_performance_data=1 in nagios.cfg)
[H]
http://nagios.sourceforge.net/docs/3_0/configmain.html#process_performance_data
[E] "service_perfdata_command" not found in nagios.cfg
[H]
http://nagios.sourceforge.net/docs/3_0/configmain.html#service_perfdata_command
[H] "host_perfdata_command" not found in nagios.cfg
[H] http://nagios.sourceforge.net/docs/3_0/configmain.html#host_perfdata_command
[A] processing "/usr/local/nagios/etc/pnp/process_perfdata.cfg"
[I] # $Id: process_perfdata.cfg-sample.in 520 2008-09-16 12:50:10Z pitchfork $:
%s
[A] processing "/usr/local/nagios/etc/pnp/config.php"
[I] ## Version: $Id: config.php.in 607 2009-03-12 18:39:20Z pitchfork $: %s
[A] checking of "/usr/local/nagios/share/perfdata"
[E] 1 dir(s) but NO rrd files => NO graphs!

The error conditions are in boldface, although it appears the last one is a
result of the previous two. 
I have enclosed a copy of the nagios.cfg file with this e-mail. 

What steps do I need to take to correct the above error conditions, and get pnp
to work with Nagios? 

Thanks. 

 <<nagios.cfg>> 









The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090709/b30d9eb1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios.cfg
Type: application/octet-stream
Size: 44102 bytes
Desc: nagios.cfg
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090709/b30d9eb1/attachment.obj>
-------------- next part --------------
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
-------------- 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