6

My system log tells me that the Event Monitor is constantly getting restarted and I have no clue what the actual problem might be.

system.log:

Oct 19 21:03:44 funkymachinename emond[51201]: SetUpLogs: uid = 0 gid = 0
Oct 19 21:03:44 funkymachinename emond[51201]: SetUpLogs: opening /Library/Logs/EventMonitor/EventMonitor.error.log
Oct 19 21:03:44 funkymachinename com.apple.xpc.launchd[1] (com.apple.emond): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

/Library/Logs/EventMonitor/EventMonitor.error.log:

Event Monitor Started 2014-10-19 20:52:02 +0200
No rules found in /private/etc/emond.d/rules/, quitting....
Event Monitor Shutdown at 2014-10-19 20:52:02 +0200

Checking the mentioned folder:

~ $ ll /private/etc/emond.d/rules/
total 0
drwxr-xr-x  3 root  wheel  102 Aug 30 04:55 .
drwxr-xr-x  4 root  wheel  136 Aug 30 04:55 ..
-rw-r--r--  1 root  wheel  822 Aug 30 04:55 SampleRules.plist

I have compared that to an OSX installation that does not bail out constantly and it appears to be fine that way.

What might be the problem here?

Till
  • 161

2 Answers2

9

I saw this same behaviour after uninstalling Server.app. I believe I have fixed it by doing the following:

sudo launchctl unload /System/Library/LaunchDaemons/com.apple.emond.plist

# remove the Server.app paths from the additionalRulesPaths array
sudo vi /etc/emond.d/emond.plist

sudo rm /var/db/emondClients/com.apple.server

sudo launchctl load /System/Library/LaunchDaemons/com.apple.emond.plist
7

Open the /private/etc/emond.d/rules/Sample.plist

Change

    <key>name</key>
    <string>sample rule</string>
    <key>enabled</key>
    <false/>

To

    <key>name</key>
    <string>sample rule</string>
    <key>enabled</key>
    <true/>

The sample rule just logs the startup time for the Event Monitoring daemon, but giving it something to do stops the constant restarts of the daemon.