Go to All Forums

Agent service for host is stopped

Every night, each of our Linux servers gets a notification with the message "Agent service for host is stopped since...". Then, about 10-15 seconds later, we get a notification that it is back up. Why is this happening and what can we do to stop it?

Like (2) Reply
Replies (3)

Re: Agent service for host is stopped

Hi Kim,

You are getting this message as the agent service installed in your server has been stopped. Please share the server agent logs with support@site24x7.com to analyze this issue further.  

Note: logs will be available under '/opt/site24x7/monagent/logs'

 

Regards,

Sriram

Like (0) Reply

Re: Re: Agent service for host is stopped

I just realized what is going on. I am forcing the monitor agent to restart with the Apache logs get rotated every night using this command:

/etc/init.d/site24x7monagent restart > /dev/null 2>/dev/null || true

Maybe this is unnecessary, but I am doing it because we have a resource check that looks at the error_log file and I thought it might be necessary to restart when the log file get changed.

Is this unnecessary? Is there a better way to get the agent to pick up the new log file? Suggestions?

Like (0) Reply

Re: Re: Re: Agent service for host is stopped

Hi Kim,

The agent service restart is not necessary for the resource check feature to pick up the new log file .

You can specify a regular expression in the file name field. For more info view the following document

https://www.site24x7.com/help/admin/server-monitor/server-resource-check-profile.html#regular-expressions

 

Regards,

Sriram

Like (0) Reply

Was this post helpful?