Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F29767788
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
CDanis
Jul 14 2019, 7:18 PM
2019-07-14 19:18:49 (UTC+0)
Size
602 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
# run from puppetdb1001
# get list of all nodes
curl http://localhost:8080/pdb/query/v4/nodes | jq -r '.[] | .certname' > all-nodes.txt
mkdir resources
# get some/all catalogs
head -n50 all-nodes.txt | xargs -P20 -I@ /bin/sh -c 'curl -s http://localhost:8080/pdb/query/v4/catalogs/@/resources > resources/@'
cat all-nodes.txt | xargs -P20 -I@ /bin/sh -c 'curl -s http://localhost:8080/pdb/query/v4/catalogs/@/resources > resources/@'
# jq search
jq '.[] | select(.type == "Nrpe::Monitor_service") | select(.parameters.critical != false and .parameters.critical != true) ' resources/*
# empty output!
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7734572
Default Alt Text
raw.txt (602 B)
Attached To
Mode
P8744 checking puppetdb compiled catalogs for nrpe::monitor_service with non-boolean values for $critical
Attached
Detach File
Event Timeline
Log In to Comment