Skip to end of banner
Go to start of banner

opCharts version 4.5 Node Resources Issue

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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. 

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

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. 


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

Figure 1 - Nodes view page


When 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. 


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

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

How to do the workaround

1 - Step:

Go to the directory below.

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

Then use the vim editor in Linux or another of your preference.

vim  node_resource_table.html.ep

According to figure 4, you need to go on lines 84, 88, and 109. Then, remove this portion of the code on the line:  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!

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

Figure 4 - Edit node_resource_table.html.ep file


2 - Step: 

After you remove those codes on the lines, please restart these daemons services: omkd, nmis9d, and opchartsd. 


Commands: 

systemctl restart nmis9d

systemctl restart omkd

systemctl restart opchartsd







  • No labels