daviswr / zenpacks.daviswr.osx.server.caching Goto Github PK
View Code? Open in Web Editor NEWApple macOS Content Caching service monitoring for Zenoss
License: MIT License
Apple macOS Content Caching service monitoring for Zenoss
License: MIT License
The Caching service in High Sierra is no longer controlled by serveradmin, requiring modeler and data sources to be updated.
@JRansomed reported "registration error: not acticated" event summary set by event transform when caching service reports not being activated
Use ZenCommand and CommandPlugin again rather than executing system ssh
ZenPacks.daviswr.macOS.ContentCache to reflect the OS's new name and that the Content Caching service is now part of the base OS.
Use ${here/DataPath} when collecting PackageCountCustom datapoint rather than a static path.
Model peer caching servers as components from serveradmin fullstatus caching
output.
Example
caching:Peers:_array_index:0:address = "aaa.bbb.ccc.ddd"
caching:Peers:_array_index:0:port = 49094
caching:Peers:_array_index:0:details:capabilities:ur = yes
caching:Peers:_array_index:0:details:capabilities:sc = yes
caching:Peers:_array_index:0:details:capabilities:pc = no
caching:Peers:_array_index:0:details:capabilities:im = no
caching:Peers:_array_index:0:details:capabilities:ns = yes
caching:Peers:_array_index:0:details:capabilities:query-parameters = yes
caching:Peers:_array_index:0:details:cache-size = 900000000000
caching:Peers:_array_index:0:details:ac-power = yes
caching:Peers:_array_index:0:details:is-portable = no
caching:Peers:_array_index:0:details:local-network:_array_index:0:speed = 1000
caching:Peers:_array_index:0:details:local-network:_array_index:0:wired = yes
caching:Peers:_array_index:0:healthy = yes
caching:Peers:_array_index:0:version = "161"
caching:Peers:_array_index:0:friendly = yes
caching:Peers:_array_index:0:guid = "9B9CDED4-F70C-4910-B7D4-11D1530AD34D"
Example without peers
caching:Peers = _empty_array
Capability flags
/Library/Server/Caching/Logs/Debug.log:
2018-06-23 20:33:57.742 Request for registration from https://lcdn-registration.apple.com/lcdn/register failed: HTTP response 400, body "INVALID_DEVICE"
yields
caching:StartupStatus = "FAILED"
caching:RegistrationError = "INVALID_DEVICE"
caching:RegistrationStatus = -1
caching:CacheStatus = "OK"
caching:state = "STOPPED"
Server 5.2 on 10.11.6
Create OS Process classes for
$ grep "Since server start" /Library/Server/Caching/Logs/Service.log | tail -1
2018-07-04 08:54:06.022 Since server start: 5.73 GB returned to clients, 5.45 GB stored from Internet, 0 bytes from peers; 0 bytes imported.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.