Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
        address                 xxx.xxx.xx.xxx
        }

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
add comment

2 Answers

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: http://nagios.sourceforge.net/docs/3_0/perfdata.html

share|improve this answer
    
I added "-D" switch to check_mongodb.py and now it works. Thanks. –  bluszcz Jul 18 '12 at 7:54
add comment

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
add comment

Your Answer

 
discard

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.