Because it is rather complex series of steps to create a rule which monitors some state, a separate page for rules monitor should allow one to do this. I am envisaging a page like this (with javascript)

(this may change depending on the result of #1387082: Don't make Rules a steadfast dependency)

Rules Monitor (tab name)
Monitored States (title)
-- description (from README.txt) --
State to monitor    Interval      Actions     Last checked  Next
(dropdown)          (dropdown)    Create      n/a           n/a

Once this is populated we might have

Monitored States (title)
-- description (from README.txt) --
State to monitor    Interval      Actions      Last checked  Next
View is not empty   Daily         Select which 18 hours ago  In 4 hours
                                  [view
                                  Edit rule
-----------------------------------------------------------------------
Problem with site   Daily         
(dropdown)          (dropdown)    Create      n/a           n/a

Comments

alberto56’s picture

Monitored States (title)
-- description (from README.txt) --
Active  State to monitor    Interval      Actions      Last checked  Next
Active  View is not empty   Daily         Select which 18 hours ago  In 4 hours
                                         [view
                                         Edit rule
                                         disable
-----------------------------------------------------------------------
Problem with site   Daily         
(dropdown)          (dropdown)    Create      n/a           n/a
alberto56’s picture

StatusFileSize
new46.87 KB

Here is what I'll try to implement (see image)

alberto56’s picture

There now is a git branch for this called 1390782

alberto56’s picture

Including the file rules_monitor.rules_defaults.inc in rules_monitor, whether or not the following lines exist in .info,

features[rules_config][] = rules_rules_monitor_site_problems
features[rules_config][] = rules_rules_monitor_unpublished_comments
features[rules_config][] = rules_rules_monitor_unpublished_nodes

causes this ugly error in the test

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=33&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[23000]: Integrity constraint violation: 19 rules_config.plugin may not be NULL: INSERT INTO {rules_config} (name, status, module) VALUES (?, ?, ?); Array ( [0] => rules_rules_monitor_unpublished_comments [1] => 2 [2] => rules_monitor ) in drupal_write_record() (line 7014 of /Applications/MAMP/htdocs/rules_monitor7/drupal-7.x-dev/includes/common.inc).Uncaught exception thrown in session handler.PDOException: SQLSTATE[23000]: Integrity constraint violation: 19 sessions.uid may not be NULL: INSERT INTO {sessions} (sid, ssid, uid, cache, hostname, session, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?); Array ( [0] => 2_lSg9au4YLULIyDUakG6Rab--FYnzUJpdvd1-iRQ1Q [1] => [2] => [3] => 0 [4] => 127.0.0.1 [5] => batches|a:32:{i:2;b:1;i:3;b:1;i:4;b:1;i:5;b:1;i:6;b:1;i:7;b:1;i:8;b:1;i:9;b:1;i:10;b:1;i:11;b:1;i:12;b:1;i:13;b:1;i:14;b:1;i:15;b:1;i:16;b:1;i:17;b:1;i:18;b:1;i:19;b:1;i:20;b:1;i:21;b:1;i:22;b:1;i:23;b:1;i:24;b:1;i:25;b:1;i:26;b:1;i:27;b:1;i:28;b:1;i:29;b:1;i:30;b:1;i:31;b:1;i:32;b:1;i:33;b:1;} [6] => 1336959225 ) in _drupal_session_write() (line 209 of /Applications/MAMP/htdocs/rules_monitor7/drupal-7.x-dev/includes/session.inc).
alberto56’s picture

I will not attempt to create default inactive rules within this issue, rather I have moved that task to #1577654: Insert some default, inactive, rules