Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have working nagios infrastructure with pnp4nagios. Last days I added new host nosql and alerts of mongodb which is installed there.

Host configuration:

define host{
        host_name               nosql
        use                     linux-server,host-pnp

Service configuration:

define service{
        hostgroup_name                  nosql-servers
        use                             generic-service,pnp-service
        service_description             MongoDB Connect
        check_command                   check_nrpe!check_mongo_connect

They seems to be configured in same way like the others one. However, when I am trying to access graph in pnp4nagios I got:

Please check the documentation for information about the following error.

XML file "/usr/local/pnp4nagios/var/perfdata/nosql/MongoDB_Connect.xml" not found. Read FAQ online

file [line]:
application/models/data.php [312]:

I am a bit help.

How I should activate new graphs?

share|improve this question
up vote 2 down vote accepted

The problem may lie in the output from your monitor check_mongo_connect. Unless it is set up to send additional data, PNP will not be able to pick it up. If you to see what you need to do, I'd look at the output for one of the plug-ins (via a shell command) that you are getting PNP data for.

See this for more information:

share|improve this answer
I added "-D" switch to and now it works. Thanks. – bluszcz Jul 18 '12 at 7:54
@bluszcz: Thanks man. It worked. – curiousguy Sep 16 '14 at 18:59

You need to write a template to tell pnp4nagios how to handle the output (normal or perfdata) from the "MongoDB Connect" service; It doesn't magically create graphs for new/unknown check types.

See the section on templates in the docs

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.