Page History
...
/netcat $AGENT $PORT > $TMPFILE`
If you are using agentcmd instead of netcat, replace netcat with agentcmd in the command above. For example: `echo -n /opt/uptime-agent/my-scripts/show_temp.sh my-arguments | /usr/local/uptime/scripts/agentcmd -p $PORT
$AGENT rexec secretpassword > $TMPFILE`
For more information see Using the agentcmd utility.
by exiting with a 2 we are forcing a CRIT service outage exit 2
...
we just need to reformat the agent side script output slightly so that only numerical info is displayed # we do this by trimming off the first word returned on each line from the agent, leaving just the numbers # and printing that to screen, Uptime Infrastructure Monitor will handle the rest
awk '{print $2}' $TMPFILE exit 0
...