LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-20-2013, 04:54 AM   #1
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Rep: Reputation: Disabled
have a graph on centreon


Hi,

I want to have graphs . I have two services for my router, ping and check-interface-table .

I can see the graph for ping on centreon, but not for check-interface-table . ( No buton for seing graph next to my check-interface-rable service)


I installed pnp4nagios but it doesn't work properly . when i try to vieuw a graph for a interface , I have this error :

Code:
Please check the documentation for information about the following error.
perfdata directory "/usr/local/pnp4nagios/var/perfdata/Switch1" for host "Switch1" does not exist. Read FAQ online
file [line]:
application/models/data.php [148]:
back
when I try verify the config , It say I didn't define the command , but I did
Code:
# perl verify_pnp_config --mode bulk --config=/etc/nagios/nagios.cfg --pnpcfg=/usr/local/pnp4nagios/etc
[INFO]  ========== Starting Environment Checks ============
[INFO]  My version is: verify_pnp_config-0.6.21-R.40
[INFO]  Start Options: verify_pnp_config --mode bulk --config=/etc/nagios/nagios.cfg --pnpcfg=/usr/local/pnp4nagios/etc
[INFO]  Reading /etc/nagios/nagios.cfg
[OK  ]  Running product is 'nagios'
[OK  ]  object_cache_file is defined
[OK  ]  object_cache_file=/etc/nagios/objects/objects.cache
[INFO]  Reading /etc/nagios/objects/objects.cache
[OK  ]  resource_file is defined
[OK  ]  resource_file=/etc/nagios/resource.cfg
[INFO]  Reading /etc/nagios/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.21"
[OK  ]  ./configure Options '--with-nagios-user=nagios'
[OK  ]  Effective User is 'nagios'
[OK  ]  User nagios exists with ID '104'
[OK  ]  Effective group is 'nagios'
[OK  ]  Group nagios exists with ID '179'
[INFO]  ========== Checking Bulk Mode 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 ============
service_perfdata_file_processing_command at verify_pnp_config line 462.

[CRIT]  Command process-service-perfdata-file is not defined
those are the commands on my /etc/nagios/checkcommands.cfg file :

Code:
define command{
        command_name                    process-host-perfdata-file
        command_line                    /usr/local/pnp4nagios/libexec/process_perfdata.pl --bulk=/$
}
define command{
        command_name                    process-service-perfdata-file
        command_line                    /usr/local/pnp4nagios/libexec/process_perfdata.pl --bulk=/$
}
on my /etc/nagios/serviceTemplates.cfg file :

Code:
define service{
        name                            srv-pnp
        service_description             srv-pnp
        register                                0
        action_url                      /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
}
and /etc/nagios/hostTemplates.cfg
:
Code:
define host{
        name                            host-pnp
        alias                           host-pnp
        register                                0
        action_url                      /pnp4nagios/graph?host=$HOSTNAME$&srv=_HOST_
}
 
Old 04-20-2013, 02:32 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,125

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by tissam89 View Post
Hi,
I want to have graphs . I have two services for my router, ping and check-interface-table. I can see the graph for ping on centreon, but not for check-interface-table . ( No buton for seing graph next to my check-interface-rable service) I installed pnp4nagios but it doesn't work properly . when i try to vieuw a graph for a interface, I have this error:
Code:
Please check the documentation for information about the following error.
perfdata directory "/usr/local/pnp4nagios/var/perfdata/Switch1" for host "Switch1" does not exist. Read FAQ online
file [line]:
application/models/data.php [148]:
back
Ok...so:
  • Did you read the FAQ online as it told you?
  • Did you verify the directory exists? It's telling you above it doesn't.
  • What are the permissions on that directory, if it does exist?
The FAQ addresses reasons this happens:
http://docs.pnp4nagios.org/faq/5?s[]=does%20not%20exist

From the FAQ:
Quote:
Originally Posted by PNP FAQ
If this directory does not exist there are several possible causes:
  • Passing an incorrect host name in the URL
  • The host has no valid performance data
  • None of the services has valid performance data
Have you checked all three of the reasons listed above???
 
Old 04-21-2013, 06:32 AM   #3
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Thank you for your answer !!

The problem is when i try to get the graph, it looks for the perfdata of the host here :
usr/local/pnp4nagios/var/perfdata/IP@

But the real path is :

usr/local/pnp4nagios/var/perfdata/Name

How can I resolve it ? which file should I edit.
 
Old 04-21-2013, 10:07 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,125

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by tissam89 View Post
Thank you for your answer !!
The problem is when i try to get the graph, it looks for the perfdata of the host here: usr/local/pnp4nagios/var/perfdata/IP@

But the real path is: usr/local/pnp4nagios/var/perfdata/Name

How can I resolve it ? which file should I edit.
You can resolve it by reading and following the configuration instructions for PNP.
http://docs.pnp4nagios.org/pnp-0.6/config

The instructions for PNP are very clear, and aren't like what you posted here. If you don't follow the instructions, things won't work. This is much the same as you've been told in many of your other threads.

Last edited by TB0ne; 04-21-2013 at 10:10 AM.
 
Old 04-21-2013, 12:54 PM   #5
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
You can resolve it by reading and following the configuration instructions for PNP.
http://docs.pnp4nagios.org/pnp-0.6/config

The instructions for PNP are very clear, and aren't like what you posted here. If you don't follow the instructions, things won't work. This is much the same as you've been told in many of your other threads.
Thank you so much for your replies .
I followed the instrcutions . The issue was on the space . I didn't have enought space on me /usr directory
 
Old 04-21-2013, 02:00 PM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,125

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by tissam89 View Post
Thank you so much for your replies .
I followed the instrcutions . The issue was on the space . I didn't have enought space on me /usr directory
I find that hard to believe, since no where did you mention space issues before. Also, you'd have had MANY other things failing if the /usr (and ostensibly the / partition) didn't have enough space on it, especially for such small files.
 
Old 04-21-2013, 02:07 PM   #7
tissam89
Member
 
Registered: Mar 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
I find that hard to believe, since no where did you mention space issues before. Also, you'd have had MANY other things failing if the /usr (and ostensibly the / partition) didn't have enough space on it, especially for such small files.
I am on a virtual machine , and i have only 4 go on my /usr repository . I work on 25 equipements, so when pnp4nagios start creating .xml and .rdd files for evry interface of every equipement , it had no enought space to create the informations needed for all interfaces .

I couldn't open the centreon page too when I had no free space.but when i got more space, everyThing worked

Hope you believe it .

Last edited by tissam89; 04-21-2013 at 02:09 PM.
 
Old 04-21-2013, 04:16 PM   #8
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,125

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by tissam89 View Post
I am on a virtual machine , and i have only 4 go on my /usr repository . I work on 25 equipements, so when pnp4nagios start creating .xml and .rdd files for evry interface of every equipement , it had no enought space to create the informations needed for all interfaces .

I couldn't open the centreon page too when I had no free space.but when i got more space, everyThing worked
Hope you believe it .
No, sorry. .rrd and .xml files are very small. 4 GB is MORE than enough for /usr, especially since you had no other system issues. Glad its working for you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem during the installation of centreon tissam89 Linux - Newbie 26 03-30-2013 03:02 PM
Fedora 11 centreon installation baliman Linux - Newbie 2 01-18-2010 07:37 AM
Centreon Install problem. rlocone Linux - Networking 4 05-15-2008 07:53 AM


All times are GMT -5. The time now is 02:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration