searchsite: 'http://pg-docbot.de/search/?q='
translations:
file: 'docbot.translations'
+monitoring:
+ file: 'docbot.monitoring'
my $session = find_irc_session($irc);
set_session_activity($session);
+
+
+ # write current timestamp into monitoring file
+ my $monitoring_file = config_get_key2('monitoring', 'file');
+ if (defined($monitoring_file)) {
+ my $monitoring_fh = new FileHandle;
+ # question: is a file lock required?
+ if (!open($monitoring_fh, ">", $monitoring_file)) {
+ print_msg("cannot open monitoring file: $!", ERROR);
+ } else {
+ print $monitoring_fh time();
+ close($monitoring_fh);
+ }
+ }
}
- user management through irc commands (add/remove/list/search users)
- save last user/nick interaction time
- add ?grant and ?revoke to add/delete users
-- add Nagios check for the PostgreSQL infrastructure check
- ?status should know the status of each connection
- including the last time the connection has seen traffic
- history per channel
- verify channel list from time to time, autojoin missing channels OK
- nickserv handling (passwords) OK
- post important commands into commandchannel OK
+- add Nagios check for the PostgreSQL infrastructure check