You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Time To Live : will stop Collectm after this value (86400sec = 1 day).
// This is useful if you think there is a memory leak and want to reboot periodically
// Collectm. Stop Collectm after 86400sec and Windows will restart the service.
// Of course we do our best to avoid memory leaks.
// Note : values < 60 will be ignored : no stop. This is the default.
// "CollectmTimeToLive": 86400,
// Every day, remove old logs (based on modified time).
// If unset, or if set to 0, no logs will be deleted.
"LogDeletionDays": 30,
"Plugin": {
"collectdCompat": {
"enable": 1,
"modules": {
// This is an example. You can select which of the modules of the collectdCompat plugin you want to be active.
// Available modules are: load, disk, cpu, memory, uptime, df, interface, process, swap.
// Set to 0 to deactivate, 1 or don't set at all to activate.
// If you want all to be active remove "modules" value completely.
"load": 1,
"disk": 1
}
},
"sysconfig": {
"enable": 1
},
"perfmon": {
"enable": 1,
"counters" : [
// This is an example :
{
"counter": "\LogicalDisk(C:)\% Free Space",
"enable": 1,
"plugin": "perfmon_LogicalDisk",
"plugin_instance": "C",
"type": "percent",
"type_instance": "Free Space"
}
]
},
"process": {
"enable": 1,
"process": {
// The key is not used in Collectm. It only helps for config overwrite in local.json
// The value is an array with "plugin", "instance" and "commandline".
// This is an example :
"My Collectm": {
"plugin": "process",
"instance": "collectm",
"commandline": ".*node.collectm\.js."
},
"My NSSM for Collectm": {
"plugin": "process",
"instance": "nssm",
"commandline": ".*collectm.nssm\.exe."
}
}
},
"df": {
"enable": 1,
"autodiscover": 1,
// This is an example.
// Plugin can either autodiscover all the disks mounted on the system
// or point to a particular disk like below.
// If set to autodiscover it will also find new disks that are mounted after starting the service.
// Autodiscover will override the disks setting if both are set.
// If disk is no longer available no data will be sent.
"disks": {
"total" : 1
}
},
"disk": {
"enable": 1,
"autodiscover": 1,
// This is an example.
// Plugin can either autodiscover all the disks mounted on the system
// or point to a particular disk like below.
// If set to autodiscover it will also find new disks that are mounted after starting the service.
// Autodiscover will override the disks setting if both are set.
// If disk is no longer available no data will be sent.
"disks": {
"total" : 1
}
},
"load": {
"enable": 1
}
}
}
OS in this specific case is Windows Server 2012 R2 with CZ locales.
Please, is there a way to get it working?
The text was updated successfully, but these errors were encountered:
Hello, I can't get CollectM 1.6.0 to work on either Server 2008 or 2012. Crashes like this:
2016-11-04T07:50:13.741Z - info: Collectm version 1.6.0
2016-11-04T07:50:13.741Z - info: Collectm is starting
2016-11-04T07:50:13.756Z - info: Using configuration files in C:\Program Files\CollectM\config
2016-11-04T07:50:13.756Z - info: Sending metrics to Collectd with hostname bns (case sensitive).
2016-11-04T07:50:13.756Z - info: Sending metrics to Collectd localhost:25826.
2016-11-04T07:50:13.772Z - info: Default interval is 60000 ms
2016-11-04T07:50:13.788Z - info: Plugin collectdCompat : reInit done
2016-11-04T07:50:13.788Z - info: Plugin sysconfig : reInit done
2016-11-04T07:50:13.788Z - info: Plugin perfmon : reInit done
2016-11-04T07:50:13.788Z - info: Plugin process : reInit done
2016-11-04T07:50:13.788Z - info: Plugin df : reInit done
2016-11-04T07:50:13.788Z - info: Plugin disk : reInit done
2016-11-04T07:50:13.788Z - info: Plugin load : reInit done
2016-11-04T07:50:13.788Z - info: Plugin collectdCompat : reloadConfig done
2016-11-04T07:50:13.788Z - info: Plugin sysconfig : reloadConfig done
2016-11-04T07:50:13.788Z - info: Plugin perfmon : reloadConfig done
2016-11-04T07:50:13.788Z - info: Plugin process : reloadConfig done
2016-11-04T07:50:13.788Z - info: Plugin df : reloadConfig done
2016-11-04T07:50:13.788Z - info: Plugin disk : reloadConfig done
2016-11-04T07:50:13.788Z - info: Plugin load : reloadConfig done
2016-11-04T07:50:13.803Z - info: Enabling CollectdCompat cpu module
2016-11-04T07:50:13.819Z - info: Enabling CollectdCompat memory module
2016-11-04T07:50:13.819Z - info: Enabling CollectdCompat interface module
2016-11-04T07:50:13.834Z - info: Enabling CollectdCompat uptime module
2016-11-04T07:50:13.834Z - info: Enabling CollectdCompat process module
2016-11-04T07:50:13.834Z - info: Enabling CollectdCompat module
2016-11-04T07:50:13.834Z - info: Plugin collectdCompat : monitoring enabled
2016-11-04T07:50:13.834Z - info: Plugin sysconfig : monitoring enabled
2016-11-04T07:50:13.850Z - info: Plugin perfmon : monitoring enabled
2016-11-04T07:50:13.850Z - info: Plugin process : monitoring enabled
2016-11-04T07:50:13.850Z - info: Df plugin monitoring: _Total
2016-11-04T07:50:13.850Z - info: Autodiscover is turned on for df plugin.
2016-11-04T07:50:13.850Z - info: Plugin df : monitoring enabled
2016-11-04T07:50:13.850Z - info: Disk plugin monitoring: _Total
2016-11-04T07:50:13.850Z - info: Autodiscover is turned on for disk plugin.
2016-11-04T07:50:13.850Z - info: Plugin disk : monitoring enabled
2016-11-04T07:50:13.850Z - info: Plugin load : monitoring enabled
2016-11-04T07:50:13.913Z - info: Enabled httpconfig server
2016-11-04T07:50:13.913Z - info: Log files will be deleted after 30 days
2016-11-04T07:50:14.163Z - error: uncaughtException: Cannot read property 'counters' of undefined
{ date: 'Fri Nov 04 2016 08:50:14 GMT+0100 (Střední Evropa (běžný čas))',
process:
{ pid: 1160,
uid: null,
gid: null,
cwd: 'C:\Program Files\CollectM\bin',
execPath: 'C:\Program Files\CollectM\bin\node.exe',
version: 'v0.12.7',
argv:
[ 'C:\Program Files\CollectM\bin\node.exe',
'C:\Program Files\CollectM\lib\collectm.js' ],
memoryUsage: { rss: 33513472, heapTotal: 29534208, heapUsed: 13555320 } },
os: { loadavg: [ 0, 0, 0 ], uptime: 7410604.3798497 },
trace:
[ { column: 32,
file: 'Files\CollectM\plugins\collectdCompat.js',
function: 'PerfmonStream. (C:\Program',
line: 98,
method: ' (C:\Program',
native: false },
{ column: 17,
file: 'events.js',
function: 'PerfmonStream.emit',
line: 107,
method: 'emit',
native: false },
{ column: 13,
file: 'Files\CollectM\node_modules\perfmon\perfmon.js',
function: 'C:\Program',
line: 167,
method: null,
native: false },
{ column: 3,
file: 'Files\CollectM\node_modules\perfmon\lib\TypePerf.js',
function: 'ChildProcess. (C:\Program',
line: 65,
method: ' (C:\Program',
native: false },
{ column: 17,
file: 'events.js',
function: 'ChildProcess.emit',
line: 110,
method: 'emit',
native: false },
{ column: 12,
file: 'child_process.js',
function: 'Process.ChildProcess._handle.onexit',
line: 1074,
method: 'ChildProcess._handle.onexit',
native: false } ],
stack:
[ 'TypeError: Cannot read property 'counters' of undefined',
' at PerfmonStream. (C:\Program Files\CollectM\plugins\collectdCompat.js:98:32)',
' at PerfmonStream.emit (events.js:107:17)',
' at C:\Program Files\CollectM\node_modules\perfmon\perfmon.js:167:13',
' at ChildProcess. (C:\Program Files\CollectM\node_modules\perfmon\lib\TypePerf.js:65:3)',
' at ChildProcess.emit (events.js:110:17)',
' at Process.ChildProcess._handle.onexit (child_process.js:1074:12)' ] }
===========================================
Test config that works on Server 2003 and Windows 7:
{
"Hostname":"bns", // should not be set in default.json
"HostnameCase": "lower", // "lower", "upper" or "default"
"Interval": 60,
// Cryptography/Security settings
"Crypto": {
"SecurityLevel": 0,
"Username": "alice",
"Password": "12345678"
},
// Time To Live : will stop Collectm after this value (86400sec = 1 day).
// This is useful if you think there is a memory leak and want to reboot periodically
// Collectm. Stop Collectm after 86400sec and Windows will restart the service.
// Of course we do our best to avoid memory leaks.
// Note : values < 60 will be ignored : no stop. This is the default.
// "CollectmTimeToLive": 86400,
// Every day, remove old logs (based on modified time).
// If unset, or if set to 0, no logs will be deleted.
"LogDeletionDays": 30,
"HttpConfig": {
"enable": 1,
"listenPort": 25826,
"login": "admin",
"password": "admin"
},
"Network": {
"servers": [
{
"hostname": "collector",
"port": 25826
}
]
},
"Plugin": {
"collectdCompat": {
"enable": 1,
"modules": {
// This is an example. You can select which of the modules of the collectdCompat plugin you want to be active.
// Available modules are: load, disk, cpu, memory, uptime, df, interface, process, swap.
// Set to 0 to deactivate, 1 or don't set at all to activate.
// If you want all to be active remove "modules" value completely.
"load": 1,
"disk": 1
}
},
"sysconfig": {
"enable": 1
},
"perfmon": {
"enable": 1,
"counters" : [
// This is an example :
{
"counter": "\LogicalDisk(C:)\% Free Space",
"enable": 1,
"plugin": "perfmon_LogicalDisk",
"plugin_instance": "C",
"type": "percent",
"type_instance": "Free Space"
}
]
},
"process": {
"enable": 1,
"process": {
// The key is not used in Collectm. It only helps for config overwrite in local.json
// The value is an array with "plugin", "instance" and "commandline".
// This is an example :
"My Collectm": {
"plugin": "process",
"instance": "collectm",
"commandline": ".*node.collectm\.js."
},
"My NSSM for Collectm": {
"plugin": "process",
"instance": "nssm",
"commandline": ".*collectm.nssm\.exe."
}
}
},
"df": {
"enable": 1,
"autodiscover": 1,
// This is an example.
// Plugin can either autodiscover all the disks mounted on the system
// or point to a particular disk like below.
// If set to autodiscover it will also find new disks that are mounted after starting the service.
// Autodiscover will override the disks setting if both are set.
// If disk is no longer available no data will be sent.
"disks": {
"total" : 1
}
},
"disk": {
"enable": 1,
"autodiscover": 1,
// This is an example.
// Plugin can either autodiscover all the disks mounted on the system
// or point to a particular disk like below.
// If set to autodiscover it will also find new disks that are mounted after starting the service.
// Autodiscover will override the disks setting if both are set.
// If disk is no longer available no data will be sent.
"disks": {
"total" : 1
}
},
"load": {
"enable": 1
}
}
}
OS in this specific case is Windows Server 2012 R2 with CZ locales.
Please, is there a way to get it working?
The text was updated successfully, but these errors were encountered: