Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
nortally
The script works well, the only issues are with libvirt permissions, not with the script. I noticed that it truncated the "shut down" status to just "shut", so I tweaked the awk command from
{print $2":"$3}
to
{print $2":"$3" "$4}
This prints an extra space for one word commands, but I couldn't see a concise way to insert an conditional.
{print $2":"$3}
to
{print $2":"$3" "$4}
This prints an extra space for one word commands, but I couldn't see a concise way to insert an conditional.