Check Nessus Agent Status

/Library/NessusAgent/run/sbin/nessuscli agent status

https://docs.tenable.com/nessus/Content/NessusCLIAgent.htm

Jamf Extension Attribute: This reports the Agents Active status


#!/bin/bash
result=$( /Library/NessusAgent/run/sbin/nessuscli agent status | grep 'Active' )
echo "<result>$result</result>"
exit 0

Link
https://community.tenable.com/s/article/Using-Regex-for-searching-in-Tenable-sc-Formerly-SecurityCenter

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *