Announcement

Collapse
No announcement yet.

Nagios/Perfparse working but no graphs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Nagios/Perfparse working but no graphs

    Installed Nagios and perfparse.
    First configured nagios manually and got everything working properly, including the graph generation of perfparse.

    Now installed oreon 1.3.3 and got almost everything configured and running properly.
    First oddity is that when I generate and export the nagios configuration files it is not generating the perfparse.cfg file.
    I check in the oreon database and it has the proper entry in cfg_perfparse and it is activated. Perfparse is also enabled in nagios.cfg.

    So why is perfparse.cfg not generated?

    (then manually created and copied the file into place)

    I configured the host and the service to use check_fping and it populates the perfparse database and is uses the proper log files in /usr/local/nagios/var

    But there is are no files in /usr/local/oreon/rrd directory.

    When I click on Oreon' views I get the sceens to choose the source to graph but all the drop downs are empty.

    Also if I go to Monitoring/Service detail and I click on the little graph in the "Actions" section I get a message "Database unavailable"

    I re-checked the username/password/database and it works properly to connect to the database.

    The perfparse database is being populated:
    Code:
    mysql> select * from perfdata_service_raw;
    +----+--------------------+---------------------+---------------------+-------------------------------------------------------+---------------+
    | id | host_name          | service_description | ctime               | txt_data                                              | nagios_status |
    +----+--------------------+---------------------+---------------------+-------------------------------------------------------+---------------+
    |  1 | mango              | PING                | 2006-12-19 10:41:36 | FPING OK - 128.242.106.76 (loss=0%, rta=12.700000 ms) |             0 | 
    |  2 | mango              | PING                | 2006-12-19 10:51:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.280000 ms)  |             0 | 
    |  3 | mango              | PING                | 2006-12-19 11:01:36 | FPING OK - 128.242.106.76 (loss=0%, rta=9.620000 ms)  |             0 | 
    |  4 | mango              | PING                | 2006-12-19 11:11:36 | FPING OK - 128.242.106.76 (loss=0%, rta=23.400000 ms) |             0 | 
    |  5 | mango              | PING                | 2006-12-19 11:21:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.320000 ms)  |             0 | 
    |  6 | mango              | PING                | 2006-12-19 11:31:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.610000 ms)  |             0 | 
    |  7 | mango              | PING                | 2006-12-19 11:41:36 | FPING OK - 128.242.106.76 (loss=0%, rta=9.980000 ms)  |             0 | 
    |  8 | mango              | PING                | 2006-12-19 11:51:36 | FPING OK - 128.242.106.76 (loss=0%, rta=9.310000 ms)  |             0 | 
    |  9 | mango              | PING                | 2006-12-19 12:01:36 | FPING OK - 128.242.106.76 (loss=0%, rta=10.800000 ms) |             0 | 
    | 10 | mango              | PING                | 2006-12-19 12:11:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.220000 ms)  |             0 | 
    | 11 | mango              | PING                | 2006-12-19 12:21:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.510000 ms)  |             0 | 
    | 12 | mango              | PING                | 2006-12-19 12:31:36 | FPING OK - 128.242.106.76 (loss=0%, rta=9.650000 ms)  |             0 | 
    | 13 | mango              | PING                | 2006-12-19 12:41:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.610000 ms)  |             0 | 
    | 14 | mango              | PING                | 2006-12-19 12:51:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.260000 ms)  |             0 | 
    | 15 | mango              | PING                | 2006-12-19 13:01:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.300000 ms)  |             0 | 
    | 16 | mango              | PING                | 2006-12-19 13:11:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.240000 ms)  |             0 | 
    | 17 | mango              | PING                | 2006-12-19 13:21:36 | FPING OK - 128.242.106.76 (loss=0%, rta=9.670000 ms)  |             0 | 
    | 18 | mango              | PING                | 2006-12-19 13:31:36 | FPING OK - 128.242.106.76 (loss=0%, rta=13.800000 ms) |             0 | 
    | 19 | mango              | PING                | 2006-12-19 13:41:36 | FPING OK - 128.242.106.76 (loss=0%, rta=8.270000 ms)  |             0 |
    I go to the nagios page and I can see all the correct information, including perfparse graphs for the fping service.

    I have a feeling that oreon's inability to generate the perfparse.cfg file might be related to this message as it might never even look for the correct information.

    I also looked at all possible log files but so far I've not found anything in this direction.

    Any help/information would be greatly appreciated.

    Thank you

    BH[/code]
    Attached Files

  • #2
    bighusky, I hope this is all that your problem is

    Try going to Options-> General Options-> Nagios-> Turn Using Parfperse to ON and save

    This moved the perfparse.cfg file for me and fixed some of my problems however I fiddled around so much during the install I can't remember exactly what I did to get it to the point I'm at now. Right now the "Oreon Views" section is not giving me any errors but I'm also not getting any graphs either.

    I don't have any content in the dropdown boxes for hosts and such. But at least I don't get any DB Connect errors anymore! If you could give me some hints on exactly what you did to compile Nagios and get PerfParse working before you installed Oreon that would be an excellent help.

    Thank you!
    -P2

    Comment


    • #3
      Hi P2

      Here are the configure lines I used. This is running on Centos 4.4:

      nagios 2.6:
      ./configure --with-command-user=apache --with-command-group=apache --with-mail=/bin/mail --with-template-objects --with-template-extinfo --enable-event-broker --with-default-perfdata

      perfparse 0.105.6:

      ./configure --prefix=/usr/local/nagios --with-imagedir=/usr/local/nagios/share/images/ --with-cgidir=/usr/local/nagios/sbin --with-http_image_path=/nagios/images

      Then used the mysql_create.sql file in scripts directory to create the perfparse database.
      Configured nagios/perfparse to "Pipe to perfparse".
      Followed the instructions at perfparse for the various configurations and setup the services to use checks that are perfparse aware, such as fping.

      Permissions and ownership on the /usr/local/nagios/var/ files are very important.

      After that I successfully had perfparse data in nagios.

      Hope this helps you a little bit. Let me know if I can give you any more information.

      BH

      Comment


      • #4
        bighusky, thanks a lot for this description, I really appreciate it.

        I have one more question. For the pipe to perfparse commands did you follow the instructions in the Perfparse docs? I've tried the check in the perfparse docs and the checks in this doc http://www.oreon-project.org/install...perfparse.html

        I'm not sure the difference or which works better than the other. I know the link above is meant for gentoo but it helped me through a lot of other pieces of the install.

        Also, even though the perfparse.cfg file is generated and moved to the ~nagios/etc config folder it is not defined as a config file in the nagios.cfg. The perfparse docs say that the nagios_perfparse.cfg file should be included in the nagios.cfg config file includes.
        ...wait I just looked inside the sample nagios_perfparse.cfg and it seems all it contains is the process-service/host command definitions. Disregard this.

        Well, thank you for the information so far!

        -Prim0

        Comment

        Working...
        X