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.
----------------------------------------------------------------------
using Node Resources on opCharts 4.5.0 ONLY, you may observe the following below error message when choosing a resource graph to view.
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 | ||
---|---|---|
| ||
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 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. 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. How to do affected resources displays the error at the top of this document. Applying the workaroundStep 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 make edits to go on 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 2 - Step:After you remove those codes on the lines, please restart these daemons services: omkd, nmis9d, and opchartsd. Once completed, save the file. Saving the file is different depending on the text editor you use. Step 2:After saving the modified file, the nmis9d, omkd and opcharts daemons will need to be restarted. Commands: systemctl restart nmis9d systemctl restart omkd systemctl restart opchartsd |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Page Properties | ||
---|---|---|
| ||
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. |