Announcement

Collapse
No announcement yet.

Cisco Router CPU graph.. how?

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

  • Cisco Router CPU graph.. how?

    Hi
    I try to graph of CPU utilization of cisco touter. I have a plugin and create alarms about that.
    But really dont know how to create graph by using this plugin.
    Does anyone can do it before?

  • #2
    Here is command output:
    [email protected]:/usr/local/nagios/libexec# ../libexec/./ast_check_cisco_rt_cpu -H 10.80.1.2 -w 20 -c 21 -o blabla
    1minCPU: %5 , 5minCPU: %5
    Here is service-perfdata output:
    1378360227 AYS-Cesme-1 Routers-Cisco-CPU OK OK
    [SERVICEPERFDATA] 1378360231 AYS-Cesme-1 Routers-Cisco-CPU 0.830 0.361 1minCPU: %5 , 5minCPU: %4
    And here is centreon command :
    $USER1$/process-service-perfdata "$LASTSERVICECHECK$" "$HOSTNAME$" "$SERVICEDESC$" "$LASTSERVICESTATE$" "$SERVICESTATE$" "$SERVICEPERFDATA$"
    I think something wrong in order of variables. But I am confusing really.

    Comment


    • #3
      In the script add "^|5minCPU = <Varible>" in output command. This will go to the performance data column that is used to create graph.

      Comment


      • #4
        Script is:

        #print "1minCPU: %$onemin_util , 5minCPU: %$fivemin_util";
        print "^|5minCPU = %$fivemin_util";
        Output of service-perfdata becomes
        1378381228 AYS-Cesme-1 Routers-Cisco-CPU OK OK 5minCPU = %8
        [SERVICEPERFDATA] 1378381230 AYS-Cesme-1 Routers-Cisco-CPU 0.927 0.247 5minCPU = %8
        Command output is:
        [email protected]:/usr/local/nagios/libexec# ./ast_check_cisco_rt_cpu -H 10.80.1.2 -o blabla -w 80 -c 90
        ^|5minCPU = %5
        But there is no graph again..
        What i did wrong?

        Comment


        • #5
          print "1minCPU: %$onemin_util , 5minCPU: %$fivemin_util |1minCPU =%$onemin_util; 5minCPU =%$fivemin_util"
          try this this will populate graph for 1 minute average & 5 minute average both.

          Comment


          • #6
            print "1minCPU: %$onemin_util , 5minCPU: %$fivemin_util |1minCPU=$onemin_util; 5minCPU=$fivemin_util";
            modification: Also remove % sign from performance data parameter.

            Comment


            • #7
              Understand,
              But problem is cant create graph.
              I think I have to define metrics and how and where I can do it?
              U can see what i mean. There is no metric about CPU
              metrics.JPG

              Comment


              • #8
                After your modification on script, I cans ee the graph icon beside CPU. But when I click the icon I cant see Graphs. Shown below
                no graph.JPG
                Any Idea?

                Comment


                • #9
                  yes it worked. will take some time to create graph. you can define graph color in by adding curve in view->graph-> curve for the data source. However it will choose any color automatically if it is not defined.

                  Comment


                  • #10
                    I duplicate a graph template and Curves then change data source name. But still there is no Graph.
                    Centreon Graph part not easy..

                    Comment


                    • #11
                      Any error log about crete graph?
                      Where?

                      Comment


                      • #12
                        Anyone can help me pls? I really dont know where is the problem. I check csv file and it is correct. But there is no graph..

                        Comment


                        • #13
                          Graphs are generated from RRD files. These files are created by centstorage. You should look at $CENTREON_HOME/log/centstorage.log.
                          ---------------------
                          Centreon 2.1.9
                          Nagios 3.2.3
                          1700 hôtes - 30000 services
                          Architecture virtualisée en VMware (1 master, 1 SGBD et 6 pollers actifs)
                          ----------------------

                          Comment


                          • #14
                            There is only this in log file:
                            [email protected]:/usr/local/centreon/www/img# more /usr/local/centreon/log/centstorage.log2013-09-09 02:00:01 - 24986 Receiving order to stop...
                            2013-09-09 02:00:01 - Stopping centstorage engine...
                            2013-09-09 02:00:31 - Starting centstorage engine...

                            Comment


                            • #15
                              i get exactely the same result in the log file, and i have the problem of getting the graph of supervision,

                              nobody knows how do we configure to use the graph-monitoring???

                              Comment

                              Working...
                              X