> How can I omit this script only when the monitoring service is "logging in?"
Assuming this login script is in `/etc/profile.d` you could do this:
if [[ $(whoami) != "monitor_user" ]]; then
fi
You will of course need to change `"monitor_user"` into the _proper_ username for the monitoring user/agent.