...
This article series will focus on taking a simple command line script and incorporating it into up.time. It will then demonstrate how to expand that script for use within a Custom with Retained Data service monitor that will enable you to not only register service outages in the event of a failure but also graph the historical performance trends. The final article in this series will guide you through the steps to further expand your custom service monitor so that it can be directly plugged in to the up.time interface for use by your end users.
...
# now use the info above to contact our agent, store the output in a file for parsing
Code Block | ||
---|---|---|
| ||
`echo -n rexec secretpassword /opt/uptime-agent/my-scripts/show_temp.sh my-arguments | /usr/local/uptime4/bin/netcat $AGENT $PORT > $TMPFILE` |
Note | ||
---|---|---|
| ||
The syntax to use agentcmd is different than netcat. When using agentcmd, the above netcat example would like this: |
...