NCPA Example Search for Processes Check with Multiple Names
Posted: Wed Jul 22, 2020 1:53 pm
G 'Day Support,
So I am trying to utilize the ncpa processes api to monitor two named processes using the combiner argument to verify both processes exist at the same time without utilizing two independent calls.
The use of a logically "AND" here should be appropriate as it would add functionality where multiple processes establish a working set without the need for individual monitoring services. Otherwise the combiner=or as a only choice doesn't give you much in terms functionality because it doesn't return any of the combiner filters if not detected.
I would appreciate community comments regarding this revelation as it seems obvious that the functionality I describe seems reasonable.
Thanks for your attention,
Danny
@onegative
i.e.
WORKS: processes?name=oracle&name=TNSLSNR&combiner=or&match=search&check=true
RESULTS: {
"perfdata": "'process_count'=2;;;",
"returncode": 0,
"stdout": "OK: Process count for processes named oracle,tnslsnr was 2 | 'process_count'=2;;; 'cpu'=3.63%;;; 'memory'=9.75%;;; 'memory_vms'=1780064256B;;; 'memory_rss'=1673977856B;;;\nProcesses Matched\nPID: Name: Username: Exe: Memory: CPU\n-----------------------------------\n340: oracle.exe: NT AUTHORITY\\SYSTEM: 9.66 % (VMS 1767088128.00 B, RSS 1658781696.00 B): 3.63 %\n1960: TNSLSNR.EXE: NT AUTHORITY\\SYSTEM: 0.09 % (VMS 12976128.00 B, RSS 15196160.00 B): 0.00 %\n\nTotal Memory: 9.75 % (VMS 1780064256.00 B, RSS 1673977856.00 B)\nTotal CPU: 3.63 %\n"
}
DOES NOT WORK: processes?name=oracle&name=TNSLSNR&combiner=and&match=search&check=true
RESULTS: {
"perfdata": "'process_count'=0;;;",
"returncode": 0,
"stdout": "OK: Process count for processes named oracle,tnslsnr was 0 | 'process_count'=0;;;"
}
So I am trying to utilize the ncpa processes api to monitor two named processes using the combiner argument to verify both processes exist at the same time without utilizing two independent calls.
The use of a logically "AND" here should be appropriate as it would add functionality where multiple processes establish a working set without the need for individual monitoring services. Otherwise the combiner=or as a only choice doesn't give you much in terms functionality because it doesn't return any of the combiner filters if not detected.
I would appreciate community comments regarding this revelation as it seems obvious that the functionality I describe seems reasonable.
Thanks for your attention,
Danny
@onegative
i.e.
WORKS: processes?name=oracle&name=TNSLSNR&combiner=or&match=search&check=true
RESULTS: {
"perfdata": "'process_count'=2;;;",
"returncode": 0,
"stdout": "OK: Process count for processes named oracle,tnslsnr was 2 | 'process_count'=2;;; 'cpu'=3.63%;;; 'memory'=9.75%;;; 'memory_vms'=1780064256B;;; 'memory_rss'=1673977856B;;;\nProcesses Matched\nPID: Name: Username: Exe: Memory: CPU\n-----------------------------------\n340: oracle.exe: NT AUTHORITY\\SYSTEM: 9.66 % (VMS 1767088128.00 B, RSS 1658781696.00 B): 3.63 %\n1960: TNSLSNR.EXE: NT AUTHORITY\\SYSTEM: 0.09 % (VMS 12976128.00 B, RSS 15196160.00 B): 0.00 %\n\nTotal Memory: 9.75 % (VMS 1780064256.00 B, RSS 1673977856.00 B)\nTotal CPU: 3.63 %\n"
}
DOES NOT WORK: processes?name=oracle&name=TNSLSNR&combiner=and&match=search&check=true
RESULTS: {
"perfdata": "'process_count'=0;;;",
"returncode": 0,
"stdout": "OK: Process count for processes named oracle,tnslsnr was 0 | 'process_count'=0;;;"
}