If you do not need REST API access for monitored data, use a command to stop the service.
Use the following script and commands with the emmonitorrest service:
init script - /etc/init.d/emmonitorrest
Command Description Example start Starts the emmonitorrest service /etc/init.d/emmonitorrest start stop Stops the emmonitorrest service /etc/init.d/emmonitorrest stop status Provides the status of emmonitorrest service /etc/init.d/emmonitorrest status restart Stops the emmonitorrest service and then starts it /etc/init.d/emmonitorrest restart H2status Provides the H2 status /etc/init.d/emmonitorrest h2status H2purge Deletes the monitoring data for a user specified timestamp interval. Use with careful consideration since you may be deleting historical and current data. /etc/init.d/emmonitorrest h2purge
Are you sure you want to purge Data? [Y/n]y You are about to purge data.Please enter StartDate less than endDate Please enter startDate in (YYYY-mm-DD HH:MM:SS ) format : 2015-08-01 10:10:10 Please enter endDate in (YYYY-mm-DD HH:MM:SS ) format :2015-08-04 10:10:10