Created
February 7, 2018 15:04
-
-
Save c4m4/18871f76b52ea9065c6582cb132a7178 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://10.0.13.16:8080/pdb/query/v4/resources/Nagios_host/10.0.5.27 2.4.2 | |
[{"tags":["role","10.0.5.27","class","nagios_host","base","role::base","profiles","profiles::nagiosclient","nagiosclient","default","node"],"file":"/etc/puppetlabs/code/environments/production/site/profiles/manifests/nagiosclient.pp","type":"Nagios_host","title":"10.0.5.27","line":16,"resource":"46de1f382819d8f5d815c676f679b6a12e33a54b","environment":"production","certname":"i-013c7e0024e4a640b.10.0.5.27","parameters":{"use": "generic-host,host-pnp", "mode": "0644", "alias": ["ip-10-0-5-27.eu-central-1.compute.internal"], "notes": "base", "address": "10.0.5.27", "notes_url": "https://eu-central-1.console.aws.amazon.com/ec2/v2/home?region=eu-central-1#Instances:instanceId=i-013c7e0024e4a640b", "hostgroups": "base", "icon_image": "linux40.jpg", "check_command": "check-host-alive", "statusmap_image": "linux40.gd2", "process_perf_data": "1"},"exported":true},{"tags":["role","10.0.5.27","nagiosserver","role::monitoring","class","nagios_host","monitoring","profiles","profiles::nagiosserver","default","node"],"file":null,"type":"Nagios_host","title":"10.0.5.27","line":null,"resource":"87d67e998335e61922a6cdb4746750ac0d5ccbfe","environment":"production","certname":"i-0c6fa91c70aac2924.10.0.13.15","parameters":{"use": "generic-host,host-pnp", "mode": "0644", "alias": ["ip-10-0-5-27.eu-central-1.compute.internal"], "notes": "base", "notify": "Service[nagios]", "address": "10.0.5.27", "contacts": "hsadmins", "notes_url": "https://eu-central-1.console.aws.amazon.com/ec2/v2/home?region=eu-central-1#Instances:instanceId=i-013c7e0024e4a640b", "hostgroups": "base", "icon_image": "linux40.jpg", "check_command": "check-host-alive", "statusmap_image": "linux40.gd2", "process_perf_data": "1", "max_check_attempts": "6", "first_notification_delay": 120},"exported":false}]% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment