Announcement

Collapse
No announcement yet.

No Graphs No rrd No service-perfdata file

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

  • No Graphs No rrd No service-perfdata file

    I followed this tutorial http://wiki.oreon-project.org/index.php/Graphs, but I still have problems get graphs working.
    No rrd files were generated and ht e dir OreonDataStorage is empty too, the file /usr/local/nagios/var/service-perfdata inst present but every permission on files and directories are correct (I also tried 777 but nothing...)
    The strange thing is if I go in Oreon Views -> Simple Graphs Renderer there arent the host choice, please watch the screenshot and pelase help me!
    Attached Files

  • #2
    I find the method in the wiki a bit strange, you don't need a plugin for perfdata, only a command. (Even that command is not needed when you use service_perfdata_file and service_perfdata_file_template, see http://nagios.sourceforge.net/docs/2_0/perfdata.html).
    Nevertheless, it should work.
    What I have in my nagios files concerning performance-data is this:
    The command in misccommands.cfg:
    Code:
    define command{
       command_name  process-service-perfdata
       command_line  /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICESTATE$\t$SERVICEPERFDATA$\n" >> /usr/local/nagios/var/service-perfdata
    }
    These settings in nagios.cfg:
    Code:
    process_performance_data=1
    service_perfdata_command=process-service-perfdata
    And of course you need some services where the process_perf_data is enabled.

    Regards
    Menno van Bennekom

    Comment


    • #3
      The problem with the tutorial was the copy-paste of the plugin code.

      The line
      Code:
      PERFFILE="'''/usr/local/nagios/var/service-perfdata'''"
      in the process-service-perfdata script should be
      Code:
      PERFFILE="/usr/local/nagios/var/service-perfdata"
      The tutorial is ok now.

      Comment


      • #4
        Hello @all,

        this day i have installed a new oren server with nagios 1.9 oreon 1.4 (all Hotfixes inst.)on OpenSuse 10.2.

        i have create two test clients to look the ods graphs.

        inside the OreonDataStorage there are some rrd files.

        -rw-r--r-- 1 nagios www 3984400 Jul 6 09:47 1.rrd
        -rw-r--r-- 1 nagios www 3984400 Jul 6 09:47 2.rrd
        -rw-r--r-- 1 nagios www 3984400 Jul 6 09:47 3.rrd
        -rw-r--r-- 1 nagios www 3984400 Jul 6 09:47 4.rrd
        -rw-r--r-- 1 nagios www 3984400 Jul 6 09:49 5.rrd
        -rw-r--r-- 1 nagios www 3984400 Jul 6 09:49 6.rrd

        /usr/local/nagios/var/service-perfdata exists and contains information

        under Oreon' views > Graphs > Simple Graphs Renderer no graphs will be displayed

        the folder /usr/local/oreon/filesGeneration/graphs/simpleRenderer/rrdDB contains no datas.

        in the apache2 error.log are some errors like this

        Undefined variable: session in /usr/local/oreon/www/include/monitoring/engine/MakeXML4statusCounter.php on line 201, referer: http://x.x.x.x/oreon/oreon.php?host_...=&p=40211&min=

        please help


        thanks

        DaskTill
        Attached Files

        Comment

        Working...
        X