@ -44,7 +44,7 @@
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
"subnetId": "{{ subnet.id }}",
|
"subnetId": "{{ subnet.id }}",
|
||||||
"ip": "{{ scanned_host.address['@addr'] | default(scanned_host.address[0]['@addr']) }}",
|
"ip": "{{ scanned_host.address['@addr'] | default(scanned_host.address[0]['@addr']) }}",
|
||||||
"lastSeen": "{{ nmap_scan.start }}",
|
"lastSeen": "{{ (nmap_scan.start | split('.'))[0] }}",
|
||||||
|
|
||||||
{% if scanned_host.hostnames.hostname is defined %}
|
{% if scanned_host.hostnames.hostname is defined %}
|
||||||
|
|
||||||
@ -124,7 +124,8 @@
|
|||||||
"code": "{{ nofusscomputing_phpipam_scan_agent.scanagent_code }}",
|
"code": "{{ nofusscomputing_phpipam_scan_agent.scanagent_code }}",
|
||||||
"scan": {
|
"scan": {
|
||||||
"subnet": "{{ subnet.address }}",
|
"subnet": "{{ subnet.address }}",
|
||||||
"results": "{{ subnet_scan_results }}"
|
"results": "{{ subnet_scan_results }}",
|
||||||
|
"tz": "{{ '%z' | strftime }}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
validate_certs: true # Ensure always true
|
validate_certs: true # Ensure always true
|
||||||
|
Reference in New Issue
Block a user