Hello,
Recently I added a script monitor on OpManager to show the Uptime in minutes on a device. But it does not show information and the graph. I need to enable another configuration to have this?
echo -n "uptime " && uptime | awk -F ', ' ' {print $1" "$2}' | awk ' {print $3" "$4" "$5" "$6}' | sed '1,$s/:/ /' | awk ' {if (($2 =="days" || $2 =="day") && ($4 =="user" || $4 =="users")) print $1*24*60; else if (($2 =="mins" || $2 =="min") && ($4 =="user" || $4 =="users")) print $1; else if (($2 !="mins" || $2 !="min") && ($4 =="user" || $4 =="users")) print ($1*24*60) + ($2*60); else if ($4=="mins" || $4=="min") print ($1*24*60) + ($2*60) + $3; else print ($1*24*60) + ($2*60) + ($3*60) + $4}'
the output from this is:
And I try with this output too:
But it does not show in a graph the registers.
Thanks & Regards!