Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nodemonitor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
nodemonitor
Commits
dbfd2862
Commit
dbfd2862
authored
Aug 26, 2025
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update install
parent
184bd9bd
Pipeline
#890
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.go
server/main.go
+2
-2
No files found.
server/main.go
View file @
dbfd2862
...
@@ -117,7 +117,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) {
...
@@ -117,7 +117,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) {
Status
string
Status
string
StatusClass
string
StatusClass
string
MemoryInfo
string
MemoryInfo
string
AllDisksInfo
string
AllDisksInfo
template
.
HTML
LastReport
string
LastReport
string
}
}
...
@@ -152,7 +152,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) {
...
@@ -152,7 +152,7 @@ func (s *Server) handleNodes(w http.ResponseWriter, r *http.Request) {
Status
:
status
,
Status
:
status
,
StatusClass
:
statusClass
,
StatusClass
:
statusClass
,
MemoryInfo
:
fmt
.
Sprintf
(
"%.2f GB / %.2f GB"
,
float64
(
node
.
MemoryFree
)
/
(
1024
*
1024
*
1024
),
float64
(
node
.
MemoryTotal
)
/
(
1024
*
1024
*
1024
)),
MemoryInfo
:
fmt
.
Sprintf
(
"%.2f GB / %.2f GB"
,
float64
(
node
.
MemoryFree
)
/
(
1024
*
1024
*
1024
),
float64
(
node
.
MemoryTotal
)
/
(
1024
*
1024
*
1024
)),
AllDisksInfo
:
allDisksInfo
,
AllDisksInfo
:
template
.
HTML
(
allDisksInfo
)
,
LastReport
:
node
.
Timestamp
.
Format
(
"2006-01-02 15:04:05"
),
LastReport
:
node
.
Timestamp
.
Format
(
"2006-01-02 15:04:05"
),
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment