Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

When we selected any option on the Default Graphs drop-down in the Node Resources widget. It will throw an error page. 

----------------------------------------------------------------------

    Remember that errors only occur on opCharts version 4.5. 

Impacted Product & Version: opCharts 4.5.0

When using Node Resources on opCharts 4.5.0, you may observe the following below error message when choosing a resource graph to view.----------------------------------------------------------------------

Image Modified

Solution

Summary: The workaround will be going on the backend and removing a code sentence 'class=> "text-decoration-none”,' from lines 84,88, and 109 from node_resource_table.html.ep file.You will need to make the following modifications to a configuration file on the NMIS server as a current workaround. 

Panel
bgColor#fff

The following behaviour is observed.

When you click on one node on the opCharts it will open this page in figure 1. 

Figure 1 - Nodes view page

Image ModifiedWhen we selected any option on the Default Graphs drop-down in the Node Resources widget in figure 2. It will throw an error page in figure 3. 


You find that some resources appear to be displayed different to others. In this example, laLoad1 and laLoad5 do not display correctly.


Figure 2 - Node Resources widget showing the Default Graphs drown-down

Figure 3 - After you selected Clicking on one of the options on the Default Graphs drop-drown. It will throw this error message below. 

Image Removed

the affected resources displays the error at the top of this document.

Applying

How to do

the workaround

Step 1

- Step

:

Go On your NMIS server, navigate to the following directory by executing the below .command:

cd /usr/local/omk/templates/nmis/nodes/resources/

Then use the vim editor in Linux or another of your preference.using a text editor (vi, vim, nano etc) open the below configuration file:

vim  node_resource_table.html.ep

It is always recommended to create a backup of this file before you make the required edits.

According to figure Figure 4 below, you will need to go on make edits to lines 84, 88 , and 109 . Then, remove this by removing the portion of the code on the line:  code that is highlighted in red. You ONLY need to remove the class=>"text-decoration-none”, which is highlighted in red in each line that needs it. 

---------------------------------------------------------------------

    Remember:

     How to put line numbers on the vim editor? 

    type this

    :set number

   How to insert or change the file

   press letter i on your keyboard

   How to erase/delete 

  press the backspace or delete on your keyboard depending on the cursor. 

   

   How to save the changes

   type this

   :wq!

----------------------------------------------------------------------none", part of the code (note the comma after the quotation marks is included in this).


Figure 4 - Edit node_resource_table.html.ep file

Image Modified


Once completed, save the file. Saving the file is different depending on the text editor you use.

Step 2

- Step

:

 

After you remove those codes on the lines, please restart these daemons services: omkd, nmis9d, and opchartsd. saving the modified file, the nmis9d, omkd and opchartsd daemons will need to be restarted.

Commands: 

systemctl restart nmis9d

systemctl restart omkd

systemctl restart opchartsd

Image Removed

Content by Label
showLabelsfalse
max5
spacesopCharts
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("resources","node","opcharts") and type = "page" and space = "opCharts"
labelsopCharts Node Resources


Page properties
hiddentrue
Related issues

Once the daemons have restarted successfully, you should no longer observe the issue behaviour. If you have the opCharts GUI open whilst making this change, you may need to refresh the page or log out/back in.