Socket
Socket
Sign inDemoInstall

spm-agent-os

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spm-agent-os - npm Package Compare versions

Comparing version 1.30.12 to 1.30.13

21

linuxAgent.js

@@ -124,3 +124,6 @@ /*

if (netStat.bytes && netStat.Interface) {
agent.addMetrics({ ts: time, name: 'osnet', filters: [netStat.Interface || 'unknown'],
agent.addMetrics({
ts: time,
name: 'osnet',
filters: [netStat.Interface || 'unknown'],
value: [calcDiff(netStat.Interface + 'tx', Number(netStat.bytes.Transmit)),

@@ -142,10 +145,12 @@ calcDiff(netStat.Interface + 'rx', Number(netStat.bytes.Receive))],

var dev = disk.filesystem
// if (/\/dev\/.+/i.test(disk.filesystem)) {
// dev = disk.filesystem.split('/')[2]
// }
agent.addMetrics({ ts: time, name: 'osdf', filters: [dev],
value: [disk.available * 1024, disk.used * 1024],
sct: 'OS'
})
if (/\/dev\/.+/i.test(disk.filesystem)) {
dev = disk.filesystem.split('/')[2]
}
agent.addMetrics({
ts: time,
name: 'osdf',
filters: [dev],
value: [disk.available * 1024, disk.used * 1024],
sct: 'OS'
})
})

@@ -152,0 +157,0 @@ }

{
"name": "spm-agent-os",
"version": "1.30.12",
"version": "1.30.13",
"description": "SPM Agent for monitoring operating system metrics",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc