From 2203d43439149a7bbc8c8f16fd589081a3687646 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Fri, 21 Jun 2013 03:02:20 +0200 Subject: [PATCH] deleted docs/. makes no sense to have it in the repo. just create your own using the Makefile --- docs/api-objects.txt | 454 ------- docs/class-tree.html | 219 ---- docs/crarr.png | Bin 340 -> 0 bytes docs/epydoc.css | 322 ----- docs/epydoc.js | 293 ----- docs/frames.html | 17 - docs/help.html | 268 ---- docs/identifier-index.html | 1082 ----------------- docs/index.html | 17 - docs/linspector-module.html | 210 ---- docs/linspector-pysrc.html | 111 -- docs/linspector.lib-module.html | 207 ---- docs/linspector.lib-pysrc.html | 120 -- docs/linspector.lib.config-module.html | 162 --- docs/linspector.lib.config-pysrc.html | 113 -- docs/linspector.lib.config.config-module.html | 156 --- docs/linspector.lib.config.config-pysrc.html | 144 --- ...pector.lib.config.config.Config-class.html | 143 --- ...nspector.lib.config.hostgroups-module.html | 216 ---- ...inspector.lib.config.hostgroups-pysrc.html | 307 ----- ...lib.config.hostgroups.HostGroup-class.html | 375 ------ ...g.hostgroups.HostGroupException-class.html | 299 ----- ...stGroupMissingArgumentException-class.html | 259 ---- ...fig.hostgroups.HostGroupService-class.html | 159 --- docs/linspector.lib.config.hosts-module.html | 200 --- docs/linspector.lib.config.hosts-pysrc.html | 239 ---- ...inspector.lib.config.hosts.Host-class.html | 179 --- ...or.lib.config.hosts.HostService-class.html | 193 --- .../linspector.lib.config.layouts-module.html | 170 --- docs/linspector.lib.config.layouts-pysrc.html | 194 --- ...ector.lib.config.layouts.Layout-class.html | 225 ---- ....config.layouts.LayoutException-class.html | 293 ----- ...r.lib.config.layouts.LayoutList-class.html | 159 --- .../linspector.lib.config.members-module.html | 199 --- docs/linspector.lib.config.members-pysrc.html | 176 --- ...ector.lib.config.members.Member-class.html | 196 --- ...lib.config.members.MemberFilter-class.html | 159 --- docs/linspector.lib.config.parser-module.html | 268 ---- docs/linspector.lib.config.parser-pysrc.html | 412 ------- ....lib.config.parser.ConfigParser-class.html | 476 -------- ...g.parser.ConfigurationException-class.html | 295 ----- ....config.parser.FullConfigParser-class.html | 221 ---- .../linspector.lib.config.periods-module.html | 177 --- docs/linspector.lib.config.periods-pysrc.html | 293 ----- ...r.lib.config.periods.CronPeriod-class.html | 346 ------ ...r.lib.config.periods.DatePeriod-class.html | 330 ----- ...b.config.periods.IntervalPeriod-class.html | 340 ------ ...ector.lib.config.periods.Period-class.html | 278 ----- ...linspector.lib.config.services-module.html | 190 --- .../linspector.lib.config.services-pysrc.html | 135 -- ...tor.lib.config.services.Service-class.html | 177 --- docs/linspector.lib.config.tasks-module.html | 190 --- docs/linspector.lib.config.tasks-pysrc.html | 132 -- ...inspector.lib.config.tasks.Task-class.html | 177 --- docs/linspector.lib.core-module.html | 159 --- docs/linspector.lib.core-pysrc.html | 113 -- docs/linspector.lib.core.command-module.html | 156 --- docs/linspector.lib.core.command-pysrc.html | 163 --- ...pector.lib.core.command.Command-class.html | 239 ---- docs/linspector.lib.core.daemon-module.html | 157 --- docs/linspector.lib.core.daemon-pysrc.html | 247 ---- ...nspector.lib.core.daemon.Daemon-class.html | 297 ----- docs/linspector.lib.core.job-module.html | 193 --- docs/linspector.lib.core.job-pysrc.html | 168 --- ...linspector.lib.core.job.JobInfo-class.html | 229 ---- ...tor.lib.core.linspector_daemon-module.html | 156 --- ...ctor.lib.core.linspector_daemon-pysrc.html | 129 -- ...spector_daemon.LinspectorDaemon-class.html | 204 ---- docs/linspector.lib.core.logger-module.html | 158 --- docs/linspector.lib.core.logger-pysrc.html | 171 --- ...nspector.lib.core.logger.Logger-class.html | 295 ----- docs/linspector.lib.parsers-module.html | 154 --- docs/linspector.lib.parsers-pysrc.html | 113 -- .../linspector.lib.parsers.parser-module.html | 156 --- docs/linspector.lib.parsers.parser-pysrc.html | 126 -- ...ector.lib.parsers.parser.Parser-class.html | 192 --- docs/linspector.lib.processors-module.html | 156 --- docs/linspector.lib.processors-pysrc.html | 113 -- ...spector.lib.processors.mongodb-module.html | 192 --- ...nspector.lib.processors.mongodb-pysrc.html | 127 -- ....lib.processors.mongodb.Mongodb-class.html | 190 --- ...ector.lib.processors.processor-module.html | 158 --- ...pector.lib.processors.processor-pysrc.html | 121 -- ....processors.processor.Processor-class.html | 148 --- ...nspector.lib.processors.syslog-module.html | 192 --- ...inspector.lib.processors.syslog-pysrc.html | 127 -- ...or.lib.processors.syslog.Syslog-class.html | 190 --- docs/linspector.lib.services-module.html | 161 --- docs/linspector.lib.services-pysrc.html | 113 -- docs/linspector.lib.services.http-module.html | 197 --- docs/linspector.lib.services.http-pysrc.html | 206 ---- ...r.lib.services.http.HttpService-class.html | 338 ----- docs/linspector.lib.services.ping-module.html | 192 --- docs/linspector.lib.services.ping-pysrc.html | 167 --- ...r.lib.services.ping.PingService-class.html | 264 ---- ...inspector.lib.services.service-module.html | 198 --- ...linspector.lib.services.service-pysrc.html | 251 ---- ...or.lib.services.service.Service-class.html | 591 --------- .../linspector.lib.services.shell-module.html | 193 --- docs/linspector.lib.services.shell-pysrc.html | 177 --- ...lib.services.shell.ShellService-class.html | 338 ----- ...inspector.lib.services.snmpget-module.html | 192 --- ...linspector.lib.services.snmpget-pysrc.html | 207 ---- ...services.snmpget.SnmpgetService-class.html | 338 ----- docs/linspector.lib.services.ssh-module.html | 194 --- docs/linspector.lib.services.ssh-pysrc.html | 202 --- ...tor.lib.services.ssh.SshService-class.html | 338 ----- ...pector.lib.services.tcpconnect-module.html | 195 --- ...spector.lib.services.tcpconnect-pysrc.html | 199 --- ...es.tcpconnect.TcpconnectService-class.html | 340 ------ docs/linspector.lib.tasks-module.html | 157 --- docs/linspector.lib.tasks-pysrc.html | 113 -- docs/linspector.lib.tasks.email-module.html | 192 --- docs/linspector.lib.tasks.email-pysrc.html | 136 --- ...ector.lib.tasks.email.EmailTask-class.html | 224 ---- docs/linspector.lib.tasks.sms-module.html | 192 --- docs/linspector.lib.tasks.sms-pysrc.html | 136 --- ...inspector.lib.tasks.sms.SmsTask-class.html | 224 ---- docs/linspector.lib.tasks.task-module.html | 159 --- docs/linspector.lib.tasks.task-pysrc.html | 170 --- .../linspector.lib.tasks.task.Task-class.html | 296 ----- docs/linspector.lib.tasks.xmpp-module.html | 192 --- docs/linspector.lib.tasks.xmpp-pysrc.html | 136 --- ...spector.lib.tasks.xmpp.XmppTask-class.html | 224 ---- docs/module-tree.html | 167 --- docs/redirect.html | 38 - docs/toc-everything.html | 143 --- docs/toc-linspector-module.html | 31 - docs/toc-linspector.lib-module.html | 31 - docs/toc-linspector.lib.config-module.html | 31 - ...c-linspector.lib.config.config-module.html | 33 - ...nspector.lib.config.hostgroups-module.html | 38 - ...oc-linspector.lib.config.hosts-module.html | 36 - ...-linspector.lib.config.layouts-module.html | 35 - ...-linspector.lib.config.members-module.html | 36 - ...c-linspector.lib.config.parser-module.html | 46 - ...-linspector.lib.config.periods-module.html | 36 - ...linspector.lib.config.services-module.html | 35 - ...oc-linspector.lib.config.tasks-module.html | 35 - docs/toc-linspector.lib.core-module.html | 31 - ...oc-linspector.lib.core.command-module.html | 33 - ...toc-linspector.lib.core.daemon-module.html | 33 - docs/toc-linspector.lib.core.job-module.html | 35 - ...tor.lib.core.linspector_daemon-module.html | 33 - ...toc-linspector.lib.core.logger-module.html | 33 - docs/toc-linspector.lib.parsers-module.html | 31 - ...-linspector.lib.parsers.parser-module.html | 33 - .../toc-linspector.lib.processors-module.html | 31 - ...spector.lib.processors.mongodb-module.html | 35 - ...ector.lib.processors.processor-module.html | 33 - ...nspector.lib.processors.syslog-module.html | 35 - docs/toc-linspector.lib.services-module.html | 31 - ...c-linspector.lib.services.http-module.html | 35 - ...c-linspector.lib.services.ping-module.html | 35 - ...inspector.lib.services.service-module.html | 39 - ...-linspector.lib.services.shell-module.html | 35 - ...inspector.lib.services.snmpget-module.html | 35 - ...oc-linspector.lib.services.ssh-module.html | 35 - ...pector.lib.services.tcpconnect-module.html | 35 - docs/toc-linspector.lib.tasks-module.html | 31 - ...toc-linspector.lib.tasks.email-module.html | 35 - docs/toc-linspector.lib.tasks.sms-module.html | 35 - .../toc-linspector.lib.tasks.task-module.html | 33 - .../toc-linspector.lib.tasks.xmpp-module.html | 35 - docs/toc.html | 69 -- 165 files changed, 28188 deletions(-) delete mode 100644 docs/api-objects.txt delete mode 100644 docs/class-tree.html delete mode 100644 docs/crarr.png delete mode 100644 docs/epydoc.css delete mode 100644 docs/epydoc.js delete mode 100644 docs/frames.html delete mode 100644 docs/help.html delete mode 100644 docs/identifier-index.html delete mode 100644 docs/index.html delete mode 100644 docs/linspector-module.html delete mode 100644 docs/linspector-pysrc.html delete mode 100644 docs/linspector.lib-module.html delete mode 100644 docs/linspector.lib-pysrc.html delete mode 100644 docs/linspector.lib.config-module.html delete mode 100644 docs/linspector.lib.config-pysrc.html delete mode 100644 docs/linspector.lib.config.config-module.html delete mode 100644 docs/linspector.lib.config.config-pysrc.html delete mode 100644 docs/linspector.lib.config.config.Config-class.html delete mode 100644 docs/linspector.lib.config.hostgroups-module.html delete mode 100644 docs/linspector.lib.config.hostgroups-pysrc.html delete mode 100644 docs/linspector.lib.config.hostgroups.HostGroup-class.html delete mode 100644 docs/linspector.lib.config.hostgroups.HostGroupException-class.html delete mode 100644 docs/linspector.lib.config.hostgroups.HostGroupMissingArgumentException-class.html delete mode 100644 docs/linspector.lib.config.hostgroups.HostGroupService-class.html delete mode 100644 docs/linspector.lib.config.hosts-module.html delete mode 100644 docs/linspector.lib.config.hosts-pysrc.html delete mode 100644 docs/linspector.lib.config.hosts.Host-class.html delete mode 100644 docs/linspector.lib.config.hosts.HostService-class.html delete mode 100644 docs/linspector.lib.config.layouts-module.html delete mode 100644 docs/linspector.lib.config.layouts-pysrc.html delete mode 100644 docs/linspector.lib.config.layouts.Layout-class.html delete mode 100644 docs/linspector.lib.config.layouts.LayoutException-class.html delete mode 100644 docs/linspector.lib.config.layouts.LayoutList-class.html delete mode 100644 docs/linspector.lib.config.members-module.html delete mode 100644 docs/linspector.lib.config.members-pysrc.html delete mode 100644 docs/linspector.lib.config.members.Member-class.html delete mode 100644 docs/linspector.lib.config.members.MemberFilter-class.html delete mode 100644 docs/linspector.lib.config.parser-module.html delete mode 100644 docs/linspector.lib.config.parser-pysrc.html delete mode 100644 docs/linspector.lib.config.parser.ConfigParser-class.html delete mode 100644 docs/linspector.lib.config.parser.ConfigurationException-class.html delete mode 100644 docs/linspector.lib.config.parser.FullConfigParser-class.html delete mode 100644 docs/linspector.lib.config.periods-module.html delete mode 100644 docs/linspector.lib.config.periods-pysrc.html delete mode 100644 docs/linspector.lib.config.periods.CronPeriod-class.html delete mode 100644 docs/linspector.lib.config.periods.DatePeriod-class.html delete mode 100644 docs/linspector.lib.config.periods.IntervalPeriod-class.html delete mode 100644 docs/linspector.lib.config.periods.Period-class.html delete mode 100644 docs/linspector.lib.config.services-module.html delete mode 100644 docs/linspector.lib.config.services-pysrc.html delete mode 100644 docs/linspector.lib.config.services.Service-class.html delete mode 100644 docs/linspector.lib.config.tasks-module.html delete mode 100644 docs/linspector.lib.config.tasks-pysrc.html delete mode 100644 docs/linspector.lib.config.tasks.Task-class.html delete mode 100644 docs/linspector.lib.core-module.html delete mode 100644 docs/linspector.lib.core-pysrc.html delete mode 100644 docs/linspector.lib.core.command-module.html delete mode 100644 docs/linspector.lib.core.command-pysrc.html delete mode 100644 docs/linspector.lib.core.command.Command-class.html delete mode 100644 docs/linspector.lib.core.daemon-module.html delete mode 100644 docs/linspector.lib.core.daemon-pysrc.html delete mode 100644 docs/linspector.lib.core.daemon.Daemon-class.html delete mode 100644 docs/linspector.lib.core.job-module.html delete mode 100644 docs/linspector.lib.core.job-pysrc.html delete mode 100644 docs/linspector.lib.core.job.JobInfo-class.html delete mode 100644 docs/linspector.lib.core.linspector_daemon-module.html delete mode 100644 docs/linspector.lib.core.linspector_daemon-pysrc.html delete mode 100644 docs/linspector.lib.core.linspector_daemon.LinspectorDaemon-class.html delete mode 100644 docs/linspector.lib.core.logger-module.html delete mode 100644 docs/linspector.lib.core.logger-pysrc.html delete mode 100644 docs/linspector.lib.core.logger.Logger-class.html delete mode 100644 docs/linspector.lib.parsers-module.html delete mode 100644 docs/linspector.lib.parsers-pysrc.html delete mode 100644 docs/linspector.lib.parsers.parser-module.html delete mode 100644 docs/linspector.lib.parsers.parser-pysrc.html delete mode 100644 docs/linspector.lib.parsers.parser.Parser-class.html delete mode 100644 docs/linspector.lib.processors-module.html delete mode 100644 docs/linspector.lib.processors-pysrc.html delete mode 100644 docs/linspector.lib.processors.mongodb-module.html delete mode 100644 docs/linspector.lib.processors.mongodb-pysrc.html delete mode 100644 docs/linspector.lib.processors.mongodb.Mongodb-class.html delete mode 100644 docs/linspector.lib.processors.processor-module.html delete mode 100644 docs/linspector.lib.processors.processor-pysrc.html delete mode 100644 docs/linspector.lib.processors.processor.Processor-class.html delete mode 100644 docs/linspector.lib.processors.syslog-module.html delete mode 100644 docs/linspector.lib.processors.syslog-pysrc.html delete mode 100644 docs/linspector.lib.processors.syslog.Syslog-class.html delete mode 100644 docs/linspector.lib.services-module.html delete mode 100644 docs/linspector.lib.services-pysrc.html delete mode 100644 docs/linspector.lib.services.http-module.html delete mode 100644 docs/linspector.lib.services.http-pysrc.html delete mode 100644 docs/linspector.lib.services.http.HttpService-class.html delete mode 100644 docs/linspector.lib.services.ping-module.html delete mode 100644 docs/linspector.lib.services.ping-pysrc.html delete mode 100644 docs/linspector.lib.services.ping.PingService-class.html delete mode 100644 docs/linspector.lib.services.service-module.html delete mode 100644 docs/linspector.lib.services.service-pysrc.html delete mode 100644 docs/linspector.lib.services.service.Service-class.html delete mode 100644 docs/linspector.lib.services.shell-module.html delete mode 100644 docs/linspector.lib.services.shell-pysrc.html delete mode 100644 docs/linspector.lib.services.shell.ShellService-class.html delete mode 100644 docs/linspector.lib.services.snmpget-module.html delete mode 100644 docs/linspector.lib.services.snmpget-pysrc.html delete mode 100644 docs/linspector.lib.services.snmpget.SnmpgetService-class.html delete mode 100644 docs/linspector.lib.services.ssh-module.html delete mode 100644 docs/linspector.lib.services.ssh-pysrc.html delete mode 100644 docs/linspector.lib.services.ssh.SshService-class.html delete mode 100644 docs/linspector.lib.services.tcpconnect-module.html delete mode 100644 docs/linspector.lib.services.tcpconnect-pysrc.html delete mode 100644 docs/linspector.lib.services.tcpconnect.TcpconnectService-class.html delete mode 100644 docs/linspector.lib.tasks-module.html delete mode 100644 docs/linspector.lib.tasks-pysrc.html delete mode 100644 docs/linspector.lib.tasks.email-module.html delete mode 100644 docs/linspector.lib.tasks.email-pysrc.html delete mode 100644 docs/linspector.lib.tasks.email.EmailTask-class.html delete mode 100644 docs/linspector.lib.tasks.sms-module.html delete mode 100644 docs/linspector.lib.tasks.sms-pysrc.html delete mode 100644 docs/linspector.lib.tasks.sms.SmsTask-class.html delete mode 100644 docs/linspector.lib.tasks.task-module.html delete mode 100644 docs/linspector.lib.tasks.task-pysrc.html delete mode 100644 docs/linspector.lib.tasks.task.Task-class.html delete mode 100644 docs/linspector.lib.tasks.xmpp-module.html delete mode 100644 docs/linspector.lib.tasks.xmpp-pysrc.html delete mode 100644 docs/linspector.lib.tasks.xmpp.XmppTask-class.html delete mode 100644 docs/module-tree.html delete mode 100644 docs/redirect.html delete mode 100644 docs/toc-everything.html delete mode 100644 docs/toc-linspector-module.html delete mode 100644 docs/toc-linspector.lib-module.html delete mode 100644 docs/toc-linspector.lib.config-module.html delete mode 100644 docs/toc-linspector.lib.config.config-module.html delete mode 100644 docs/toc-linspector.lib.config.hostgroups-module.html delete mode 100644 docs/toc-linspector.lib.config.hosts-module.html delete mode 100644 docs/toc-linspector.lib.config.layouts-module.html delete mode 100644 docs/toc-linspector.lib.config.members-module.html delete mode 100644 docs/toc-linspector.lib.config.parser-module.html delete mode 100644 docs/toc-linspector.lib.config.periods-module.html delete mode 100644 docs/toc-linspector.lib.config.services-module.html delete mode 100644 docs/toc-linspector.lib.config.tasks-module.html delete mode 100644 docs/toc-linspector.lib.core-module.html delete mode 100644 docs/toc-linspector.lib.core.command-module.html delete mode 100644 docs/toc-linspector.lib.core.daemon-module.html delete mode 100644 docs/toc-linspector.lib.core.job-module.html delete mode 100644 docs/toc-linspector.lib.core.linspector_daemon-module.html delete mode 100644 docs/toc-linspector.lib.core.logger-module.html delete mode 100644 docs/toc-linspector.lib.parsers-module.html delete mode 100644 docs/toc-linspector.lib.parsers.parser-module.html delete mode 100644 docs/toc-linspector.lib.processors-module.html delete mode 100644 docs/toc-linspector.lib.processors.mongodb-module.html delete mode 100644 docs/toc-linspector.lib.processors.processor-module.html delete mode 100644 docs/toc-linspector.lib.processors.syslog-module.html delete mode 100644 docs/toc-linspector.lib.services-module.html delete mode 100644 docs/toc-linspector.lib.services.http-module.html delete mode 100644 docs/toc-linspector.lib.services.ping-module.html delete mode 100644 docs/toc-linspector.lib.services.service-module.html delete mode 100644 docs/toc-linspector.lib.services.shell-module.html delete mode 100644 docs/toc-linspector.lib.services.snmpget-module.html delete mode 100644 docs/toc-linspector.lib.services.ssh-module.html delete mode 100644 docs/toc-linspector.lib.services.tcpconnect-module.html delete mode 100644 docs/toc-linspector.lib.tasks-module.html delete mode 100644 docs/toc-linspector.lib.tasks.email-module.html delete mode 100644 docs/toc-linspector.lib.tasks.sms-module.html delete mode 100644 docs/toc-linspector.lib.tasks.task-module.html delete mode 100644 docs/toc-linspector.lib.tasks.xmpp-module.html delete mode 100644 docs/toc.html diff --git a/docs/api-objects.txt b/docs/api-objects.txt deleted file mode 100644 index 6338769..0000000 --- a/docs/api-objects.txt +++ /dev/null @@ -1,454 +0,0 @@ -linspector linspector-module.html -linspector.__package__ linspector-module.html#__package__ -linspector.lib linspector.lib-module.html -linspector.lib.__package__ linspector.lib-module.html#__package__ -linspector.lib.config linspector.lib.config-module.html -linspector.lib.config.__package__ linspector.lib.config-module.html#__package__ -linspector.lib.config.config linspector.lib.config.config-module.html -linspector.lib.config.config.parseMemberList linspector.lib.config.members-module.html#parseMemberList -linspector.lib.config.config.parseTaskList linspector.lib.config.tasks-module.html#parseTaskList -linspector.lib.config.config.__package__ linspector.lib.config.config-module.html#__package__ -linspector.lib.config.hostgroups linspector.lib.config.hostgroups-module.html -linspector.lib.config.hostgroups.__package__ linspector.lib.config.hostgroups-module.html#__package__ -linspector.lib.config.hostgroups.parseHostGroupList linspector.lib.config.hostgroups-module.html#parseHostGroupList -linspector.lib.config.hosts linspector.lib.config.hosts-module.html -linspector.lib.config.hosts.parseHostList linspector.lib.config.hosts-module.html#parseHostList -linspector.lib.config.hosts.__package__ linspector.lib.config.hosts-module.html#__package__ -linspector.lib.config.layouts linspector.lib.config.layouts-module.html -linspector.lib.config.layouts.__package__ linspector.lib.config.layouts-module.html#__package__ -linspector.lib.config.members linspector.lib.config.members-module.html -linspector.lib.config.members.parseMemberList linspector.lib.config.members-module.html#parseMemberList -linspector.lib.config.members.__package__ linspector.lib.config.members-module.html#__package__ -linspector.lib.config.parser linspector.lib.config.parser-module.html -linspector.lib.config.parser.Service linspector.lib.services.service.Service-class.html -linspector.lib.config.parser.KEY_HOSTGROUPS linspector.lib.config.parser-module.html#KEY_HOSTGROUPS -linspector.lib.config.parser.KEY_CORE linspector.lib.config.parser-module.html#KEY_CORE -linspector.lib.config.parser.MOD_PROCESSORS linspector.lib.config.parser-module.html#MOD_PROCESSORS -linspector.lib.config.parser.__package__ linspector.lib.config.parser-module.html#__package__ -linspector.lib.config.parser.KEY_PERIODS linspector.lib.config.parser-module.html#KEY_PERIODS -linspector.lib.config.parser.KEY_MEMBERS linspector.lib.config.parser-module.html#KEY_MEMBERS -linspector.lib.config.parser.KEY_LAYOUTS linspector.lib.config.parser-module.html#KEY_LAYOUTS -linspector.lib.config.parser.Task linspector.lib.tasks.task.Task-class.html -linspector.lib.config.parser.MOD_TASKS linspector.lib.config.parser-module.html#MOD_TASKS -linspector.lib.config.parser.MOD_PARSERS linspector.lib.config.parser-module.html#MOD_PARSERS -linspector.lib.config.parser.Processor linspector.lib.processors.processor.Processor-class.html -linspector.lib.config.parser.parsePeriodList linspector.lib.config.parser-module.html#parsePeriodList -linspector.lib.config.parser.Parser linspector.lib.parsers.parser.Parser-class.html -linspector.lib.config.parser.MOD_SERVICES linspector.lib.config.parser-module.html#MOD_SERVICES -linspector.lib.config.periods linspector.lib.config.periods-module.html -linspector.lib.config.periods.__package__ linspector.lib.config.periods-module.html#__package__ -linspector.lib.config.services linspector.lib.config.services-module.html -linspector.lib.config.services.serviceList linspector.lib.config.services-module.html#serviceList -linspector.lib.config.services.__package__ linspector.lib.config.services-module.html#__package__ -linspector.lib.config.tasks linspector.lib.config.tasks-module.html -linspector.lib.config.tasks.parseTaskList linspector.lib.config.tasks-module.html#parseTaskList -linspector.lib.config.tasks.__package__ linspector.lib.config.tasks-module.html#__package__ -linspector.lib.core linspector.lib.core-module.html -linspector.lib.core.__package__ linspector.lib.core-module.html#__package__ -linspector.lib.core.command linspector.lib.core.command-module.html -linspector.lib.core.command.__package__ linspector.lib.core.command-module.html#__package__ -linspector.lib.core.daemon linspector.lib.core.daemon-module.html -linspector.lib.core.daemon.__package__ linspector.lib.core.daemon-module.html#__package__ -linspector.lib.core.job linspector.lib.core.job-module.html -linspector.lib.core.job.generateId linspector.lib.core.job-module.html#generateId -linspector.lib.core.job.__package__ linspector.lib.core.job-module.html#__package__ -linspector.lib.core.linspector_daemon linspector.lib.core.linspector_daemon-module.html -linspector.lib.core.linspector_daemon.__package__ linspector.lib.core.linspector_daemon-module.html#__package__ -linspector.lib.core.logger linspector.lib.core.logger-module.html -linspector.lib.core.logger.__package__ linspector.lib.core.logger-module.html#__package__ -linspector.lib.parsers linspector.lib.parsers-module.html -linspector.lib.parsers.__package__ linspector.lib.parsers-module.html#__package__ -linspector.lib.parsers.parser linspector.lib.parsers.parser-module.html -linspector.lib.parsers.parser.__package__ linspector.lib.parsers.parser-module.html#__package__ -linspector.lib.processors linspector.lib.processors-module.html -linspector.lib.processors.__package__ linspector.lib.processors-module.html#__package__ -linspector.lib.processors.mongodb linspector.lib.processors.mongodb-module.html -linspector.lib.processors.mongodb.create linspector.lib.processors.mongodb-module.html#create -linspector.lib.processors.mongodb.__package__ linspector.lib.processors.mongodb-module.html#__package__ -linspector.lib.processors.processor linspector.lib.processors.processor-module.html -linspector.lib.processors.processor.__package__ linspector.lib.processors.processor-module.html#__package__ -linspector.lib.processors.syslog linspector.lib.processors.syslog-module.html -linspector.lib.processors.syslog.create linspector.lib.processors.syslog-module.html#create -linspector.lib.processors.syslog.__package__ linspector.lib.processors.syslog-module.html#__package__ -linspector.lib.services linspector.lib.services-module.html -linspector.lib.services.__package__ linspector.lib.services-module.html#__package__ -linspector.lib.services.http linspector.lib.services.http-module.html -linspector.lib.services.http.create linspector.lib.services.http-module.html#create -linspector.lib.services.http.__package__ linspector.lib.services.http-module.html#__package__ -linspector.lib.services.ping linspector.lib.services.ping-module.html -linspector.lib.services.ping.create linspector.lib.services.ping-module.html#create -linspector.lib.services.ping.__package__ linspector.lib.services.ping-module.html#__package__ -linspector.lib.services.service linspector.lib.services.service-module.html -linspector.lib.services.service.KEY_PARSER linspector.lib.services.service-module.html#KEY_PARSER -linspector.lib.services.service.KEY_ARGS linspector.lib.services.service-module.html#KEY_ARGS -linspector.lib.services.service.KEY_COMMENT linspector.lib.services.service-module.html#KEY_COMMENT -linspector.lib.services.service.KEY_FAILS linspector.lib.services.service-module.html#KEY_FAILS -linspector.lib.services.service.__package__ linspector.lib.services.service-module.html#__package__ -linspector.lib.services.service.KEY_PERIODS linspector.lib.services.service-module.html#KEY_PERIODS -linspector.lib.services.service.KEY_THRESHOLD linspector.lib.services.service-module.html#KEY_THRESHOLD -linspector.lib.services.shell linspector.lib.services.shell-module.html -linspector.lib.services.shell.create linspector.lib.services.shell-module.html#create -linspector.lib.services.shell.__package__ linspector.lib.services.shell-module.html#__package__ -linspector.lib.services.snmpget linspector.lib.services.snmpget-module.html -linspector.lib.services.snmpget.create linspector.lib.services.snmpget-module.html#create -linspector.lib.services.snmpget.__package__ linspector.lib.services.snmpget-module.html#__package__ -linspector.lib.services.ssh linspector.lib.services.ssh-module.html -linspector.lib.services.ssh.create linspector.lib.services.ssh-module.html#create -linspector.lib.services.ssh.__package__ linspector.lib.services.ssh-module.html#__package__ -linspector.lib.services.tcpconnect linspector.lib.services.tcpconnect-module.html -linspector.lib.services.tcpconnect.create linspector.lib.services.tcpconnect-module.html#create -linspector.lib.services.tcpconnect.__package__ linspector.lib.services.tcpconnect-module.html#__package__ -linspector.lib.tasks linspector.lib.tasks-module.html -linspector.lib.tasks.__package__ linspector.lib.tasks-module.html#__package__ -linspector.lib.tasks.email linspector.lib.tasks.email-module.html -linspector.lib.tasks.email.create linspector.lib.tasks.email-module.html#create -linspector.lib.tasks.email.__package__ linspector.lib.tasks.email-module.html#__package__ -linspector.lib.tasks.sms linspector.lib.tasks.sms-module.html -linspector.lib.tasks.sms.create linspector.lib.tasks.sms-module.html#create -linspector.lib.tasks.sms.__package__ linspector.lib.tasks.sms-module.html#__package__ -linspector.lib.tasks.task linspector.lib.tasks.task-module.html -linspector.lib.tasks.task.__package__ linspector.lib.tasks.task-module.html#__package__ -linspector.lib.tasks.xmpp linspector.lib.tasks.xmpp-module.html -linspector.lib.tasks.xmpp.create linspector.lib.tasks.xmpp-module.html#create -linspector.lib.tasks.xmpp.__package__ linspector.lib.tasks.xmpp-module.html#__package__ -linspector.lib.config.config.Config linspector.lib.config.config.Config-class.html -linspector.lib.config.config.Config.__init__ linspector.lib.config.config.Config-class.html#__init__ -linspector.lib.config.hostgroups.HostGroup linspector.lib.config.hostgroups.HostGroup-class.html -linspector.lib.config.hostgroups.HostGroup.get_processors linspector.lib.config.hostgroups.HostGroup-class.html#get_processors -linspector.lib.config.hostgroups.HostGroup.__str__ linspector.lib.config.hostgroups.HostGroup-class.html#__str__ -linspector.lib.config.hostgroups.HostGroup._to_config_dict linspector.lib.config.hostgroups.HostGroup-class.html#_to_config_dict -linspector.lib.config.hostgroups.HostGroup.get_name linspector.lib.config.hostgroups.HostGroup-class.html#get_name -linspector.lib.config.hostgroups.HostGroup.get_parents linspector.lib.config.hostgroups.HostGroup-class.html#get_parents -linspector.lib.config.hostgroups.HostGroup.add_parents linspector.lib.config.hostgroups.HostGroup-class.html#add_parents -linspector.lib.config.hostgroups.HostGroup.__init__ linspector.lib.config.hostgroups.HostGroup-class.html#__init__ -linspector.lib.config.hostgroups.HostGroup.get_services linspector.lib.config.hostgroups.HostGroup-class.html#get_services -linspector.lib.config.hostgroups.HostGroup.add_services linspector.lib.config.hostgroups.HostGroup-class.html#add_services -linspector.lib.config.hostgroups.HostGroup.get_hosts linspector.lib.config.hostgroups.HostGroup-class.html#get_hosts -linspector.lib.config.hostgroups.HostGroup.get_members linspector.lib.config.hostgroups.HostGroup-class.html#get_members -linspector.lib.config.hostgroups.HostGroup.add_hosts linspector.lib.config.hostgroups.HostGroup-class.html#add_hosts -linspector.lib.config.hostgroups.HostGroup.add_processors linspector.lib.config.hostgroups.HostGroup-class.html#add_processors -linspector.lib.config.hostgroups.HostGroup.add_members linspector.lib.config.hostgroups.HostGroup-class.html#add_members -linspector.lib.config.hostgroups.HostGroup.__add_internal linspector.lib.config.hostgroups.HostGroup-class.html#__add_internal -linspector.lib.config.hostgroups.HostGroupException linspector.lib.config.hostgroups.HostGroupException-class.html -linspector.lib.config.hostgroups.HostGroupException.__str__ linspector.lib.config.hostgroups.HostGroupException-class.html#__str__ -linspector.lib.config.hostgroups.HostGroupException.__init__ linspector.lib.config.hostgroups.HostGroupException-class.html#__init__ -linspector.lib.config.hostgroups.HostGroupMissingArgumentException linspector.lib.config.hostgroups.HostGroupMissingArgumentException-class.html -linspector.lib.config.hostgroups.HostGroupException.__str__ linspector.lib.config.hostgroups.HostGroupException-class.html#__str__ -linspector.lib.config.hostgroups.HostGroupMissingArgumentException.__init__ linspector.lib.config.hostgroups.HostGroupMissingArgumentException-class.html#__init__ -linspector.lib.config.hostgroups.HostGroupService linspector.lib.config.hostgroups.HostGroupService-class.html -linspector.lib.config.hostgroups.HostGroupService.__str__ linspector.lib.config.hostgroups.HostGroupService-class.html#__str__ -linspector.lib.config.hostgroups.HostGroupService.__init__ linspector.lib.config.hostgroups.HostGroupService-class.html#__init__ -linspector.lib.config.hosts.Host linspector.lib.config.hosts.Host-class.html -linspector.lib.config.hosts.Host.getHostServiceByName linspector.lib.config.hosts.Host-class.html#getHostServiceByName -linspector.lib.config.hosts.Host.__str__ linspector.lib.config.hosts.Host-class.html#__str__ -linspector.lib.config.hosts.Host.__init__ linspector.lib.config.hosts.Host-class.html#__init__ -linspector.lib.config.hosts.HostService linspector.lib.config.hosts.HostService-class.html -linspector.lib.config.hosts.HostService.setCommand linspector.lib.config.hosts.HostService-class.html#setCommand -linspector.lib.config.hosts.HostService.__str__ linspector.lib.config.hosts.HostService-class.html#__str__ -linspector.lib.config.hosts.HostService.getCommand linspector.lib.config.hosts.HostService-class.html#getCommand -linspector.lib.config.hosts.HostService.__init__ linspector.lib.config.hosts.HostService-class.html#__init__ -linspector.lib.config.layouts.Layout linspector.lib.config.layouts.Layout-class.html -linspector.lib.config.layouts.Layout.is_enabled linspector.lib.config.layouts.Layout-class.html#is_enabled -linspector.lib.config.layouts.Layout.__str__ linspector.lib.config.layouts.Layout-class.html#__str__ -linspector.lib.config.layouts.Layout._to_config_dict linspector.lib.config.layouts.Layout-class.html#_to_config_dict -linspector.lib.config.layouts.Layout.get_name linspector.lib.config.layouts.Layout-class.html#get_name -linspector.lib.config.layouts.Layout.get_hostgroups linspector.lib.config.layouts.Layout-class.html#get_hostgroups -linspector.lib.config.layouts.Layout.__init__ linspector.lib.config.layouts.Layout-class.html#__init__ -linspector.lib.config.layouts.LayoutException linspector.lib.config.layouts.LayoutException-class.html -linspector.lib.config.layouts.LayoutException.__str__ linspector.lib.config.layouts.LayoutException-class.html#__str__ -linspector.lib.config.layouts.LayoutException.__init__ linspector.lib.config.layouts.LayoutException-class.html#__init__ -linspector.lib.config.layouts.LayoutList linspector.lib.config.layouts.LayoutList-class.html -linspector.lib.config.layouts.LayoutList.__str__ linspector.lib.config.layouts.LayoutList-class.html#__str__ -linspector.lib.config.layouts.LayoutList.__init__ linspector.lib.config.layouts.LayoutList-class.html#__init__ -linspector.lib.config.members.Member linspector.lib.config.members.Member-class.html -linspector.lib.config.members.Member.__str__ linspector.lib.config.members.Member-class.html#__str__ -linspector.lib.config.members.Member.add_task linspector.lib.config.members.Member-class.html#add_task -linspector.lib.config.members.Member.get_tasks linspector.lib.config.members.Member-class.html#get_tasks -linspector.lib.config.members.Member.__init__ linspector.lib.config.members.Member-class.html#__init__ -linspector.lib.config.members.MemberFilter linspector.lib.config.members.MemberFilter-class.html -linspector.lib.config.members.MemberFilter.__str__ linspector.lib.config.members.MemberFilter-class.html#__str__ -linspector.lib.config.members.MemberFilter.__init__ linspector.lib.config.members.MemberFilter-class.html#__init__ -linspector.lib.config.parser.ConfigParser linspector.lib.config.parser.ConfigParser-class.html -linspector.lib.config.parser.ConfigParser.replace_with_import linspector.lib.config.parser.ConfigParser-class.html#replace_with_import -linspector.lib.config.parser.ConfigParser._create_raw_Object linspector.lib.config.parser.ConfigParser-class.html#_create_raw_Object -linspector.lib.config.parser.ConfigParser._load_module linspector.lib.config.parser.ConfigParser-class.html#_load_module -linspector.lib.config.parser.ConfigParser.replace_pointer linspector.lib.config.parser.ConfigParser-class.html#replace_pointer -linspector.lib.config.parser.ConfigParser._read_json_config linspector.lib.config.parser.ConfigParser-class.html#_read_json_config -linspector.lib.config.parser.ConfigParser.parse_config linspector.lib.config.parser.ConfigParser-class.html#parse_config -linspector.lib.config.parser.ConfigParser.create_config linspector.lib.config.parser.ConfigParser-class.html#create_config -linspector.lib.config.parser.ConfigParser.__init__ linspector.lib.config.parser.ConfigParser-class.html#__init__ -linspector.lib.config.parser.ConfigParser._create_new_config_dict linspector.lib.config.parser.ConfigParser-class.html#_create_new_config_dict -linspector.lib.config.parser.ConfigurationException linspector.lib.config.parser.ConfigurationException-class.html -linspector.lib.config.parser.ConfigurationException.__str__ linspector.lib.config.parser.ConfigurationException-class.html#__str__ -linspector.lib.config.parser.ConfigurationException.__init__ linspector.lib.config.parser.ConfigurationException-class.html#__init__ -linspector.lib.config.parser.FullConfigParser linspector.lib.config.parser.FullConfigParser-class.html -linspector.lib.config.parser.ConfigParser.replace_with_import linspector.lib.config.parser.ConfigParser-class.html#replace_with_import -linspector.lib.config.parser.ConfigParser.create_config linspector.lib.config.parser.ConfigParser-class.html#create_config -linspector.lib.config.parser.ConfigParser._load_module linspector.lib.config.parser.ConfigParser-class.html#_load_module -linspector.lib.config.parser.ConfigParser.replace_pointer linspector.lib.config.parser.ConfigParser-class.html#replace_pointer -linspector.lib.config.parser.ConfigParser._read_json_config linspector.lib.config.parser.ConfigParser-class.html#_read_json_config -linspector.lib.config.parser.FullConfigParser.parse_config linspector.lib.config.parser.FullConfigParser-class.html#parse_config -linspector.lib.config.parser.ConfigParser._create_raw_Object linspector.lib.config.parser.ConfigParser-class.html#_create_raw_Object -linspector.lib.config.parser.ConfigParser.__init__ linspector.lib.config.parser.ConfigParser-class.html#__init__ -linspector.lib.config.parser.ConfigParser._create_new_config_dict linspector.lib.config.parser.ConfigParser-class.html#_create_new_config_dict -linspector.lib.config.periods.CronPeriod linspector.lib.config.periods.CronPeriod-class.html -linspector.lib.config.periods.CronPeriod.createJob linspector.lib.config.periods.CronPeriod-class.html#createJob -linspector.lib.config.periods.CronPeriod.__str__ linspector.lib.config.periods.CronPeriod-class.html#__str__ -linspector.lib.config.periods.Period.get_name linspector.lib.config.periods.Period-class.html#get_name -linspector.lib.config.periods.CronPeriod.__init__ linspector.lib.config.periods.CronPeriod-class.html#__init__ -linspector.lib.config.periods.DatePeriod linspector.lib.config.periods.DatePeriod-class.html -linspector.lib.config.periods.DatePeriod.createJob linspector.lib.config.periods.DatePeriod-class.html#createJob -linspector.lib.config.periods.DatePeriod.__str__ linspector.lib.config.periods.DatePeriod-class.html#__str__ -linspector.lib.config.periods.Period.get_name linspector.lib.config.periods.Period-class.html#get_name -linspector.lib.config.periods.DatePeriod.__init__ linspector.lib.config.periods.DatePeriod-class.html#__init__ -linspector.lib.config.periods.IntervalPeriod linspector.lib.config.periods.IntervalPeriod-class.html -linspector.lib.config.periods.IntervalPeriod.createJob linspector.lib.config.periods.IntervalPeriod-class.html#createJob -linspector.lib.config.periods.IntervalPeriod.__str__ linspector.lib.config.periods.IntervalPeriod-class.html#__str__ -linspector.lib.config.periods.Period.get_name linspector.lib.config.periods.Period-class.html#get_name -linspector.lib.config.periods.IntervalPeriod.__init__ linspector.lib.config.periods.IntervalPeriod-class.html#__init__ -linspector.lib.config.periods.Period linspector.lib.config.periods.Period-class.html -linspector.lib.config.periods.Period.createJob linspector.lib.config.periods.Period-class.html#createJob -linspector.lib.config.periods.Period.get_name linspector.lib.config.periods.Period-class.html#get_name -linspector.lib.config.periods.Period.__init__ linspector.lib.config.periods.Period-class.html#__init__ -linspector.lib.config.services.Service linspector.lib.config.services.Service-class.html -linspector.lib.config.services.Service.clone linspector.lib.config.services.Service-class.html#clone -linspector.lib.config.services.Service.__str__ linspector.lib.config.services.Service-class.html#__str__ -linspector.lib.config.services.Service.__init__ linspector.lib.config.services.Service-class.html#__init__ -linspector.lib.config.tasks.Task linspector.lib.config.tasks.Task-class.html -linspector.lib.config.tasks.Task.clone linspector.lib.config.tasks.Task-class.html#clone -linspector.lib.config.tasks.Task.__str__ linspector.lib.config.tasks.Task-class.html#__str__ -linspector.lib.config.tasks.Task.__init__ linspector.lib.config.tasks.Task-class.html#__init__ -linspector.lib.core.command.Command linspector.lib.core.command.Command-class.html -linspector.lib.core.command.Command.getError linspector.lib.core.command.Command-class.html#getError -linspector.lib.core.command.Command.__str__ linspector.lib.core.command.Command-class.html#__str__ -linspector.lib.core.command.Command.getAllOutput linspector.lib.core.command.Command-class.html#getAllOutput -linspector.lib.core.command.Command.getOutput linspector.lib.core.command.Command-class.html#getOutput -linspector.lib.core.command.Command.call linspector.lib.core.command.Command-class.html#call -linspector.lib.core.command.Command.getReturnCode linspector.lib.core.command.Command-class.html#getReturnCode -linspector.lib.core.command.Command.__init__ linspector.lib.core.command.Command-class.html#__init__ -linspector.lib.core.daemon.Daemon linspector.lib.core.daemon.Daemon-class.html -linspector.lib.core.daemon.Daemon.delpid linspector.lib.core.daemon.Daemon-class.html#delpid -linspector.lib.core.daemon.Daemon.run linspector.lib.core.daemon.Daemon-class.html#run -linspector.lib.core.daemon.Daemon.stop linspector.lib.core.daemon.Daemon-class.html#stop -linspector.lib.core.daemon.Daemon.start linspector.lib.core.daemon.Daemon-class.html#start -linspector.lib.core.daemon.Daemon.daemonize linspector.lib.core.daemon.Daemon-class.html#daemonize -linspector.lib.core.daemon.Daemon.__init__ linspector.lib.core.daemon.Daemon-class.html#__init__ -linspector.lib.core.daemon.Daemon.restart linspector.lib.core.daemon.Daemon-class.html#restart -linspector.lib.core.job.JobInfo linspector.lib.core.job.JobInfo-class.html -linspector.lib.core.job.JobInfo.getNextExecutionTime linspector.lib.core.job.JobInfo-class.html#getNextExecutionTime -linspector.lib.core.job.JobInfo.__str__ linspector.lib.core.job.JobInfo-class.html#__str__ -linspector.lib.core.job.JobInfo.appendJob linspector.lib.core.job.JobInfo-class.html#appendJob -linspector.lib.core.job.JobInfo.handleCall linspector.lib.core.job.JobInfo-class.html#handleCall -linspector.lib.core.job.JobInfo.setLogger linspector.lib.core.job.JobInfo-class.html#setLogger -linspector.lib.core.job.JobInfo.__init__ linspector.lib.core.job.JobInfo-class.html#__init__ -linspector.lib.core.linspector_daemon.LinspectorDaemon linspector.lib.core.linspector_daemon.LinspectorDaemon-class.html -linspector.lib.core.daemon.Daemon.delpid linspector.lib.core.daemon.Daemon-class.html#delpid -linspector.lib.core.linspector_daemon.LinspectorDaemon.run linspector.lib.core.linspector_daemon.LinspectorDaemon-class.html#run -linspector.lib.core.daemon.Daemon.stop linspector.lib.core.daemon.Daemon-class.html#stop -linspector.lib.core.daemon.Daemon.start linspector.lib.core.daemon.Daemon-class.html#start -linspector.lib.core.daemon.Daemon.daemonize linspector.lib.core.daemon.Daemon-class.html#daemonize -linspector.lib.core.daemon.Daemon.restart linspector.lib.core.daemon.Daemon-class.html#restart -linspector.lib.core.daemon.Daemon.__init__ linspector.lib.core.daemon.Daemon-class.html#__init__ -linspector.lib.core.logger.Logger linspector.lib.core.logger.Logger-class.html -linspector.lib.core.logger.Logger.c linspector.lib.core.logger.Logger-class.html#c -linspector.lib.core.logger.Logger.e linspector.lib.core.logger.Logger-class.html#e -linspector.lib.core.logger.Logger.d linspector.lib.core.logger.Logger-class.html#d -linspector.lib.core.logger.Logger.i linspector.lib.core.logger.Logger-class.html#i -linspector.lib.core.logger.Logger.w linspector.lib.core.logger.Logger-class.html#w -linspector.lib.core.logger.Logger.close linspector.lib.core.logger.Logger-class.html#close -linspector.lib.core.logger.Logger.__init__ linspector.lib.core.logger.Logger-class.html#__init__ -linspector.lib.parsers.parser.Parser linspector.lib.parsers.parser.Parser-class.html -linspector.lib.parsers.parser.Parser.__init__ linspector.lib.parsers.parser.Parser-class.html#__init__ -linspector.lib.parsers.parser.Parser.parse_data linspector.lib.parsers.parser.Parser-class.html#parse_data -linspector.lib.parsers.parser.Parser.pre_parse linspector.lib.parsers.parser.Parser-class.html#pre_parse -linspector.lib.parsers.parser.Parser.generate_parse_result linspector.lib.parsers.parser.Parser-class.html#generate_parse_result -linspector.lib.processors.mongodb.Mongodb linspector.lib.processors.mongodb.Mongodb-class.html -linspector.lib.processors.mongodb.Mongodb.__init__ linspector.lib.processors.mongodb.Mongodb-class.html#__init__ -linspector.lib.processors.processor.Processor linspector.lib.processors.processor.Processor-class.html -linspector.lib.processors.processor.Processor.__init__ linspector.lib.processors.processor.Processor-class.html#__init__ -linspector.lib.processors.syslog.Syslog linspector.lib.processors.syslog.Syslog-class.html -linspector.lib.processors.syslog.Syslog.__init__ linspector.lib.processors.syslog.Syslog-class.html#__init__ -linspector.lib.services.http.HttpService linspector.lib.services.http.HttpService-class.html -linspector.lib.services.service.Service.pre_execute linspector.lib.services.service.Service-class.html#pre_execute -linspector.lib.services.service.Service.get_comment linspector.lib.services.service.Service-class.html#get_comment -linspector.lib.services.service.Service.get_periods linspector.lib.services.service.Service-class.html#get_periods -linspector.lib.services.service.Service.get_threshold linspector.lib.services.service.Service-class.html#get_threshold -linspector.lib.services.service.Service.set_host linspector.lib.services.service.Service-class.html#set_host -linspector.lib.services.service.Service.put_fail linspector.lib.services.service.Service-class.html#put_fail -linspector.lib.services.http.HttpService.__init__ linspector.lib.services.http.HttpService-class.html#__init__ -linspector.lib.services.service.Service.put_fails linspector.lib.services.service.Service-class.html#put_fails -linspector.lib.services.service.Service.add_periods linspector.lib.services.service.Service-class.html#add_periods -linspector.lib.services.service.Service._execute linspector.lib.services.service.Service-class.html#_execute -linspector.lib.services.service.Service.add_parser linspector.lib.services.service.Service-class.html#add_parser -linspector.lib.services.service.Service.handle_result linspector.lib.services.service.Service-class.html#handle_result -linspector.lib.services.service.Service.parse_result linspector.lib.services.service.Service-class.html#parse_result -linspector.lib.services.service.Service.get_parser linspector.lib.services.service.Service-class.html#get_parser -linspector.lib.services.service.Service.get_host linspector.lib.services.service.Service-class.html#get_host -linspector.lib.services.service.Service.get_fails linspector.lib.services.service.Service-class.html#get_fails -linspector.lib.services.service.Service.add_argument linspector.lib.services.service.Service-class.html#add_argument -linspector.lib.services.service.Service.has_fail linspector.lib.services.service.Service-class.html#has_fail -linspector.lib.services.http.HttpService.execute linspector.lib.services.http.HttpService-class.html#execute -linspector.lib.services.http.HttpService.needs_arguments linspector.lib.services.http.HttpService-class.html#needs_arguments -linspector.lib.services.service.Service.get_arguments linspector.lib.services.service.Service-class.html#get_arguments -linspector.lib.services.service.Service.add_arguments linspector.lib.services.service.Service-class.html#add_arguments -linspector.lib.services.ping.PingService linspector.lib.services.ping.PingService-class.html -linspector.lib.services.service.Service.pre_execute linspector.lib.services.service.Service-class.html#pre_execute -linspector.lib.services.service.Service.get_comment linspector.lib.services.service.Service-class.html#get_comment -linspector.lib.services.service.Service.get_periods linspector.lib.services.service.Service-class.html#get_periods -linspector.lib.services.service.Service.get_threshold linspector.lib.services.service.Service-class.html#get_threshold -linspector.lib.services.service.Service.set_host linspector.lib.services.service.Service-class.html#set_host -linspector.lib.services.service.Service.put_fail linspector.lib.services.service.Service-class.html#put_fail -linspector.lib.services.ping.PingService.__init__ linspector.lib.services.ping.PingService-class.html#__init__ -linspector.lib.services.service.Service.put_fails linspector.lib.services.service.Service-class.html#put_fails -linspector.lib.services.service.Service.add_periods linspector.lib.services.service.Service-class.html#add_periods -linspector.lib.services.service.Service._execute linspector.lib.services.service.Service-class.html#_execute -linspector.lib.services.service.Service.add_parser linspector.lib.services.service.Service-class.html#add_parser -linspector.lib.services.service.Service.handle_result linspector.lib.services.service.Service-class.html#handle_result -linspector.lib.services.service.Service.parse_result linspector.lib.services.service.Service-class.html#parse_result -linspector.lib.services.service.Service.get_parser linspector.lib.services.service.Service-class.html#get_parser -linspector.lib.services.service.Service.get_host linspector.lib.services.service.Service-class.html#get_host -linspector.lib.services.service.Service.get_fails linspector.lib.services.service.Service-class.html#get_fails -linspector.lib.services.service.Service.add_argument linspector.lib.services.service.Service-class.html#add_argument -linspector.lib.services.service.Service.has_fail linspector.lib.services.service.Service-class.html#has_fail -linspector.lib.services.service.Service.execute linspector.lib.services.service.Service-class.html#execute -linspector.lib.services.service.Service.needs_arguments linspector.lib.services.service.Service-class.html#needs_arguments -linspector.lib.services.service.Service.get_arguments linspector.lib.services.service.Service-class.html#get_arguments -linspector.lib.services.service.Service.add_arguments linspector.lib.services.service.Service-class.html#add_arguments -linspector.lib.services.service.Service linspector.lib.services.service.Service-class.html -linspector.lib.services.service.Service.pre_execute linspector.lib.services.service.Service-class.html#pre_execute -linspector.lib.services.service.Service.get_comment linspector.lib.services.service.Service-class.html#get_comment -linspector.lib.services.service.Service.get_periods linspector.lib.services.service.Service-class.html#get_periods -linspector.lib.services.service.Service.get_threshold linspector.lib.services.service.Service-class.html#get_threshold -linspector.lib.services.service.Service.set_host linspector.lib.services.service.Service-class.html#set_host -linspector.lib.services.service.Service.put_fail linspector.lib.services.service.Service-class.html#put_fail -linspector.lib.services.service.Service.__init__ linspector.lib.services.service.Service-class.html#__init__ -linspector.lib.services.service.Service.put_fails linspector.lib.services.service.Service-class.html#put_fails -linspector.lib.services.service.Service.add_periods linspector.lib.services.service.Service-class.html#add_periods -linspector.lib.services.service.Service._execute linspector.lib.services.service.Service-class.html#_execute -linspector.lib.services.service.Service.add_parser linspector.lib.services.service.Service-class.html#add_parser -linspector.lib.services.service.Service.handle_result linspector.lib.services.service.Service-class.html#handle_result -linspector.lib.services.service.Service.parse_result linspector.lib.services.service.Service-class.html#parse_result -linspector.lib.services.service.Service.get_parser linspector.lib.services.service.Service-class.html#get_parser -linspector.lib.services.service.Service.get_host linspector.lib.services.service.Service-class.html#get_host -linspector.lib.services.service.Service.get_fails linspector.lib.services.service.Service-class.html#get_fails -linspector.lib.services.service.Service.add_argument linspector.lib.services.service.Service-class.html#add_argument -linspector.lib.services.service.Service.has_fail linspector.lib.services.service.Service-class.html#has_fail -linspector.lib.services.service.Service.execute linspector.lib.services.service.Service-class.html#execute -linspector.lib.services.service.Service.needs_arguments linspector.lib.services.service.Service-class.html#needs_arguments -linspector.lib.services.service.Service.get_arguments linspector.lib.services.service.Service-class.html#get_arguments -linspector.lib.services.service.Service.add_arguments linspector.lib.services.service.Service-class.html#add_arguments -linspector.lib.services.shell.ShellService linspector.lib.services.shell.ShellService-class.html -linspector.lib.services.service.Service.pre_execute linspector.lib.services.service.Service-class.html#pre_execute -linspector.lib.services.service.Service.get_comment linspector.lib.services.service.Service-class.html#get_comment -linspector.lib.services.service.Service.get_periods linspector.lib.services.service.Service-class.html#get_periods -linspector.lib.services.service.Service.get_threshold linspector.lib.services.service.Service-class.html#get_threshold -linspector.lib.services.service.Service.set_host linspector.lib.services.service.Service-class.html#set_host -linspector.lib.services.service.Service.put_fail linspector.lib.services.service.Service-class.html#put_fail -linspector.lib.services.shell.ShellService.__init__ linspector.lib.services.shell.ShellService-class.html#__init__ -linspector.lib.services.service.Service.put_fails linspector.lib.services.service.Service-class.html#put_fails -linspector.lib.services.service.Service.add_periods linspector.lib.services.service.Service-class.html#add_periods -linspector.lib.services.service.Service._execute linspector.lib.services.service.Service-class.html#_execute -linspector.lib.services.service.Service.add_parser linspector.lib.services.service.Service-class.html#add_parser -linspector.lib.services.service.Service.handle_result linspector.lib.services.service.Service-class.html#handle_result -linspector.lib.services.service.Service.parse_result linspector.lib.services.service.Service-class.html#parse_result -linspector.lib.services.service.Service.get_parser linspector.lib.services.service.Service-class.html#get_parser -linspector.lib.services.service.Service.get_host linspector.lib.services.service.Service-class.html#get_host -linspector.lib.services.service.Service.get_fails linspector.lib.services.service.Service-class.html#get_fails -linspector.lib.services.service.Service.add_argument linspector.lib.services.service.Service-class.html#add_argument -linspector.lib.services.service.Service.has_fail linspector.lib.services.service.Service-class.html#has_fail -linspector.lib.services.shell.ShellService.execute linspector.lib.services.shell.ShellService-class.html#execute -linspector.lib.services.shell.ShellService.needs_arguments linspector.lib.services.shell.ShellService-class.html#needs_arguments -linspector.lib.services.service.Service.get_arguments linspector.lib.services.service.Service-class.html#get_arguments -linspector.lib.services.service.Service.add_arguments linspector.lib.services.service.Service-class.html#add_arguments -linspector.lib.services.snmpget.SnmpgetService linspector.lib.services.snmpget.SnmpgetService-class.html -linspector.lib.services.service.Service.pre_execute linspector.lib.services.service.Service-class.html#pre_execute -linspector.lib.services.service.Service.get_comment linspector.lib.services.service.Service-class.html#get_comment -linspector.lib.services.service.Service.get_periods linspector.lib.services.service.Service-class.html#get_periods -linspector.lib.services.service.Service.get_threshold linspector.lib.services.service.Service-class.html#get_threshold -linspector.lib.services.service.Service.set_host linspector.lib.services.service.Service-class.html#set_host -linspector.lib.services.service.Service.put_fail linspector.lib.services.service.Service-class.html#put_fail -linspector.lib.services.snmpget.SnmpgetService.__init__ linspector.lib.services.snmpget.SnmpgetService-class.html#__init__ -linspector.lib.services.service.Service.put_fails linspector.lib.services.service.Service-class.html#put_fails -linspector.lib.services.service.Service.add_periods linspector.lib.services.service.Service-class.html#add_periods -linspector.lib.services.service.Service._execute linspector.lib.services.service.Service-class.html#_execute -linspector.lib.services.service.Service.add_parser linspector.lib.services.service.Service-class.html#add_parser -linspector.lib.services.service.Service.handle_result linspector.lib.services.service.Service-class.html#handle_result -linspector.lib.services.service.Service.parse_result linspector.lib.services.service.Service-class.html#parse_result -linspector.lib.services.service.Service.get_parser linspector.lib.services.service.Service-class.html#get_parser -linspector.lib.services.service.Service.get_host linspector.lib.services.service.Service-class.html#get_host -linspector.lib.services.service.Service.get_fails linspector.lib.services.service.Service-class.html#get_fails -linspector.lib.services.service.Service.add_argument linspector.lib.services.service.Service-class.html#add_argument -linspector.lib.services.service.Service.has_fail linspector.lib.services.service.Service-class.html#has_fail -linspector.lib.services.snmpget.SnmpgetService.execute linspector.lib.services.snmpget.SnmpgetService-class.html#execute -linspector.lib.services.snmpget.SnmpgetService.needs_arguments linspector.lib.services.snmpget.SnmpgetService-class.html#needs_arguments -linspector.lib.services.service.Service.get_arguments linspector.lib.services.service.Service-class.html#get_arguments -linspector.lib.services.service.Service.add_arguments linspector.lib.services.service.Service-class.html#add_arguments -linspector.lib.services.ssh.SshService linspector.lib.services.ssh.SshService-class.html -linspector.lib.services.service.Service.pre_execute linspector.lib.services.service.Service-class.html#pre_execute -linspector.lib.services.service.Service.get_comment linspector.lib.services.service.Service-class.html#get_comment -linspector.lib.services.service.Service.get_periods linspector.lib.services.service.Service-class.html#get_periods -linspector.lib.services.service.Service.get_threshold linspector.lib.services.service.Service-class.html#get_threshold -linspector.lib.services.service.Service.set_host linspector.lib.services.service.Service-class.html#set_host -linspector.lib.services.service.Service.put_fail linspector.lib.services.service.Service-class.html#put_fail -linspector.lib.services.ssh.SshService.__init__ linspector.lib.services.ssh.SshService-class.html#__init__ -linspector.lib.services.service.Service.put_fails linspector.lib.services.service.Service-class.html#put_fails -linspector.lib.services.service.Service.add_periods linspector.lib.services.service.Service-class.html#add_periods -linspector.lib.services.service.Service._execute linspector.lib.services.service.Service-class.html#_execute -linspector.lib.services.service.Service.add_parser linspector.lib.services.service.Service-class.html#add_parser -linspector.lib.services.service.Service.handle_result linspector.lib.services.service.Service-class.html#handle_result -linspector.lib.services.service.Service.parse_result linspector.lib.services.service.Service-class.html#parse_result -linspector.lib.services.service.Service.get_parser linspector.lib.services.service.Service-class.html#get_parser -linspector.lib.services.service.Service.get_host linspector.lib.services.service.Service-class.html#get_host -linspector.lib.services.service.Service.get_fails linspector.lib.services.service.Service-class.html#get_fails -linspector.lib.services.service.Service.add_argument linspector.lib.services.service.Service-class.html#add_argument -linspector.lib.services.service.Service.has_fail linspector.lib.services.service.Service-class.html#has_fail -linspector.lib.services.ssh.SshService.execute linspector.lib.services.ssh.SshService-class.html#execute -linspector.lib.services.ssh.SshService.needs_arguments linspector.lib.services.ssh.SshService-class.html#needs_arguments -linspector.lib.services.service.Service.get_arguments linspector.lib.services.service.Service-class.html#get_arguments -linspector.lib.services.service.Service.add_arguments linspector.lib.services.service.Service-class.html#add_arguments -linspector.lib.services.tcpconnect.TcpconnectService linspector.lib.services.tcpconnect.TcpconnectService-class.html -linspector.lib.services.service.Service.pre_execute linspector.lib.services.service.Service-class.html#pre_execute -linspector.lib.services.service.Service.get_comment linspector.lib.services.service.Service-class.html#get_comment -linspector.lib.services.service.Service.get_periods linspector.lib.services.service.Service-class.html#get_periods -linspector.lib.services.service.Service.get_threshold linspector.lib.services.service.Service-class.html#get_threshold -linspector.lib.services.service.Service.set_host linspector.lib.services.service.Service-class.html#set_host -linspector.lib.services.service.Service.put_fail linspector.lib.services.service.Service-class.html#put_fail -linspector.lib.services.tcpconnect.TcpconnectService.__init__ linspector.lib.services.tcpconnect.TcpconnectService-class.html#__init__ -linspector.lib.services.service.Service.put_fails linspector.lib.services.service.Service-class.html#put_fails -linspector.lib.services.service.Service.add_periods linspector.lib.services.service.Service-class.html#add_periods -linspector.lib.services.service.Service._execute linspector.lib.services.service.Service-class.html#_execute -linspector.lib.services.service.Service.add_parser linspector.lib.services.service.Service-class.html#add_parser -linspector.lib.services.service.Service.handle_result linspector.lib.services.service.Service-class.html#handle_result -linspector.lib.services.service.Service.parse_result linspector.lib.services.service.Service-class.html#parse_result -linspector.lib.services.service.Service.get_parser linspector.lib.services.service.Service-class.html#get_parser -linspector.lib.services.service.Service.get_host linspector.lib.services.service.Service-class.html#get_host -linspector.lib.services.service.Service.get_fails linspector.lib.services.service.Service-class.html#get_fails -linspector.lib.services.service.Service.add_argument linspector.lib.services.service.Service-class.html#add_argument -linspector.lib.services.service.Service.has_fail linspector.lib.services.service.Service-class.html#has_fail -linspector.lib.services.tcpconnect.TcpconnectService.execute linspector.lib.services.tcpconnect.TcpconnectService-class.html#execute -linspector.lib.services.tcpconnect.TcpconnectService.needs_arguments linspector.lib.services.tcpconnect.TcpconnectService-class.html#needs_arguments -linspector.lib.services.service.Service.get_arguments linspector.lib.services.service.Service-class.html#get_arguments -linspector.lib.services.service.Service.add_arguments linspector.lib.services.service.Service-class.html#add_arguments -linspector.lib.tasks.email.EmailTask linspector.lib.tasks.email.EmailTask-class.html -linspector.lib.tasks.task.Task._execute linspector.lib.tasks.task.Task-class.html#_execute -linspector.lib.tasks.task.Task.get_task_type linspector.lib.tasks.task.Task-class.html#get_task_type -linspector.lib.tasks.email.EmailTask.execute_task linspector.lib.tasks.email.EmailTask-class.html#execute_task -linspector.lib.tasks.task.Task.set_task_type linspector.lib.tasks.task.Task-class.html#set_task_type -linspector.lib.tasks.email.EmailTask.__init__ linspector.lib.tasks.email.EmailTask-class.html#__init__ -linspector.lib.tasks.sms.SmsTask linspector.lib.tasks.sms.SmsTask-class.html -linspector.lib.tasks.task.Task._execute linspector.lib.tasks.task.Task-class.html#_execute -linspector.lib.tasks.task.Task.get_task_type linspector.lib.tasks.task.Task-class.html#get_task_type -linspector.lib.tasks.sms.SmsTask.execute_task linspector.lib.tasks.sms.SmsTask-class.html#execute_task -linspector.lib.tasks.task.Task.set_task_type linspector.lib.tasks.task.Task-class.html#set_task_type -linspector.lib.tasks.sms.SmsTask.__init__ linspector.lib.tasks.sms.SmsTask-class.html#__init__ -linspector.lib.tasks.task.Task linspector.lib.tasks.task.Task-class.html -linspector.lib.tasks.task.Task._execute linspector.lib.tasks.task.Task-class.html#_execute -linspector.lib.tasks.task.Task.get_task_type linspector.lib.tasks.task.Task-class.html#get_task_type -linspector.lib.tasks.task.Task.execute_task linspector.lib.tasks.task.Task-class.html#execute_task -linspector.lib.tasks.task.Task.set_task_type linspector.lib.tasks.task.Task-class.html#set_task_type -linspector.lib.tasks.xmpp.XmppTask linspector.lib.tasks.xmpp.XmppTask-class.html -linspector.lib.tasks.task.Task._execute linspector.lib.tasks.task.Task-class.html#_execute -linspector.lib.tasks.task.Task.get_task_type linspector.lib.tasks.task.Task-class.html#get_task_type -linspector.lib.tasks.xmpp.XmppTask.execute_task linspector.lib.tasks.xmpp.XmppTask-class.html#execute_task -linspector.lib.tasks.task.Task.set_task_type linspector.lib.tasks.task.Task-class.html#set_task_type -linspector.lib.tasks.xmpp.XmppTask.__init__ linspector.lib.tasks.xmpp.XmppTask-class.html#__init__ diff --git a/docs/class-tree.html b/docs/class-tree.html deleted file mode 100644 index d6367d5..0000000 --- a/docs/class-tree.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - Class Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
- [ Module Hierarchy - | Class Hierarchy ] -

-

Class Hierarchy

- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/crarr.png b/docs/crarr.png deleted file mode 100644 index 26b43c52433b71e72a9a478c52d446278335f0e4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 340 zcmeAS@N?(olHy`uVBq!ia0vp^f?NMQuI$%1#8??M1uoZK z0}62#ctjR6FvuMOVaB`*rFK9;mUKs7M+SzC{oH>NS%G}l0G|-o|NsA=J-p%i`2!7U zCdJ_j4{u-SDsoA1U`TRixpVcz%O`iHHAYk?=&YaLkmD!Pp6~GW^M_S4D^grJKD>P~ zuPf!ku`N^TLavn`Edv_JSQ6wH%;50sMjDXg>*?YcQgJIe!GUqln>_|<+Os&OOUQS1 zY~Wzutud*iVS#|PHMc&?2WHoZpEo8l+6!Oc$x~=%U)469Gl^f?nq7UBw#1AXkrEde cmFKWBXcRFE*(?@T0vgQV>FVdQ&MBb@0LpZ4r2qf` diff --git a/docs/epydoc.css b/docs/epydoc.css deleted file mode 100644 index 86d4170..0000000 --- a/docs/epydoc.css +++ /dev/null @@ -1,322 +0,0 @@ - - -/* Epydoc CSS Stylesheet - * - * This stylesheet can be used to customize the appearance of epydoc's - * HTML output. - * - */ - -/* Default Colors & Styles - * - Set the default foreground & background color with 'body'; and - * link colors with 'a:link' and 'a:visited'. - * - Use bold for decision list terms. - * - The heading styles defined here are used for headings *within* - * docstring descriptions. All headings used by epydoc itself use - * either class='epydoc' or class='toc' (CSS styles for both - * defined below). - */ -body { background: #ffffff; color: #000000; } -p { margin-top: 0.5em; margin-bottom: 0.5em; } -a:link { color: #0000ff; } -a:visited { color: #204080; } -dt { font-weight: bold; } -h1 { font-size: +140%; font-style: italic; - font-weight: bold; } -h2 { font-size: +125%; font-style: italic; - font-weight: bold; } -h3 { font-size: +110%; font-style: italic; - font-weight: normal; } -code { font-size: 100%; } -/* N.B.: class, not pseudoclass */ -a.link { font-family: monospace; } - -/* Page Header & Footer - * - The standard page header consists of a navigation bar (with - * pointers to standard pages such as 'home' and 'trees'); a - * breadcrumbs list, which can be used to navigate to containing - * classes or modules; options links, to show/hide private - * variables and to show/hide frames; and a page title (using - *

). The page title may be followed by a link to the - * corresponding source code (using 'span.codelink'). - * - The footer consists of a navigation bar, a timestamp, and a - * pointer to epydoc's homepage. - */ -h1.epydoc { margin: 0; font-size: +140%; font-weight: bold; } -h2.epydoc { font-size: +130%; font-weight: bold; } -h3.epydoc { font-size: +115%; font-weight: bold; - margin-top: 0.2em; } -td h3.epydoc { font-size: +115%; font-weight: bold; - margin-bottom: 0; } -table.navbar { background: #a0c0ff; color: #000000; - border: 2px groove #c0d0d0; } -table.navbar table { color: #000000; } -th.navbar-select { background: #70b0ff; - color: #000000; } -table.navbar a { text-decoration: none; } -table.navbar a:link { color: #0000ff; } -table.navbar a:visited { color: #204080; } -span.breadcrumbs { font-size: 85%; font-weight: bold; } -span.options { font-size: 70%; } -span.codelink { font-size: 85%; } -td.footer { font-size: 85%; } - -/* Table Headers - * - Each summary table and details section begins with a 'header' - * row. This row contains a section title (marked by - * 'span.table-header') as well as a show/hide private link - * (marked by 'span.options', defined above). - * - Summary tables that contain user-defined groups mark those - * groups using 'group header' rows. - */ -td.table-header { background: #70b0ff; color: #000000; - border: 1px solid #608090; } -td.table-header table { color: #000000; } -td.table-header table a:link { color: #0000ff; } -td.table-header table a:visited { color: #204080; } -span.table-header { font-size: 120%; font-weight: bold; } -th.group-header { background: #c0e0f8; color: #000000; - text-align: left; font-style: italic; - font-size: 115%; - border: 1px solid #608090; } - -/* Summary Tables (functions, variables, etc) - * - Each object is described by a single row of the table with - * two cells. The left cell gives the object's type, and is - * marked with 'code.summary-type'. The right cell gives the - * object's name and a summary description. - * - CSS styles for the table's header and group headers are - * defined above, under 'Table Headers' - */ -table.summary { border-collapse: collapse; - background: #e8f0f8; color: #000000; - border: 1px solid #608090; - margin-bottom: 0.5em; } -td.summary { border: 1px solid #608090; } -code.summary-type { font-size: 85%; } -table.summary a:link { color: #0000ff; } -table.summary a:visited { color: #204080; } - - -/* Details Tables (functions, variables, etc) - * - Each object is described in its own div. - * - A single-row summary table w/ table-header is used as - * a header for each details section (CSS style for table-header - * is defined above, under 'Table Headers'). - */ -table.details { border-collapse: collapse; - background: #e8f0f8; color: #000000; - border: 1px solid #608090; - margin: .2em 0 0 0; } -table.details table { color: #000000; } -table.details a:link { color: #0000ff; } -table.details a:visited { color: #204080; } - -/* Fields */ -dl.fields { margin-left: 2em; margin-top: 1em; - margin-bottom: 1em; } -dl.fields dd ul { margin-left: 0em; padding-left: 0em; } -dl.fields dd ul li ul { margin-left: 2em; padding-left: 0em; } -div.fields { margin-left: 2em; } -div.fields p { margin-bottom: 0.5em; } - -/* Index tables (identifier index, term index, etc) - * - link-index is used for indices containing lists of links - * (namely, the identifier index & term index). - * - index-where is used in link indices for the text indicating - * the container/source for each link. - * - metadata-index is used for indices containing metadata - * extracted from fields (namely, the bug index & todo index). - */ -table.link-index { border-collapse: collapse; - background: #e8f0f8; color: #000000; - border: 1px solid #608090; } -td.link-index { border-width: 0px; } -table.link-index a:link { color: #0000ff; } -table.link-index a:visited { color: #204080; } -span.index-where { font-size: 70%; } -table.metadata-index { border-collapse: collapse; - background: #e8f0f8; color: #000000; - border: 1px solid #608090; - margin: .2em 0 0 0; } -td.metadata-index { border-width: 1px; border-style: solid; } -table.metadata-index a:link { color: #0000ff; } -table.metadata-index a:visited { color: #204080; } - -/* Function signatures - * - sig* is used for the signature in the details section. - * - .summary-sig* is used for the signature in the summary - * table, and when listing property accessor functions. - * */ -.sig-name { color: #006080; } -.sig-arg { color: #008060; } -.sig-default { color: #602000; } -.summary-sig { font-family: monospace; } -.summary-sig-name { color: #006080; font-weight: bold; } -table.summary a.summary-sig-name:link - { color: #006080; font-weight: bold; } -table.summary a.summary-sig-name:visited - { color: #006080; font-weight: bold; } -.summary-sig-arg { color: #006040; } -.summary-sig-default { color: #501800; } - -/* Subclass list - */ -ul.subclass-list { display: inline; } -ul.subclass-list li { display: inline; } - -/* To render variables, classes etc. like functions */ -table.summary .summary-name { color: #006080; font-weight: bold; - font-family: monospace; } -table.summary - a.summary-name:link { color: #006080; font-weight: bold; - font-family: monospace; } -table.summary - a.summary-name:visited { color: #006080; font-weight: bold; - font-family: monospace; } - -/* Variable values - * - In the 'variable details' sections, each varaible's value is - * listed in a 'pre.variable' box. The width of this box is - * restricted to 80 chars; if the value's repr is longer than - * this it will be wrapped, using a backslash marked with - * class 'variable-linewrap'. If the value's repr is longer - * than 3 lines, the rest will be ellided; and an ellipsis - * marker ('...' marked with 'variable-ellipsis') will be used. - * - If the value is a string, its quote marks will be marked - * with 'variable-quote'. - * - If the variable is a regexp, it is syntax-highlighted using - * the re* CSS classes. - */ -pre.variable { padding: .5em; margin: 0; - background: #dce4ec; color: #000000; - border: 1px solid #708890; } -.variable-linewrap { color: #604000; font-weight: bold; } -.variable-ellipsis { color: #604000; font-weight: bold; } -.variable-quote { color: #604000; font-weight: bold; } -.variable-group { color: #008000; font-weight: bold; } -.variable-op { color: #604000; font-weight: bold; } -.variable-string { color: #006030; } -.variable-unknown { color: #a00000; font-weight: bold; } -.re { color: #000000; } -.re-char { color: #006030; } -.re-op { color: #600000; } -.re-group { color: #003060; } -.re-ref { color: #404040; } - -/* Base tree - * - Used by class pages to display the base class hierarchy. - */ -pre.base-tree { font-size: 80%; margin: 0; } - -/* Frames-based table of contents headers - * - Consists of two frames: one for selecting modules; and - * the other listing the contents of the selected module. - * - h1.toc is used for each frame's heading - * - h2.toc is used for subheadings within each frame. - */ -h1.toc { text-align: center; font-size: 105%; - margin: 0; font-weight: bold; - padding: 0; } -h2.toc { font-size: 100%; font-weight: bold; - margin: 0.5em 0 0 -0.3em; } - -/* Syntax Highlighting for Source Code - * - doctest examples are displayed in a 'pre.py-doctest' block. - * If the example is in a details table entry, then it will use - * the colors specified by the 'table pre.py-doctest' line. - * - Source code listings are displayed in a 'pre.py-src' block. - * Each line is marked with 'span.py-line' (used to draw a line - * down the left margin, separating the code from the line - * numbers). Line numbers are displayed with 'span.py-lineno'. - * The expand/collapse block toggle button is displayed with - * 'a.py-toggle' (Note: the CSS style for 'a.py-toggle' should not - * modify the font size of the text.) - * - If a source code page is opened with an anchor, then the - * corresponding code block will be highlighted. The code - * block's header is highlighted with 'py-highlight-hdr'; and - * the code block's body is highlighted with 'py-highlight'. - * - The remaining py-* classes are used to perform syntax - * highlighting (py-string for string literals, py-name for names, - * etc.) - */ -pre.py-doctest { padding: .5em; margin: 1em; - background: #e8f0f8; color: #000000; - border: 1px solid #708890; } -table pre.py-doctest { background: #dce4ec; - color: #000000; } -pre.py-src { border: 2px solid #000000; - background: #f0f0f0; color: #000000; } -.py-line { border-left: 2px solid #000000; - margin-left: .2em; padding-left: .4em; } -.py-lineno { font-style: italic; font-size: 90%; - padding-left: .5em; } -a.py-toggle { text-decoration: none; } -div.py-highlight-hdr { border-top: 2px solid #000000; - border-bottom: 2px solid #000000; - background: #d8e8e8; } -div.py-highlight { border-bottom: 2px solid #000000; - background: #d0e0e0; } -.py-prompt { color: #005050; font-weight: bold;} -.py-more { color: #005050; font-weight: bold;} -.py-string { color: #006030; } -.py-comment { color: #003060; } -.py-keyword { color: #600000; } -.py-output { color: #404040; } -.py-name { color: #000050; } -.py-name:link { color: #000050 !important; } -.py-name:visited { color: #000050 !important; } -.py-number { color: #005000; } -.py-defname { color: #000060; font-weight: bold; } -.py-def-name { color: #000060; font-weight: bold; } -.py-base-class { color: #000060; } -.py-param { color: #000060; } -.py-docstring { color: #006030; } -.py-decorator { color: #804020; } -/* Use this if you don't want links to names underlined: */ -/*a.py-name { text-decoration: none; }*/ - -/* Graphs & Diagrams - * - These CSS styles are used for graphs & diagrams generated using - * Graphviz dot. 'img.graph-without-title' is used for bare - * diagrams (to remove the border created by making the image - * clickable). - */ -img.graph-without-title { border: none; } -img.graph-with-title { border: 1px solid #000000; } -span.graph-title { font-weight: bold; } -span.graph-caption { } - -/* General-purpose classes - * - 'p.indent-wrapped-lines' defines a paragraph whose first line - * is not indented, but whose subsequent lines are. - * - The 'nomargin-top' class is used to remove the top margin (e.g. - * from lists). The 'nomargin' class is used to remove both the - * top and bottom margin (but not the left or right margin -- - * for lists, that would cause the bullets to disappear.) - */ -p.indent-wrapped-lines { padding: 0 0 0 7em; text-indent: -7em; - margin: 0; } -.nomargin-top { margin-top: 0; } -.nomargin { margin-top: 0; margin-bottom: 0; } - -/* HTML Log */ -div.log-block { padding: 0; margin: .5em 0 .5em 0; - background: #e8f0f8; color: #000000; - border: 1px solid #000000; } -div.log-error { padding: .1em .3em .1em .3em; margin: 4px; - background: #ffb0b0; color: #000000; - border: 1px solid #000000; } -div.log-warning { padding: .1em .3em .1em .3em; margin: 4px; - background: #ffffb0; color: #000000; - border: 1px solid #000000; } -div.log-info { padding: .1em .3em .1em .3em; margin: 4px; - background: #b0ffb0; color: #000000; - border: 1px solid #000000; } -h2.log-hdr { background: #70b0ff; color: #000000; - margin: 0; padding: 0em 0.5em 0em 0.5em; - border-bottom: 1px solid #000000; font-size: 110%; } -p.log { font-weight: bold; margin: .5em 0 .5em 0; } -tr.opt-changed { color: #000000; font-weight: bold; } -tr.opt-default { color: #606060; } -pre.log { margin: 0; padding: 0; padding-left: 1em; } diff --git a/docs/epydoc.js b/docs/epydoc.js deleted file mode 100644 index e787dbc..0000000 --- a/docs/epydoc.js +++ /dev/null @@ -1,293 +0,0 @@ -function toggle_private() { - // Search for any private/public links on this page. Store - // their old text in "cmd," so we will know what action to - // take; and change their text to the opposite action. - var cmd = "?"; - var elts = document.getElementsByTagName("a"); - for(var i=0; i...
"; - elt.innerHTML = s; - } -} - -function toggle(id) { - elt = document.getElementById(id+"-toggle"); - if (elt.innerHTML == "-") - collapse(id); - else - expand(id); - return false; -} - -function highlight(id) { - var elt = document.getElementById(id+"-def"); - if (elt) elt.className = "py-highlight-hdr"; - var elt = document.getElementById(id+"-expanded"); - if (elt) elt.className = "py-highlight"; - var elt = document.getElementById(id+"-collapsed"); - if (elt) elt.className = "py-highlight"; -} - -function num_lines(s) { - var n = 1; - var pos = s.indexOf("\n"); - while ( pos > 0) { - n += 1; - pos = s.indexOf("\n", pos+1); - } - return n; -} - -// Collapse all blocks that mave more than `min_lines` lines. -function collapse_all(min_lines) { - var elts = document.getElementsByTagName("div"); - for (var i=0; i 0) - if (elt.id.substring(split, elt.id.length) == "-expanded") - if (num_lines(elt.innerHTML) > min_lines) - collapse(elt.id.substring(0, split)); - } -} - -function expandto(href) { - var start = href.indexOf("#")+1; - if (start != 0 && start != href.length) { - if (href.substring(start, href.length) != "-") { - collapse_all(4); - pos = href.indexOf(".", start); - while (pos != -1) { - var id = href.substring(start, pos); - expand(id); - pos = href.indexOf(".", pos+1); - } - var id = href.substring(start, href.length); - expand(id); - highlight(id); - } - } -} - -function kill_doclink(id) { - var parent = document.getElementById(id); - parent.removeChild(parent.childNodes.item(0)); -} -function auto_kill_doclink(ev) { - if (!ev) var ev = window.event; - if (!this.contains(ev.toElement)) { - var parent = document.getElementById(this.parentID); - parent.removeChild(parent.childNodes.item(0)); - } -} - -function doclink(id, name, targets_id) { - var elt = document.getElementById(id); - - // If we already opened the box, then destroy it. - // (This case should never occur, but leave it in just in case.) - if (elt.childNodes.length > 1) { - elt.removeChild(elt.childNodes.item(0)); - } - else { - // The outer box: relative + inline positioning. - var box1 = document.createElement("div"); - box1.style.position = "relative"; - box1.style.display = "inline"; - box1.style.top = 0; - box1.style.left = 0; - - // A shadow for fun - var shadow = document.createElement("div"); - shadow.style.position = "absolute"; - shadow.style.left = "-1.3em"; - shadow.style.top = "-1.3em"; - shadow.style.background = "#404040"; - - // The inner box: absolute positioning. - var box2 = document.createElement("div"); - box2.style.position = "relative"; - box2.style.border = "1px solid #a0a0a0"; - box2.style.left = "-.2em"; - box2.style.top = "-.2em"; - box2.style.background = "white"; - box2.style.padding = ".3em .4em .3em .4em"; - box2.style.fontStyle = "normal"; - box2.onmouseout=auto_kill_doclink; - box2.parentID = id; - - // Get the targets - var targets_elt = document.getElementById(targets_id); - var targets = targets_elt.getAttribute("targets"); - var links = ""; - target_list = targets.split(","); - for (var i=0; i" + - target[0] + ""; - } - - // Put it all together. - elt.insertBefore(box1, elt.childNodes.item(0)); - //box1.appendChild(box2); - box1.appendChild(shadow); - shadow.appendChild(box2); - box2.innerHTML = - "Which "+name+" do you want to see documentation for?" + - ""; - } - return false; -} - -function get_anchor() { - var href = location.href; - var start = href.indexOf("#")+1; - if ((start != 0) && (start != href.length)) - return href.substring(start, href.length); - } -function redirect_url(dottedName) { - // Scan through each element of the "pages" list, and check - // if "name" matches with any of them. - for (var i=0; i-m" or "-c"; - // extract the portion & compare it to dottedName. - var pagename = pages[i].substring(0, pages[i].length-2); - if (pagename == dottedName.substring(0,pagename.length)) { - - // We've found a page that matches `dottedName`; - // construct its URL, using leftover `dottedName` - // content to form an anchor. - var pagetype = pages[i].charAt(pages[i].length-1); - var url = pagename + ((pagetype=="m")?"-module.html": - "-class.html"); - if (dottedName.length > pagename.length) - url += "#" + dottedName.substring(pagename.length+1, - dottedName.length); - return url; - } - } - } diff --git a/docs/frames.html b/docs/frames.html deleted file mode 100644 index 72e25f4..0000000 --- a/docs/frames.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - API Documentation - - - - - - - - - diff --git a/docs/help.html b/docs/help.html deleted file mode 100644 index 27e21c3..0000000 --- a/docs/help.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - Help - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
- -

API Documentation

- -

This document contains the API (Application Programming Interface) -documentation for this project. Documentation for the Python -objects defined by the project is divided into separate pages for each -package, module, and class. The API documentation also includes two -pages containing information about the project as a whole: a trees -page, and an index page.

- -

Object Documentation

- -

Each Package Documentation page contains:

-
    -
  • A description of the package.
  • -
  • A list of the modules and sub-packages contained by the - package.
  • -
  • A summary of the classes defined by the package.
  • -
  • A summary of the functions defined by the package.
  • -
  • A summary of the variables defined by the package.
  • -
  • A detailed description of each function defined by the - package.
  • -
  • A detailed description of each variable defined by the - package.
  • -
- -

Each Module Documentation page contains:

-
    -
  • A description of the module.
  • -
  • A summary of the classes defined by the module.
  • -
  • A summary of the functions defined by the module.
  • -
  • A summary of the variables defined by the module.
  • -
  • A detailed description of each function defined by the - module.
  • -
  • A detailed description of each variable defined by the - module.
  • -
- -

Each Class Documentation page contains:

-
    -
  • A class inheritance diagram.
  • -
  • A list of known subclasses.
  • -
  • A description of the class.
  • -
  • A summary of the methods defined by the class.
  • -
  • A summary of the instance variables defined by the class.
  • -
  • A summary of the class (static) variables defined by the - class.
  • -
  • A detailed description of each method defined by the - class.
  • -
  • A detailed description of each instance variable defined by the - class.
  • -
  • A detailed description of each class (static) variable defined - by the class.
  • -
- -

Project Documentation

- -

The Trees page contains the module and class hierarchies:

-
    -
  • The module hierarchy lists every package and module, with - modules grouped into packages. At the top level, and within each - package, modules and sub-packages are listed alphabetically.
  • -
  • The class hierarchy lists every class, grouped by base - class. If a class has more than one base class, then it will be - listed under each base class. At the top level, and under each base - class, classes are listed alphabetically.
  • -
- -

The Index page contains indices of terms and - identifiers:

-
    -
  • The term index lists every term indexed by any object's - documentation. For each term, the index provides links to each - place where the term is indexed.
  • -
  • The identifier index lists the (short) name of every package, - module, class, method, function, variable, and parameter. For each - identifier, the index provides a short description, and a link to - its documentation.
  • -
- -

The Table of Contents

- -

The table of contents occupies the two frames on the left side of -the window. The upper-left frame displays the project -contents, and the lower-left frame displays the module -contents:

- - - - - - - - - -
- Project
Contents
...
- API
Documentation
Frame


-
- Module
Contents
 
...
  -

- -

The project contents frame contains a list of all packages -and modules that are defined by the project. Clicking on an entry -will display its contents in the module contents frame. Clicking on a -special entry, labeled "Everything," will display the contents of -the entire project.

- -

The module contents frame contains a list of every -submodule, class, type, exception, function, and variable defined by a -module or package. Clicking on an entry will display its -documentation in the API documentation frame. Clicking on the name of -the module, at the top of the frame, will display the documentation -for the module itself.

- -

The "frames" and "no frames" buttons below the top -navigation bar can be used to control whether the table of contents is -displayed or not.

- -

The Navigation Bar

- -

A navigation bar is located at the top and bottom of every page. -It indicates what type of page you are currently viewing, and allows -you to go to related pages. The following table describes the labels -on the navigation bar. Note that not some labels (such as -[Parent]) are not displayed on all pages.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
LabelHighlighted when...Links to...
[Parent](never highlighted) the parent of the current package
[Package]viewing a packagethe package containing the current object -
[Module]viewing a modulethe module containing the current object -
[Class]viewing a class the class containing the current object
[Trees]viewing the trees page the trees page
[Index]viewing the index page the index page
[Help]viewing the help page the help page
- -

The "show private" and "hide private" buttons below -the top navigation bar can be used to control whether documentation -for private objects is displayed. Private objects are usually defined -as objects whose (short) names begin with a single underscore, but do -not end with an underscore. For example, "_x", -"__pprint", and "epydoc.epytext._tokenize" -are private objects; but "re.sub", -"__init__", and "type_" are not. However, -if a module defines the "__all__" variable, then its -contents are used to decide which objects are private.

- -

A timestamp below the bottom navigation bar indicates when each -page was last updated.

- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/identifier-index.html b/docs/identifier-index.html deleted file mode 100644 index f1c8cc2..0000000 --- a/docs/identifier-index.html +++ /dev/null @@ -1,1082 +0,0 @@ - - - - - Identifier Index - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
- -
-

Identifier Index

-
-[ - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z - _ -] -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

A

- - - - - - - - - - - - - - - - - - - - - - -

C

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

D

- - - - - - - - - - - - -

E

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

F

- - - - - - - - -

G

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

H

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

I

- - - - - - - - -

J

- - - - - - - - -

K

- - - - - - - - - - - - - - - - - - - - - - -

L

- - - - - - - - - - - - - - - - - - - - - - -

M

- - - - - - - - - - - - - - - - - -

N

- - - - - - - - - - - - -

P

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

R

- - - - - - - - - - - - -

S

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

T

- - - - - - - - - - - - - - - - - -

W

- - - - - - - - -

X

- - - - - - - - -

_

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 72e25f4..0000000 --- a/docs/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - API Documentation - - - - - - - - - diff --git a/docs/linspector-module.html b/docs/linspector-module.html deleted file mode 100644 index 2dfd932..0000000 --- a/docs/linspector-module.html +++ /dev/null @@ -1,210 +0,0 @@ - - - - - linspector - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package linspector

source code

- - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector-pysrc.html b/docs/linspector-pysrc.html deleted file mode 100644 index 355e049..0000000 --- a/docs/linspector-pysrc.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - linspector - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package linspector

-
-1  from lib import * 
-2   
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib-module.html b/docs/linspector.lib-module.html deleted file mode 100644 index 2af1ec0..0000000 --- a/docs/linspector.lib-module.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - linspector.lib - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package lib

source code

- - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib-pysrc.html b/docs/linspector.lib-pysrc.html deleted file mode 100644 index c422caf..0000000 --- a/docs/linspector.lib-pysrc.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - linspector.lib - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package linspector.lib

-
-1  from config import * 
-2  from core import * 
-3  from tasks import * 
-4  from parsers import * 
-5  from processors import * 
-6  from services import * 
-7   
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config-module.html b/docs/linspector.lib.config-module.html deleted file mode 100644 index f9b4f51..0000000 --- a/docs/linspector.lib.config-module.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - linspector.lib.config - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package config

source code

- - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config-pysrc.html b/docs/linspector.lib.config-pysrc.html deleted file mode 100644 index 0af8d97..0000000 --- a/docs/linspector.lib.config-pysrc.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - linspector.lib.config - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package linspector.lib.config

-
-1   
-2   
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.config-module.html b/docs/linspector.lib.config.config-module.html deleted file mode 100644 index 6e4e243..0000000 --- a/docs/linspector.lib.config.config-module.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - linspector.lib.config.config - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module config - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module config

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Config -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.config' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.config-pysrc.html b/docs/linspector.lib.config.config-pysrc.html deleted file mode 100644 index d851d6b..0000000 --- a/docs/linspector.lib.config.config-pysrc.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - linspector.lib.config.config - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module config - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.config.config

-
- 1  import json 
- 2  from tasks import parseTaskList 
- 3  from members import parseMemberList 
- 4   
- 5  #from hostgroups import parseHostGroupList 
- 6  #from layouts import parseLayoutList 
- 7   
- 8   
-
9 -class Config: -
10 - def __init__(self, configFile, log): -
11 self.configfile = configFile -12 f = open(configFile) -13 self.config = f.read() -14 f.close() -15 -16 self.dict = json.loads(self.config) -17 -18 self.tasks = parseTaskList(self.dict['tasks']) -19 self.members = parseMemberList(self.dict['members'], self.tasks, log) -
20 #self.periods = parsePeriodList(self.dict['periods'], log) -21 #self.hostgroups = parseHostGroupList(self.dict['hostgroups'], -22 # self.members, -23 # self.periods, -24 # log) -25 -26 #self.layouts = LayoutList(self.dict['layouts'], self.hostgroups) -27 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.config.Config-class.html b/docs/linspector.lib.config.config.Config-class.html deleted file mode 100644 index 7fb74bb..0000000 --- a/docs/linspector.lib.config.config.Config-class.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - linspector.lib.config.config.Config - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module config :: - Class Config - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Config

source code

- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - configFile, - log) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hostgroups-module.html b/docs/linspector.lib.config.hostgroups-module.html deleted file mode 100644 index 47e0776..0000000 --- a/docs/linspector.lib.config.hostgroups-module.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - linspector.lib.config.hostgroups - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hostgroups - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module hostgroups

source code

- - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - HostGroupException -
-   - - HostGroupMissingArgumentException -
-   - - HostGroup -
-   - - HostGroupService -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
parseHostGroupList(hostgroups, - hosts, - members, - periods, - services, - log) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hostgroups-pysrc.html b/docs/linspector.lib.config.hostgroups-pysrc.html deleted file mode 100644 index f49425e..0000000 --- a/docs/linspector.lib.config.hostgroups-pysrc.html +++ /dev/null @@ -1,307 +0,0 @@ - - - - - linspector.lib.config.hostgroups - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hostgroups - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.config.hostgroups

-
-
1 -class HostGroupException(Exception): -
2 - def __init__(self, msg): -
3 self.msg = msg -
4 -
5 - def __str__(self): -
6 return repr(self.msg) -
7 - 8 -
9 -class HostGroupMissingArgumentException(HostGroupException): -
10 - def __init__(self, missingArgument, hostgroupName): -
11 super(HostGroupMissingArgumentException, self).__init__("no " + missingArgument + " defined for Hostgroup " + hostgroupName) -
12 - 13 -
14 -class HostGroup: -
15 - def __init__(self, name, **kwargs): -
16 self.name = name - 17 tmp = "members" - 18 self.members = [] - 19 if not tmp in kwargs: - 20 raise HostGroupMissingArgumentException(tmp, name) - 21 self.add_members(kwargs[tmp]) - 22 - 23 tmp = "hosts" - 24 self.hosts = [] - 25 if not tmp in kwargs: - 26 raise HostGroupMissingArgumentException(tmp, name) - 27 self.add_hosts(kwargs[tmp]) - 28 - 29 tmp = "services" - 30 self.services = [] - 31 if not tmp in kwargs: - 32 raise HostGroupMissingArgumentException(tmp, name) - 33 self.add_services(kwargs[tmp]) - 34 - 35 self.parents = [] - 36 tmp = "parents" - 37 if tmp in kwargs: - 38 self.add_parents(kwargs[tmp]) - 39 - 40 tmp = "processors" - 41 self.processors = [] - 42 if tmp in kwargs: - 43 self.add_processors(kwargs[tmp]) -
44 -
45 - def _to_config_dict(self, configDict): -
46 me = {} - 47 me["members"] = [member.nameid for member in self.get_members()] - 48 me["hosts"] = self.hosts - 49 me["parents"] = [hg.get_name() for hg in self.get_parents()] - 50 #TODO implement delegation - 51 #me["services"] = [service._to_config_dict(configDict) for service in self.get_services()] - 52 #me["processors"] = [processor._to_config_dict(configDict) for processor in self.get_processors()] - 53 configDict["hostgroups"][self.get_name()] = me -
54 -
55 - def __add_internal(self, l, item): -
56 if isinstance(item, list): - 57 l.extend(item) - 58 else: - 59 l.append(item) -
60 -
61 - def add_members(self, member): -
62 self.__add_internal(self.get_members(), member) -
63 -
64 - def add_hosts(self, host): -
65 self.__add_internal(self.get_hosts(), host) -
66 -
67 - def add_processors(self, processor): -
69 -
70 - def add_parents(self, parent): -
71 self.__add_internal(self.get_parents(), parent) -
72 -
73 - def add_services(self, services): -
75 -
76 - def get_parents(self): -
77 return self.parents -
78 -
79 - def get_processors(self): -
80 return self.processors -
81 -
82 - def get_services(self): -
83 return self.services -
84 -
85 - def get_hosts(self): -
86 return self.hosts -
87 -
88 - def get_name(self): -
89 return self.name -
90 -
91 - def get_members(self): -
92 return self.members -
93 -
94 - def __str__(self): -
95 ret = "HostGroup: " + self.name + " threshold: " + str(self.threshold) + " parent: " + self.parent + "\n" - 96 ret += "members: {\n" - 97 for itm in self.members: - 98 ret += str(itm) + "\n" - 99 ret += "}\n" -100 ret += "hosts: {\n" -101 for itm in self.hosts: -102 ret += str(itm) + "\n" -103 ret += "}\n" -104 ret += "services: {\n" -105 for itm in self.services: -106 ret += str(itm) + "\n" -107 ret += "}\n" -108 return ret -
109 -110 -
111 -class HostGroupService: -
112 - def __init__(self, services, periods): -
113 self.services = services -114 self.periods = periods -
115 -
116 - def __str__(self): -
117 return "HostgroupService { " + str([str(s) for s in self.services]) + ", " + str([p.name for p in self.periods]) + "}" -
118 -119 -
120 -def parseHostGroupList(hostgroups, hosts, members, periods, services, log): -
121 parsedHostGroups = [] -122 for hgname, hgValues in hostgroups.items(): -123 hostGroup = HostGroup(hgname) -124 hostGroup.members = [m for m in members if m.nameid in hgValues['members']] -125 hostGroup.hosts = [h for h in hosts if h.name in hgValues['hosts']] -126 hostGroup.threshold = hgValues['threshold'] -127 if 'parent' in hgValues: -128 hostGroup.parent = hgValues['parent'] -129 hostGroup.services = [] -130 for serviceName, servicePeriods in hgValues['services'].items(): -131 services = [] -132 for host in hosts: -133 service = host.getHostServiceByName(serviceName) -134 if service is not None: -135 services.append(service) -136 else: -137 log.w("could not find HostService(" + str(serviceName) + ") for host " + host.name) -138 hostGroupPeriods = [p for p in periods if p.name in servicePeriods] -139 hostGroup.services.append(HostGroupService(services, hostGroupPeriods)) -140 parsedHostGroups.append(hostGroup) -141 return parsedHostGroups -
142 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hostgroups.HostGroup-class.html b/docs/linspector.lib.config.hostgroups.HostGroup-class.html deleted file mode 100644 index 93ad02a..0000000 --- a/docs/linspector.lib.config.hostgroups.HostGroup-class.html +++ /dev/null @@ -1,375 +0,0 @@ - - - - - linspector.lib.config.hostgroups.HostGroup - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hostgroups :: - Class HostGroup - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HostGroup

source code

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name, - **kwargs) - source code - -
- -
-   - - - - - - -
_to_config_dict(self, - configDict) - source code - -
- -
-   - - - - - - -
__add_internal(self, - l, - item) - source code - -
- -
-   - - - - - - -
add_members(self, - member) - source code - -
- -
-   - - - - - - -
add_hosts(self, - host) - source code - -
- -
-   - - - - - - -
add_processors(self, - processor) - source code - -
- -
-   - - - - - - -
add_parents(self, - parent) - source code - -
- -
-   - - - - - - -
add_services(self, - services) - source code - -
- -
-   - - - - - - -
get_parents(self) - source code - -
- -
-   - - - - - - -
get_processors(self) - source code - -
- -
-   - - - - - - -
get_services(self) - source code - -
- -
-   - - - - - - -
get_hosts(self) - source code - -
- -
-   - - - - - - -
get_name(self) - source code - -
- -
-   - - - - - - -
get_members(self) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hostgroups.HostGroupException-class.html b/docs/linspector.lib.config.hostgroups.HostGroupException-class.html deleted file mode 100644 index 8583bc5..0000000 --- a/docs/linspector.lib.config.hostgroups.HostGroupException-class.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - linspector.lib.config.hostgroups.HostGroupException - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hostgroups :: - Class HostGroupException - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HostGroupException

source code

-
-              object --+        
-                       |        
-exceptions.BaseException --+    
-                           |    
-        exceptions.Exception --+
-                               |
-                              HostGroupException
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - msg)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__str__(self)
- str(x)
- source code - -
- -
-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - msg) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__str__(self) -
(Informal representation operator) -

-
source code  -
- -

str(x)

-
-
Overrides: - object.__str__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hostgroups.HostGroupMissingArgumentException-class.html b/docs/linspector.lib.config.hostgroups.HostGroupMissingArgumentException-class.html deleted file mode 100644 index 8fbe4a7..0000000 --- a/docs/linspector.lib.config.hostgroups.HostGroupMissingArgumentException-class.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - linspector.lib.config.hostgroups.HostGroupMissingArgumentException - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hostgroups :: - Class HostGroupMissingArgumentException - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HostGroupMissingArgumentException

source code

-
-              object --+            
-                       |            
-exceptions.BaseException --+        
-                           |        
-        exceptions.Exception --+    
-                               |    
-              HostGroupException --+
-                                   |
-                                  HostGroupMissingArgumentException
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - missingArgument, - hostgroupName)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-

Inherited from HostGroupException: - __str__ -

-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - missingArgument, - hostgroupName) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hostgroups.HostGroupService-class.html b/docs/linspector.lib.config.hostgroups.HostGroupService-class.html deleted file mode 100644 index ec37451..0000000 --- a/docs/linspector.lib.config.hostgroups.HostGroupService-class.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - linspector.lib.config.hostgroups.HostGroupService - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hostgroups :: - Class HostGroupService - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HostGroupService

source code

- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - services, - periods) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hosts-module.html b/docs/linspector.lib.config.hosts-module.html deleted file mode 100644 index 818ab8e..0000000 --- a/docs/linspector.lib.config.hosts-module.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - linspector.lib.config.hosts - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hosts - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module hosts

source code

- - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Host -
-   - - HostService -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
parseHostList(hosts, - services, - log)
- parse the HostList and replace any command as necessary
- source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.config' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hosts-pysrc.html b/docs/linspector.lib.config.hosts-pysrc.html deleted file mode 100644 index df23733..0000000 --- a/docs/linspector.lib.config.hosts-pysrc.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - linspector.lib.config.hosts - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hosts - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.config.hosts

-
-  1  import re 
-  2   
-  3   
-
4 -class Host: -
5 - def __init__(self, name="", host="", parent="", services=None, comment=""): -
6 self.name = name - 7 self.host = host - 8 self.parent = parent - 9 self.services = services - 10 self.comment = comment -
11 -
12 - def getHostServiceByName(self, serviceName): -
13 for hostService in self.services: - 14 if serviceName == hostService.service.name: - 15 return hostService - 16 return None -
17 -
18 - def __str__(self): -
19 ret = "Host('Name: " + self.name + "', 'Access: " + self.host + "', " - 20 if self.parent != "": - 21 ret += "'Parent: " + self.parent + "', " - 22 ret += "'HostServices: {" - 23 for s in self.services: - 24 ret += str(s) + "\n" - 25 ret += "}" - 26 return ret -
27 - 28 -
29 -class HostService: -
30 - def __init__(self, service, warning="", critical=""): -
31 self.service = service - 32 self.warning = warning - 33 self.critical = critical -
34 -
35 - def setCommand(self, command): -
36 self.service.command = command -
37 -
38 - def getCommand(self): -
39 return self.service.command -
40 -
41 - def __str__(self): -
42 - 43 ret = "HostService : " + str(self.service) - 44 if self.warning: - 45 ret += "warning: " + str(self.warning) - 46 if self.critical: - 47 ret += "critical: " + str(self.critical) - 48 return ret -
49 - 50 -
51 -def parseHostList(hosts, services, log): -
52 """ - 53 parse the HostList and replace any command as necessary - 54 """ - 55 #precompiled regexPattern which finds replacements in service strings - 56 pattern = re.compile("@(\w+)") - 57 #get a List of Host Objects and leave services unparsed for this moment - 58 parsedHosts = [Host(name, **values) for name, values in hosts.items()] - 59 #predefined dict to cache service replacements by name - 60 serviceReplacements = {} - 61 for host in parsedHosts: - 62 #list to store HostService Objects - 63 hostServices = [] - 64 #lets start to parse the Service Dict. - 65 for servicename, serviceParams in host.services.items(): - 66 #bool to check if the service is defined. - 67 found = False - 68 #to a real iteration. just pick the right service - 69 for service in services: - 70 if service.name != servicename: - 71 continue - 72 #indicate we found a service - 73 found = True - 74 #check to see if we already regexed our service command - 75 if service.name not in serviceReplacements: - 76 serviceReplacements[service.name] = pattern.findall(service.command) - 77 for params in serviceParams: - 78 #copy replacements from service command - 79 replacements = serviceReplacements[service.name][:] - 80 #for every Host.service.parameter we need a new HostService Object - 81 hostService = HostService(service.clone()) - 82 #check if the ServiceParameter contain warnings or critical values - 83 if 'warning' in params: - 84 hostService.warning = params['warning'] - 85 del params['warning'] - 86 if 'critical' in params: - 87 hostService.critical = params['critical'] - 88 del params['critical'] - 89 #any remainig parm should be a replacement - 90 for parm in params: - 91 if parm not in replacements: - 92 log.w("undefined parameter: " + parm + " in host " + host.name + " from service " + service.name) - 93 continue - 94 #replace our ServiceCommand with the parameter_value (search, replacement, string) - 95 hostService.setCommand(re.sub('@' + parm, params[parm], hostService.getCommand())) - 96 replacements.remove(parm) - 97 #host will not be inside ServiceParameters, so check this also - 98 if 'host' in replacements: - 99 log.d("replacing host in " + hostService.getCommand()) -100 comm = re.sub('@host', host.host, hostService.getCommand()) -101 hostService.setCommand(comm) -102 log.d("new Command: " +comm) -103 log.d("set in hostService: " + str(hostService)) -104 replacements.remove('host') -105 #replacements should be empty now. -106 #If not we cannot use this command as some values are missing -107 if len(replacements) > 0: -108 log.w("Hostservice " + servicename + " from host " + host.name + " is ignored because of missing replacements: " + str( -109 replacements)) -110 else: -111 #anything ok! add to our valid hostServices -112 hostServices.append(hostService) -113 #we could't find the service defined in this host. Service ignored! -114 if not found: -115 log.w("Service " + servicename + " not defined in host " + host.name) -116 #replace host.service member by parsed HostService Objects -117 host.services = hostServices -118 return parsedHosts -
119 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hosts.Host-class.html b/docs/linspector.lib.config.hosts.Host-class.html deleted file mode 100644 index ac01237..0000000 --- a/docs/linspector.lib.config.hosts.Host-class.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - linspector.lib.config.hosts.Host - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hosts :: - Class Host - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Host

source code

- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name='', - host='', - parent='', - services=None, - comment='') - source code - -
- -
-   - - - - - - -
getHostServiceByName(self, - serviceName) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.hosts.HostService-class.html b/docs/linspector.lib.config.hosts.HostService-class.html deleted file mode 100644 index cf5ca1a..0000000 --- a/docs/linspector.lib.config.hosts.HostService-class.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - linspector.lib.config.hosts.HostService - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module hosts :: - Class HostService - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HostService

source code

- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - service, - warning='', - critical='') - source code - -
- -
-   - - - - - - -
setCommand(self, - command) - source code - -
- -
-   - - - - - - -
getCommand(self) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.layouts-module.html b/docs/linspector.lib.config.layouts-module.html deleted file mode 100644 index c3e4568..0000000 --- a/docs/linspector.lib.config.layouts-module.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - linspector.lib.config.layouts - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module layouts - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module layouts

source code

- - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - LayoutException -
-   - - Layout -
-   - - LayoutList -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.layouts-pysrc.html b/docs/linspector.lib.config.layouts-pysrc.html deleted file mode 100644 index f4ddee4..0000000 --- a/docs/linspector.lib.config.layouts-pysrc.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - linspector.lib.config.layouts - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module layouts - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.config.layouts

-
-
1 -class LayoutException(Exception): -
2 - def __init__(self, msg): -
3 self.msg = msg -
4 -
5 - def __str__(self): -
6 return repr(self.msg) -
7 - 8 -
9 -class Layout: -
10 - def __init__(self, name, enabled=False, hostgroups=None): -
11 self._name = name -12 self._enabled = enabled -13 -14 if hostgroups is None or len(hostgroups) <= 0: -15 raise LayoutException("Layout: " + self._name + " without hostgroups is useless") -16 else: -17 self._hostgroups = hostgroups -
18 -
19 - def _to_config_dict(self, configDict): -
20 me = {} -21 me["hostgroups"] = [hg.name for hg in self.get_hostgroups()] -22 me["enabled"] = self.is_enabled() -23 configDict["layouts"][self.get_name()] = me -24 for hostgroup in self.get_hostgroups(): -25 hostgroup._to_config_dict(configDict) -
26 -
27 - def get_name(self): -
28 return self._name -
29 -
30 - def is_enabled(self): -
31 return self._enabled -
32 -
33 - def get_hostgroups(self): -
34 return self._hostgroups -
35 -
36 - def __str__(self): -
37 ret = "Layout: 'Name:" + str(self.name) + "', 'Enabled: " + str(self.enabled) + " " -38 for group in self.hostgroups: -39 ret += str(group) -40 return ret -
41 -42 -
43 -class LayoutList: -
44 - def __init__(self, layouts, hostgroups): -
45 self.layouts = [] -46 self.dict = layouts -47 self.plugins = [] -48 for k, v in layouts.items(): -49 if k in ("plugins", "Plugins"): -50 self.plugins = v -51 continue -52 else: -53 l = Layout(k) -54 for k1, v1 in v.items(): -55 if k1 in ("enabled", "Enabled"): -56 l.enabled = v1 -57 elif k1 in ("hostgroups", "Hostgroups"): -58 l.hostgroups = [] -59 for group in v1: -60 h = None -61 for hostg in hostgroups: -62 if hostg.name == group: -63 h = hostg -64 break -65 if h is not None: -66 l.hostgroups.append(h) -67 else: -68 # TODO: replace next line with new logging -69 #logger.logWarningConfig(file="hostgroups", missing=group) -70 pass -71 self.layouts.append(l) -
72 -
73 - def __str__(self): -
74 ret = "" -75 ret += "Plugins: " + str(self.plugins) + "\n" -76 for layout in self.layouts: -77 ret += str(layout) + "\n" -78 return ret -
79 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.layouts.Layout-class.html b/docs/linspector.lib.config.layouts.Layout-class.html deleted file mode 100644 index 7db1b93..0000000 --- a/docs/linspector.lib.config.layouts.Layout-class.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - linspector.lib.config.layouts.Layout - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module layouts :: - Class Layout - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Layout

source code

- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name, - enabled=False, - hostgroups=None) - source code - -
- -
-   - - - - - - -
_to_config_dict(self, - configDict) - source code - -
- -
-   - - - - - - -
get_name(self) - source code - -
- -
-   - - - - - - -
is_enabled(self) - source code - -
- -
-   - - - - - - -
get_hostgroups(self) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.layouts.LayoutException-class.html b/docs/linspector.lib.config.layouts.LayoutException-class.html deleted file mode 100644 index a7019c7..0000000 --- a/docs/linspector.lib.config.layouts.LayoutException-class.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - linspector.lib.config.layouts.LayoutException - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module layouts :: - Class LayoutException - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LayoutException

source code

-
-              object --+        
-                       |        
-exceptions.BaseException --+    
-                           |    
-        exceptions.Exception --+
-                               |
-                              LayoutException
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - msg)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__str__(self)
- str(x)
- source code - -
- -
-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - msg) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__str__(self) -
(Informal representation operator) -

-
source code  -
- -

str(x)

-
-
Overrides: - object.__str__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.layouts.LayoutList-class.html b/docs/linspector.lib.config.layouts.LayoutList-class.html deleted file mode 100644 index 0fcefa2..0000000 --- a/docs/linspector.lib.config.layouts.LayoutList-class.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - linspector.lib.config.layouts.LayoutList - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module layouts :: - Class LayoutList - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LayoutList

source code

- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - layouts, - hostgroups) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.members-module.html b/docs/linspector.lib.config.members-module.html deleted file mode 100644 index b882aef..0000000 --- a/docs/linspector.lib.config.members-module.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - - linspector.lib.config.members - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module members - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module members

source code

- - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Member -
-   - - MemberFilter -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
parseMemberList(members, - filters, - log) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.config' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.members-pysrc.html b/docs/linspector.lib.config.members-pysrc.html deleted file mode 100644 index c80ae3a..0000000 --- a/docs/linspector.lib.config.members-pysrc.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - linspector.lib.config.members - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module members - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.config.members

-
- 1  import re 
- 2   
- 3   
-
4 -class Member: -
5 - def __init__(self, nameid, name="", phone="", comment="", parent="", tasks=None): -
6 self.id = id - 7 self.name = name - 8 self.phone = phone - 9 self.tasks = [] -10 self.add_task(tasks) -11 self.comment = comment -12 self.parent = parent -
13 -
14 - def add_task(self, task): -
15 if task is None: -16 return -17 if isinstance(task, list): -18 self.tasks.extend(task) -19 else: -20 self.tasks.append(task) -
21 -
22 - def get_tasks(self): -
23 return self.tasks -
24 -
25 - def __str__(self): -
26 ret = "Member Id: " + self.nameid + " Name: " + self.name + " Filters: " + str(self.phone) -27 for f in self.filters: -28 ret += str(f) -29 return ret -
30 -31 -
32 -class MemberFilter: -
33 - def __init__(self, filter, Value): -
34 self.filter = filter -35 self.value = Value -
36 -
37 - def __str__(self): -
38 return "Filter:" + str(self.filter) + " Value:" + self.value -
39 -40 -
41 -def parseMemberList(members, filters, log): -
42 parsedMembers = [Member(nameid, **values) for nameid, values in members.items()] -43 for member in parsedMembers: -44 mFilter = [] -45 for filtername, replacement in member.filters.items(): -46 found = False -47 for filt in filters: -48 if filt.name != filtername: -49 continue -50 found = True -51 memberFilter = filt.clone() -52 memberFilter.command = re.sub('@member', replacement, filt.command) -53 mFilter.append(memberFilter) -54 if not found: -55 log.w("filter: " + filtername + " is not defined in member " + member.name) -56 member.filters = mFilter -57 return parsedMembers -
58 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.members.Member-class.html b/docs/linspector.lib.config.members.Member-class.html deleted file mode 100644 index a8c0265..0000000 --- a/docs/linspector.lib.config.members.Member-class.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - - linspector.lib.config.members.Member - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module members :: - Class Member - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Member

source code

- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - nameid, - name='', - phone='', - comment='', - parent='', - tasks=None) - source code - -
- -
-   - - - - - - -
add_task(self, - task) - source code - -
- -
-   - - - - - - -
get_tasks(self) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.members.MemberFilter-class.html b/docs/linspector.lib.config.members.MemberFilter-class.html deleted file mode 100644 index 2261b88..0000000 --- a/docs/linspector.lib.config.members.MemberFilter-class.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - linspector.lib.config.members.MemberFilter - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module members :: - Class MemberFilter - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class MemberFilter

source code

- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - filter, - Value) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.parser-module.html b/docs/linspector.lib.config.parser-module.html deleted file mode 100644 index 9c0857a..0000000 --- a/docs/linspector.lib.config.parser-module.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - linspector.lib.config.parser - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module parser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module parser

source code

- - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ConfigurationException -
-   - - ConfigParser -
-   - - FullConfigParser -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
parsePeriodList(name, - values) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - MOD_SERVICES = 'services' -
-   - - MOD_PROCESSORS = 'processors' -
-   - - MOD_PARSERS = 'parsers' -
-   - - MOD_TASKS = 'tasks' -
-   - - KEY_LAYOUTS = 'layouts' -
-   - - KEY_HOSTGROUPS = 'hostgroups' -
-   - - KEY_MEMBERS = 'members' -
-   - - KEY_PERIODS = 'periods' -
-   - - KEY_CORE = 'core' -
-   - - __package__ = 'linspector.lib.config' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.parser-pysrc.html b/docs/linspector.lib.config.parser-pysrc.html deleted file mode 100644 index cd87520..0000000 --- a/docs/linspector.lib.config.parser-pysrc.html +++ /dev/null @@ -1,412 +0,0 @@ - - - - - linspector.lib.config.parser - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module parser - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.config.parser

-
-  1  from os.path import isfile 
-  2  from os.path import join 
-  3  from os import getcwd 
-  4  import json 
-  5  import sys 
-  6  import imp 
-  7  from layouts import Layout 
-  8  from hostgroups import HostGroup 
-  9  from members import Member 
- 10  from periods import CronPeriod, DatePeriod, IntervalPeriod 
- 11   
- 12  from lib.services.service import Service 
- 13  #print id(Service) 
- 14  from lib.processors.processor import Processor 
- 15  from lib.parsers.parser import Parser 
- 16  from lib.tasks.task import  Task 
- 17   
- 18  MOD_SERVICES     = "services" 
- 19  MOD_PROCESSORS   = "processors" 
- 20  MOD_PARSERS      = "parsers" 
- 21  MOD_TASKS        = "tasks" 
- 22   
- 23  KEY_LAYOUTS      = "layouts" 
- 24  KEY_HOSTGROUPS   = "hostgroups" 
- 25  KEY_MEMBERS      = "members" 
- 26  KEY_PERIODS      = "periods" 
- 27  KEY_CORE         = "core" 
- 28   
- 29   
-
30 -class ConfigurationException(Exception): -
31 - def __init__(self, msg, log): -
32 log.e(msg) - 33 self.msg = msg -
34 -
35 - def __str__(self): -
36 return repr(self.msg) -
37 - 38 -
39 -class ConfigParser: -
40 - def __init__(self, log): -
41 """ - 42 initializes a new ConfigParser Object - 43 - 44 :param log: pre configured logger Object to post messages while parsing" - 45 """ - 46 self.log = log - 47 self.hostgroups = {} - 48 self.members = {} - 49 self.periods = {} - 50 self.layouts = {} - 51 self._loadedMods = {MOD_SERVICES: {}, MOD_PROCESSORS: {}, MOD_TASKS: {}, MOD_PARSERS: {}} -
52 -
53 - def _create_new_config_dict(self): -
54 return {"members": {}, "periods": {}, "hostgroups": {}, "layouts": {}, "core": {}} -
55 -
56 - def create_config(self, config): -
57 configDict = self._create_new_config_dict() - 58 for layout in config.get_layouts(): - 59 layout._to_config_dict(configDict) -
60 -
61 - def _read_json_config(self, configFilename): -
62 """ - 63 reads the config File and returns a dictionary, while lowering the first keys - 64 - 65 :param configFilename: the path under which the configuration file should be found - 66 """ - 67 if not isfile(configFilename): - 68 msg = "config file not found at " + str(configFilename) - 69 raise ConfigurationException(msg, self.log) - 70 - 71 self.configFilename = configFilename - 72 - 73 with open(configFilename) as cfgFile: - 74 config = cfgFile.read() - 75 - 76 self.log.i("reading Config: " + configFilename) - 77 return json.loads(config) -
78 -
79 - def _create_raw_Object(self, jsonDict, msgName, creator): -
80 """ - 81 creates an Main object from the configuration, but just parses raw data and hands it to the object - 82 - 83 :param jsonDict: the configuration file part as dict - 84 :param msgName: name of object for error message - 85 :param creator: function pointer which is taking two arguments: identifier of the object and arguments. - 86 :should return an object - 87 :return: a list of objects returned by creator - 88 """ - 89 items = [] - 90 for key, val in jsonDict.items(): - 91 try: - 92 item = creator(key, val) - 93 items.append(item) - 94 except Exception: - 95 self.log.w("ignoring " + msgName + ": " + key + "! reason:") - 96 self.log.w(str(Exception)) - 97 return items -
98 -
99 - def _load_module(self, clazz, modPart): -
100 """ -101 imports and caches a module. -102 -103 :param clazz: the filename of the module (i.e email, ping...) -104 :param modPart: the folder of the module. (i.e services, parsers...) -105 :return: the imported/cached module, or throws an error if it couldn't find it -106 """ -107 mods = self._loadedMods[modPart] -108 if clazz in mods: -109 return mods["class"] -110 else: -111 mod = __import__(clazz) -112 #path = join(getcwd(), "lib", modPart, clazz + ".py") -113 #self.log.w(path) -114 #mod = imp.load_source(clazz, path) -115 mods[clazz] = mod -116 return mod -
117 -
118 - def replace_with_import(self, objList, modPart, items_func, class_check): -
119 """ -120 replaces configuration dicts with their objects by importing and creating it in the first step. -121 In the second step the original list of json config dicts gets replaced by the loaded objects -122 -123 :param objList: the list of objects which is iterated on -124 :param modPart: the folder from the module (i.e tasks, parsers) -125 :param items_func: function to get a pointer on the list of json-config-objects to replace. Takes one argument and -126 :param class_check: currently unsupported -127 """ -128 for obj in objList: -129 repl = [] -130 items = items_func(obj) -131 for clazzItem in items: -132 try: -133 if "class" not in clazzItem: -134 self.log.w("python says class is not in class item!") -135 self.log.w(modPart) -136 self.log.w(clazzItem) -137 self.log.w(clazzItem["class"]) -138 -139 clazz = clazzItem["class"] -140 path = "lib/" + modPart -141 sys.path.append(path) -142 mod = self._load_module(clazz, modPart) -143 item = mod.create(clazzItem) -144 repl.append(item) -145 #TODO: activate the crappy classcheck if answer is provided -146 #http://stackoverflow.com/questions/17179440/ -147 self.log.d("warning: instance_check isn't working yet! TRUST_ALL = TRUE") -148 #if class_check(item): -149 # repl.append(item) -150 #else: -151 # self.log.w(" ignoring class " + clazzItem["class"] + "! It does not pass the class check!") -152 except ImportError, err: -153 self.log.w("could not import " + clazz + ": " + str(clazzItem) + "! reason") -154 self.log.w(str(err)) -155 except KeyError, k: -156 self.log.w("Key " + str(k) + " not in classItem " + str(clazzItem)) -157 except Exception, e: -158 self.log.w("Error while replacing class ( " + clazz + " ):" + str(e)) -159 finally: -160 if path in sys.path: -161 del sys.path[sys.path.index(path)] -162 del items[:] -163 items.extend(repl) -
164 -
165 - def replace_pointer(self, objectList, replObjectList, id_list_func, id_get_func): -
166 """ -167 replaces objects from the config by ids. -168 -169 :param objectList: the list of objects to be iterated on -170 :param replObjectList: the list of objects to replace -171 :param id_list_func: function taking one argument as object and should return a list of config ids to replace -172 :param id_get_func: function taking one config-object as argument and should return the config id to compare -173 """ -174 for obj in objectList: -175 replacements = [] -176 idList = id_list_func(obj) -177 for id in idList: -178 repl = [o for o in replObjectList if id == id_get_func(o)] -179 if len(repl) == 1: -180 replacements.append(repl[0]) -181 -182 del idList[:] -183 idList.extend(replacements) -
184 -
185 - def parse_config(self, configFilename): -
186 pass -
187 -188 -
189 -def parsePeriodList(name, values): -
190 if "date" in values: -191 return DatePeriod(name, **values) -192 -193 comp = ["weeks", "days", "hours", "minutes", "seconds", "start_date"] -194 if len([i for i in comp if i in values]) > 0 : -195 return IntervalPeriod(name, **values) -196 -197 comp = ["year", "month", "day", "week", "day_of_week", "hour", "minute", "second"] -198 if len([i for i in comp if i in values]) > 0 : -199 return CronPeriod(name, **values) -200 else: -201 raise ConfigurationException("could not determine correct Period(" + repr(values)+").") -
202 -203 -
204 -class FullConfigParser(ConfigParser): -
205 - def parse_config(self, configFilename): -
206 """ -207 parses the json configuration and returns a list of layouts, -208 which contains all necessary information of the config file. -209 parses the full config -210 Parsing will be done in 3 steps: -211 1. get raw Config Objects by just passing the values defined inside the config -212 2. replace references by objects, import services, tasks, parsers and processors -213 3. do sanity checks -214 -215 :param configFilename: the configuration file to parse -216 """ -217 self.jsonDict = self._read_json_config(configFilename) -218 -219 # first step -220 creator = lambda name, values: Layout(name,**values) -221 layouts = self._create_raw_Object(self.jsonDict[KEY_LAYOUTS], "Layout", creator) -222 -223 creator = lambda name, values: Member(name, **values) -224 members = self._create_raw_Object(self.jsonDict[KEY_MEMBERS], "Member", creator) -225 -226 creator = lambda name, values: HostGroup(name, **values) -227 hostgroups = self._create_raw_Object(self.jsonDict[KEY_HOSTGROUPS], "Hostgroup", creator) -228 -229 creator = parsePeriodList -230 periods = self._create_raw_Object(self.jsonDict[KEY_PERIODS], "Period", creator) -231 -232 #2. import and replace -233 items_func = lambda hostgroup: hostgroup.get_services() -234 class_check = lambda service: isinstance(service, Service) -235 self.replace_with_import(hostgroups, MOD_SERVICES, items_func, class_check) -236 -237 items_func = lambda hostgroup: hostgroup.get_processors() -238 class_check = lambda processor: isinstance(processor, Processor) -239 self.replace_with_import(hostgroups, MOD_PROCESSORS, items_func, class_check) -240 -241 services = [] -242 for hg in hostgroups: -243 services.extend(hg.get_services()) -244 -245 items_func = lambda service: service.get_parser() -246 class_check = lambda parser: isinstance(parser, Parser) -247 self.replace_with_import(services, MOD_PARSERS, items_func, class_check) -248 -249 items_func = lambda member: member.get_tasks() -250 class_check = lambda task: isinstance(task, Task) -251 self.replace_with_import(members, MOD_TASKS, items_func, class_check) -252 -253 #replace object pointer -254 id_list_func = lambda hostgroup: hostgroup.get_members() -255 id_get_func = lambda member: member.id -256 self.replace_pointer(hostgroups, members, id_list_func, id_get_func) -257 -258 id_list_func = lambda service: service.get_periods() -259 id_get_func = lambda period: period.get_name() -260 self.replace_pointer(services, periods, id_list_func, id_get_func) -261 -262 id_list_func = lambda layout: layout.get_hostgroups() -263 id_get_func = lambda hostgroup: hostgroup.get_name() -264 self.replace_pointer(layouts, hostgroups, id_list_func, id_get_func) -265 -266 return layouts -
267 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.parser.ConfigParser-class.html b/docs/linspector.lib.config.parser.ConfigParser-class.html deleted file mode 100644 index 1d0f032..0000000 --- a/docs/linspector.lib.config.parser.ConfigParser-class.html +++ /dev/null @@ -1,476 +0,0 @@ - - - - - linspector.lib.config.parser.ConfigParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module parser :: - Class ConfigParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ConfigParser

source code

-
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - log)
- initializes a new ConfigParser Object
- source code - -
- -
-   - - - - - - -
_create_new_config_dict(self) - source code - -
- -
-   - - - - - - -
create_config(self, - config) - source code - -
- -
-   - - - - - - -
_read_json_config(self, - configFilename)
- reads the config File and returns a dictionary, while lowering the - first keys
- source code - -
- -
-   - - - - - - -
_create_raw_Object(self, - jsonDict, - msgName, - creator)
- creates an Main object from the configuration, but just parses raw - data and hands it to the object
- source code - -
- -
-   - - - - - - -
_load_module(self, - clazz, - modPart)
- imports and caches a module.
- source code - -
- -
-   - - - - - - -
replace_with_import(self, - objList, - modPart, - items_func, - class_check)
- replaces configuration dicts with their objects by importing and - creating it in the first step.
- source code - -
- -
-   - - - - - - -
replace_pointer(self, - objectList, - replObjectList, - id_list_func, - id_get_func)
- replaces objects from the config by ids.
- source code - -
- -
-   - - - - - - -
parse_config(self, - configFilename) - source code - -
- -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - log) -
(Constructor) -

-
source code  -
- -

initializes a new ConfigParser Object

-

:param log: pre configured logger Object to post messages while - parsing"

-
-
-
-
- -
- -
- - -
-

_read_json_config(self, - configFilename) -

-
source code  -
- -

reads the config File and returns a dictionary, while lowering the - first keys

-

:param configFilename: the path under which the configuration file - should be found

-
-
-
-
- -
- -
- - -
-

_create_raw_Object(self, - jsonDict, - msgName, - creator) -

-
source code  -
- -

creates an Main object from the configuration, but just parses raw - data and hands it to the object

-

:param jsonDict: the configuration file part as dict :param msgName: - name of object for error message :param creator: function pointer which - is taking two arguments: identifier of the object and arguments. :should - return an object :return: a list of objects returned by creator

-
-
-
-
- -
- -
- - -
-

_load_module(self, - clazz, - modPart) -

-
source code  -
- -

imports and caches a module.

-

:param clazz: the filename of the module (i.e email, ping...) :param - modPart: the folder of the module. (i.e services, parsers...) :return: - the imported/cached module, or throws an error if it couldn't find it

-
-
-
-
- -
- -
- - -
-

replace_with_import(self, - objList, - modPart, - items_func, - class_check) -

-
source code  -
- -

replaces configuration dicts with their objects by importing and - creating it in the first step. In the second step the original list of - json config dicts gets replaced by the loaded objects

-

:param objList: the list of objects which is iterated on :param - modPart: the folder from the module (i.e tasks, parsers) :param - items_func: function to get a pointer on the list of json-config-objects - to replace. Takes one argument and :param class_check: currently - unsupported

-
-
-
-
- -
- -
- - -
-

replace_pointer(self, - objectList, - replObjectList, - id_list_func, - id_get_func) -

-
source code  -
- -

replaces objects from the config by ids.

-

:param objectList: the list of objects to be iterated on :param - replObjectList: the list of objects to replace :param id_list_func: - function taking one argument as object and should return a list of config - ids to replace :param id_get_func: function taking one config-object as - argument and should return the config id to compare

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.parser.ConfigurationException-class.html b/docs/linspector.lib.config.parser.ConfigurationException-class.html deleted file mode 100644 index 6dd7d3a..0000000 --- a/docs/linspector.lib.config.parser.ConfigurationException-class.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - linspector.lib.config.parser.ConfigurationException - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module parser :: - Class ConfigurationException - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ConfigurationException

source code

-
-              object --+        
-                       |        
-exceptions.BaseException --+    
-                           |    
-        exceptions.Exception --+
-                               |
-                              ConfigurationException
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - msg, - log)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__str__(self)
- str(x)
- source code - -
- -
-

Inherited from exceptions.Exception: - __new__ -

-

Inherited from exceptions.BaseException: - __delattr__, - __getattribute__, - __getitem__, - __getslice__, - __reduce__, - __repr__, - __setattr__, - __setstate__, - __unicode__ -

-

Inherited from object: - __format__, - __hash__, - __reduce_ex__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from exceptions.BaseException: - args, - message -

-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - msg, - log) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__str__(self) -
(Informal representation operator) -

-
source code  -
- -

str(x)

-
-
Overrides: - object.__str__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.parser.FullConfigParser-class.html b/docs/linspector.lib.config.parser.FullConfigParser-class.html deleted file mode 100644 index 7c2dfe7..0000000 --- a/docs/linspector.lib.config.parser.FullConfigParser-class.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - linspector.lib.config.parser.FullConfigParser - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module parser :: - Class FullConfigParser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class FullConfigParser

source code

-
-ConfigParser --+
-               |
-              FullConfigParser
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
parse_config(self, - configFilename)
- parses the json configuration and returns a list of layouts, -which contains all necessary information of the config file.
- source code - -
- -
-

Inherited from ConfigParser: - __init__, - create_config, - replace_pointer, - replace_with_import -

- -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

parse_config(self, - configFilename) -

-
source code  -
- -
-
-parses the json configuration and returns a list of layouts, 
-which contains all necessary information of the config file.
-parses the full config
-Parsing will be done in 3 steps:
-1. get raw Config Objects by just passing the values defined inside the config
-2. replace references by objects, import services, tasks, parsers and processors
-3. do sanity checks
-
-:param configFilename: the configuration file to parse
-
-
-
-
Overrides: - ConfigParser.parse_config -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.periods-module.html b/docs/linspector.lib.config.periods-module.html deleted file mode 100644 index 0bf5e6c..0000000 --- a/docs/linspector.lib.config.periods-module.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - linspector.lib.config.periods - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module periods - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module periods

source code

- - - - - - - - - - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Period -
-   - - IntervalPeriod -
-   - - CronPeriod -
-   - - DatePeriod -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.periods-pysrc.html b/docs/linspector.lib.config.periods-pysrc.html deleted file mode 100644 index a59a182..0000000 --- a/docs/linspector.lib.config.periods-pysrc.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - linspector.lib.config.periods - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module periods - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.config.periods

-
-
1 -class Period(object): -
2 - def __init__(self, name): -
3 self.name = name -
4 -
5 - def get_name(self): -
6 return self.name -
7 -
8 - def createJob(self, scheduler, jobInfo, func): -
9 pass -
10 -11 -
12 -class IntervalPeriod(Period): -
13 - def __init__(self, name="", weeks=0, days=0, hours=0, minutes=0, seconds=0, start_date=None, comment=None): -
14 super(IntervalPeriod, self).__init__(name) -15 -16 self.days = days # number of days to wait -17 self.weeks = weeks # number of weeks to wait -18 self.hours = hours # number of hours to wait -19 self.minutes = minutes # number of minutes to wait -20 self.seconds = seconds # number of seconds to wait -21 self.start_date = start_date # when to first execute -22 self.comment = comment # comment -
23 -
24 - def createJob(self, scheduler, jobInfo, func): -
25 return scheduler.add_interval_job(func, weeks=self.weeks, hours=self.hours, minutes=self.minutes, -26 seconds=self.seconds, start_date=self.start_date, args=[jobInfo]) -
27 -
28 - def __str__(self): -
29 ret = "IntervalPeriod(Name: " + self.name + ")" -30 return ret -
31 -32 -
33 -class CronPeriod(Period): -
34 - def __init__(self, name="", year="*", month="*", day="*", week="*", day_of_week="*", hour="*", minute="*", -35 second="0", start_date=None, comment=None): -
36 super(CronPeriod, self).__init__(name) -37 self.year = year # 4-digit year number -38 self.month = month # month number (1-12) -39 self.day = day # day of the month (1-31) -40 self.week = week # ISO week number (1-53) -41 self.day_of_week = day_of_week # number or name of weekday (0-6 or mon,tue,wed,thu,fri,sat,sun) -42 self.hour = hour # hour (0-23) -43 self.minute = minute # minute (0-59) -44 self.second = second # second (0-59) -45 self.start_date = start_date -46 self.comment = comment -
47 -
48 - def __str__(self): -
49 ret = "CronPeriod(Name: " + self.name + ")" -50 return ret -
51 -
52 - def createJob(self, scheduler, jobInfo, func): -
53 return scheduler.add_cron_job(func, year=self.year, month=self.month, day=self.day, week=self.week, -54 day_of_week=self.day_of_week, hour=self.hour, minute=self.minute, -55 second=self.second, start_date=self.start_date, args=[jobInfo]) -
56 -57 -
58 -class DatePeriod(Period): -
59 - def __init__(self, name, date, comment=None): -
60 super(DatePeriod, self).__init__(name) -61 self.date = date -62 self.comment = comment -
63 -
64 - def __str__(self): -
65 ret = "DatePeriod(Name: " + self.name + ", " + str(self.date) + ")" -66 return ret -
67 -
68 - def createJob(self, scheduler, jobInfo, func): -
69 return scheduler.add_date_job(func, self.date, jobInfo) -
70 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.periods.CronPeriod-class.html b/docs/linspector.lib.config.periods.CronPeriod-class.html deleted file mode 100644 index 164f0f0..0000000 --- a/docs/linspector.lib.config.periods.CronPeriod-class.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - - linspector.lib.config.periods.CronPeriod - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module periods :: - Class CronPeriod - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class CronPeriod

source code

-
-object --+    
-         |    
-    Period --+
-             |
-            CronPeriod
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name='', - year='*', - month='*', - day='*', - week='*', - day_of_week='*', - hour='*', - minute='*', - second='0', - start_date=None, - comment=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__str__(self)
- str(x)
- source code - -
- -
-   - - - - - - -
createJob(self, - scheduler, - jobInfo, - func) - source code - -
- -
-

Inherited from Period: - get_name -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - name='', - year='*', - month='*', - day='*', - week='*', - day_of_week='*', - hour='*', - minute='*', - second='0', - start_date=None, - comment=None) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__str__(self) -
(Informal representation operator) -

-
source code  -
- -

str(x)

-
-
Overrides: - object.__str__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

createJob(self, - scheduler, - jobInfo, - func) -

-
source code  -
- - -
-
Overrides: - Period.createJob -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.periods.DatePeriod-class.html b/docs/linspector.lib.config.periods.DatePeriod-class.html deleted file mode 100644 index cc54a52..0000000 --- a/docs/linspector.lib.config.periods.DatePeriod-class.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - - linspector.lib.config.periods.DatePeriod - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module periods :: - Class DatePeriod - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class DatePeriod

source code

-
-object --+    
-         |    
-    Period --+
-             |
-            DatePeriod
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name, - date, - comment=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
__str__(self)
- str(x)
- source code - -
- -
-   - - - - - - -
createJob(self, - scheduler, - jobInfo, - func) - source code - -
- -
-

Inherited from Period: - get_name -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - name, - date, - comment=None) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

__str__(self) -
(Informal representation operator) -

-
source code  -
- -

str(x)

-
-
Overrides: - object.__str__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

createJob(self, - scheduler, - jobInfo, - func) -

-
source code  -
- - -
-
Overrides: - Period.createJob -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.periods.IntervalPeriod-class.html b/docs/linspector.lib.config.periods.IntervalPeriod-class.html deleted file mode 100644 index b5c9de5..0000000 --- a/docs/linspector.lib.config.periods.IntervalPeriod-class.html +++ /dev/null @@ -1,340 +0,0 @@ - - - - - linspector.lib.config.periods.IntervalPeriod - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module periods :: - Class IntervalPeriod - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class IntervalPeriod

source code

-
-object --+    
-         |    
-    Period --+
-             |
-            IntervalPeriod
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name='', - weeks=0, - days=0, - hours=0, - minutes=0, - seconds=0, - start_date=None, - comment=None)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
createJob(self, - scheduler, - jobInfo, - func) - source code - -
- -
-   - - - - - - -
__str__(self)
- str(x)
- source code - -
- -
-

Inherited from Period: - get_name -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - name='', - weeks=0, - days=0, - hours=0, - minutes=0, - seconds=0, - start_date=None, - comment=None) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

createJob(self, - scheduler, - jobInfo, - func) -

-
source code  -
- - -
-
Overrides: - Period.createJob -
-
-
-
- -
- -
- - -
-

__str__(self) -
(Informal representation operator) -

-
source code  -
- -

str(x)

-
-
Overrides: - object.__str__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.periods.Period-class.html b/docs/linspector.lib.config.periods.Period-class.html deleted file mode 100644 index 3497812..0000000 --- a/docs/linspector.lib.config.periods.Period-class.html +++ /dev/null @@ -1,278 +0,0 @@ - - - - - linspector.lib.config.periods.Period - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module periods :: - Class Period - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Period

source code

-
-object --+
-         |
-        Period
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
get_name(self) - source code - -
- -
-   - - - - - - -
createJob(self, - scheduler, - jobInfo, - func) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - name) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.services-module.html b/docs/linspector.lib.config.services-module.html deleted file mode 100644 index 76519a0..0000000 --- a/docs/linspector.lib.config.services-module.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - linspector.lib.config.services - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module services - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module services

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Service -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
serviceList(services) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.services-pysrc.html b/docs/linspector.lib.config.services-pysrc.html deleted file mode 100644 index 78fd587..0000000 --- a/docs/linspector.lib.config.services-pysrc.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - linspector.lib.config.services - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module services - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.config.services

-
-
1 -class Service: -
2 - def __init__(self, name="", command="", comment="", parser=""): -
3 self.name = name - 4 self.command = command - 5 self.comment = comment - 6 self.parser = parser -
7 -
8 - def __str__(self): -
9 return "Service('Name: " + self.name + "', 'Command: " + self.command + ", 'Parser: " + self.parser + "')" -
10 -
11 - def clone(self): -
12 return Service(self.name, self.command, self.comment) -
13 -14 -
15 -def serviceList(services): -
16 return [Service(name=key, **values) for key, values in services.items()] -
17 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.services.Service-class.html b/docs/linspector.lib.config.services.Service-class.html deleted file mode 100644 index 0014279..0000000 --- a/docs/linspector.lib.config.services.Service-class.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - linspector.lib.config.services.Service - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module services :: - Class Service - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Service

source code

- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name='', - command='', - comment='', - parser='') - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
-   - - - - - - -
clone(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.tasks-module.html b/docs/linspector.lib.config.tasks-module.html deleted file mode 100644 index 17eb497..0000000 --- a/docs/linspector.lib.config.tasks-module.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - linspector.lib.config.tasks - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module tasks - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module tasks

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Task -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
parseTaskList(tasks) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.tasks-pysrc.html b/docs/linspector.lib.config.tasks-pysrc.html deleted file mode 100644 index af00319..0000000 --- a/docs/linspector.lib.config.tasks-pysrc.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - - linspector.lib.config.tasks - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module tasks - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.config.tasks

-
-
1 -class Task: -
2 - def __init__(self, name="", command="", priority=0, comment=""): -
3 self.name = name - 4 self.command = command - 5 self.priority = priority - 6 self.comment = comment -
7 -
8 - def __str__(self): -
9 return "Task('Name: " + self.name + "', 'Command: " + self.command + "', 'Priority: " + str(self.priority) + "')" -
10 -
11 - def clone(self): -
12 return Task(self.name, self.command, self.priority, self.comment) -
13 -14 -
15 -def parseTaskList(tasks): -
16 return [Task(name, **values) for name, values in tasks.items()] -
17 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.config.tasks.Task-class.html b/docs/linspector.lib.config.tasks.Task-class.html deleted file mode 100644 index 9fc4c99..0000000 --- a/docs/linspector.lib.config.tasks.Task-class.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - linspector.lib.config.tasks.Task - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package config :: - Module tasks :: - Class Task - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Task

source code

- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - name='', - command='', - priority=0, - comment='') - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
-   - - - - - - -
clone(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core-module.html b/docs/linspector.lib.core-module.html deleted file mode 100644 index 7b2add5..0000000 --- a/docs/linspector.lib.core-module.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - linspector.lib.core - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package core

source code

- - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core-pysrc.html b/docs/linspector.lib.core-pysrc.html deleted file mode 100644 index 6e87b65..0000000 --- a/docs/linspector.lib.core-pysrc.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - linspector.lib.core - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package linspector.lib.core

-
-1   
-2   
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.command-module.html b/docs/linspector.lib.core.command-module.html deleted file mode 100644 index 558fce0..0000000 --- a/docs/linspector.lib.core.command-module.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - linspector.lib.core.command - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module command - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module command

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Command -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.core' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.command-pysrc.html b/docs/linspector.lib.core.command-pysrc.html deleted file mode 100644 index 8b52b75..0000000 --- a/docs/linspector.lib.core.command-pysrc.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - linspector.lib.core.command - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module command - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.core.command

-
- 1  import subprocess as sp 
- 2  from subprocess import Popen 
- 3  from subprocess import CalledProcessError 
- 4  from datetime import datetime as dt 
- 5   
- 6   
-
7 -class Command: -
8 - def __init__(self, command, log): -
9 self.command = command -10 self.log = log -11 self.output = None -12 self.error = None -13 self.retcode = 0 -14 self.commandStart = 0 -
15 -
16 - def __str__(self): -
17 return self.command -
18 -
19 - def call(self): -
20 -21 # self.commandStart = dt.now() -22 # "called at: " -23 # process = sp.Popen(stdout=PIPE, *popenargs, **kwargs) -24 # self.output, self.error = process.communicate() -25 # self.retcode = process.poll() -26 -27 try: -28 self.commandStart = dt.now() -29 self.log.i("calling command " + str(self.command) + " at " + str(self.commandStart)) -30 #self.output=sp.check_output(self.command.split()) -31 process = Popen(self.command, stdout=sp.PIPE, stderr=sp.PIPE, shell=True) -32 self.output, self.error = process.communicate() -33 self.log.d(str(self.output)) -34 self.log.d(str(self.error)) -35 self.retcode = process.poll() -36 except CalledProcessError: -37 self.error = CalledProcessError.output -38 self.retcode = CalledProcessError.returncode -
39 -
40 - def getOutput(self): -
41 return self.output -
42 -
43 - def getError(self): -
44 return self.error -
45 -
46 - def getAllOutput(self): -
47 return str(self.output) + str(self.error) + str(self.retcode) -
48 -
49 - def getReturnCode(self): -
50 return self.retcode -
51 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.command.Command-class.html b/docs/linspector.lib.core.command.Command-class.html deleted file mode 100644 index a0be0e0..0000000 --- a/docs/linspector.lib.core.command.Command-class.html +++ /dev/null @@ -1,239 +0,0 @@ - - - - - linspector.lib.core.command.Command - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module command :: - Class Command - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Command

source code

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - command, - log) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
-   - - - - - - -
call(self) - source code - -
- -
-   - - - - - - -
getOutput(self) - source code - -
- -
-   - - - - - - -
getError(self) - source code - -
- -
-   - - - - - - -
getAllOutput(self) - source code - -
- -
-   - - - - - - -
getReturnCode(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.daemon-module.html b/docs/linspector.lib.core.daemon-module.html deleted file mode 100644 index ffd8bf8..0000000 --- a/docs/linspector.lib.core.daemon-module.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - linspector.lib.core.daemon - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module daemon - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module daemon

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Daemon
- A generic daemon class. -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.core' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.daemon-pysrc.html b/docs/linspector.lib.core.daemon-pysrc.html deleted file mode 100644 index 4a21eab..0000000 --- a/docs/linspector.lib.core.daemon-pysrc.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - linspector.lib.core.daemon - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module daemon - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.core.daemon

-
-  1  import sys 
-  2  import os 
-  3  import time 
-  4  import atexit 
-  5  from signal import SIGTERM 
-  6   
-  7   
-
8 -class Daemon: -
9 """ - 10 A generic daemon class. - 11 - 12 Usage: subclass the Daemon class and override the run() method - 13 """ - 14 -
15 - def __init__(self, pidfile, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null'): -
16 self.stdin = stdin - 17 self.stdout = stdout - 18 self.stderr = stderr - 19 self.pidfile = pidfile -
20 -
21 - def daemonize(self): -
22 """ - 23 do the UNIX double-fork magic, see Stevens' "Advanced - 24 Programming in the UNIX Environment" for details (ISBN 0201563177) - 25 http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16 - 26 """ - 27 try: - 28 pid = os.fork() - 29 if pid > 0: - 30 # exit first parent - 31 sys.exit(0) - 32 except OSError, e: - 33 sys.stderr.write("fork #1 failed: %d (%s)\n" % (e.errno, e.strerror)) - 34 sys.exit(1) - 35 - 36 # decouple from parent environment - 37 os.chdir("/") - 38 os.setsid() - 39 os.umask(0) - 40 - 41 # do second fork - 42 try: - 43 pid = os.fork() - 44 if pid > 0: - 45 # exit from second parent - 46 sys.exit(0) - 47 except OSError, e: - 48 sys.stderr.write("fork #2 failed: %d (%s)\n" % (e.errno, e.strerror)) - 49 sys.exit(1) - 50 - 51 # redirect standard file descriptors - 52 sys.stdout.flush() - 53 sys.stderr.flush() - 54 si = file(self.stdin, 'r') - 55 so = file(self.stdout, 'a+') - 56 se = file(self.stderr, 'a+', 0) - 57 os.dup2(si.fileno(), sys.stdin.fileno()) - 58 os.dup2(so.fileno(), sys.stdout.fileno()) - 59 os.dup2(se.fileno(), sys.stderr.fileno()) - 60 - 61 # write pidfile - 62 atexit.register(self.delpid) - 63 pid = str(os.getpid()) - 64 file(self.pidfile, 'w+').write("%s\n" % pid) -
65 -
66 - def delpid(self): -
67 os.remove(self.pidfile) -
68 -
69 - def start(self): -
70 """ - 71 Start the daemon - 72 """ - 73 # Check for a pidfile to see if the daemon already runs - 74 try: - 75 pf = file(self.pidfile, 'r') - 76 pid = int(pf.read().strip()) - 77 pf.close() - 78 except IOError: - 79 pid = None - 80 - 81 if pid: - 82 message = "pidfile %s already exist. daemon already running?\n" - 83 sys.stderr.write(message % self.pidfile) - 84 sys.exit(1) - 85 - 86 # Start the daemon - 87 self.daemonize() - 88 self.run() -
89 -
90 - def stop(self): -
91 """ - 92 Stop the daemon - 93 """ - 94 # Get the pid from the pidfile - 95 try: - 96 pf = file(self.pidfile, 'r') - 97 pid = int(pf.read().strip()) - 98 pf.close() - 99 except IOError: -100 pid = None -101 -102 if not pid: -103 message = "pidfile %s does not exist. daemon not running?\n" -104 sys.stderr.write(message % self.pidfile) -105 return # not an error in a restart -106 -107 # Try killing the daemon process -108 try: -109 while 1: -110 os.kill(pid, SIGTERM) -111 time.sleep(0.1) -112 except OSError, err: -113 err = str(err) -114 if err.find("No such process") > 0: -115 if os.path.exists(self.pidfile): -116 os.remove(self.pidfile) -117 else: -118 print str(err) -119 sys.exit(1) -
120 -
121 - def restart(self): -
122 """ -123 Restart the daemon -124 """ -125 self.stop() -126 self.start() -
127 -
128 - def run(self): -
129 """ -130 You should override this method when you subclass Daemon. -131 It will be called after the process has been -132 daemonized by start() or restart(). -133 """ -
134 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.daemon.Daemon-class.html b/docs/linspector.lib.core.daemon.Daemon-class.html deleted file mode 100644 index bfb0767..0000000 --- a/docs/linspector.lib.core.daemon.Daemon-class.html +++ /dev/null @@ -1,297 +0,0 @@ - - - - - linspector.lib.core.daemon.Daemon - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module daemon :: - Class Daemon - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Daemon

source code

-
Known Subclasses:
-
- -
- -
-

A generic daemon class.

-

Usage: subclass the Daemon class and override the run() method

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - pidfile, - stdin='/dev/null', - stdout='/dev/null', - stderr='/dev/null') - source code - -
- -
-   - - - - - - -
daemonize(self)
- do the UNIX double-fork magic, see Stevens' "Advanced - Programming in the UNIX Environment" for details (ISBN - 0201563177) http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16
- source code - -
- -
-   - - - - - - -
delpid(self) - source code - -
- -
-   - - - - - - -
start(self)
- Start the daemon
- source code - -
- -
-   - - - - - - -
stop(self)
- Stop the daemon
- source code - -
- -
-   - - - - - - -
restart(self)
- Restart the daemon
- source code - -
- -
-   - - - - - - -
run(self)
- You should override this method when you subclass Daemon.
- source code - -
- -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

run(self) -

-
source code  -
- -

You should override this method when you subclass Daemon. It will be - called after the process has been daemonized by start() or restart().

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.job-module.html b/docs/linspector.lib.core.job-module.html deleted file mode 100644 index e55e1bc..0000000 --- a/docs/linspector.lib.core.job-module.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - linspector.lib.core.job - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module job - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module job

source code

-

This is what job_function needs as parameter for each job to - successfully execute.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - JobInfo -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
generateId() - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.core' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.job-pysrc.html b/docs/linspector.lib.core.job-pysrc.html deleted file mode 100644 index 5d15cb3..0000000 --- a/docs/linspector.lib.core.job-pysrc.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - linspector.lib.core.job - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module job - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.core.job

-
- 1  """ 
- 2  This is what job_function needs as parameter for each job to successfully 
- 3  execute. 
- 4  """ 
- 5   
- 6  from command import Command 
- 7   
- 8   
-
9 -def generateId(): -
10 i = 0 -11 while True: -12 yield i -13 i += 1 -
14 -15 -
16 -class JobInfo: -
17 - def __init__(self, hostgroupname, members, hosts, hostServices, threshold, parent=None): -
18 self.members = members -19 self.hosts = hosts -20 self.hostServices = hostServices -21 self.threshold = threshold -22 self.parent = parent -23 self.name = generateId() -24 #self.name = hostgroupname + str([str("_" + s.service.name ) for s in hostServices]) -25 self.jobs = [] -
26 -
27 - def __str__(self): -
28 return "JobInfo " + str(self.name) -
29 -
30 - def setLogger(self, log): -
31 self.log = log -
32 -
33 - def appendJob(self, job): -
34 self.jobs.append(job) -
35 -
36 - def getNextExecutionTime(self): -
37 nextExecution = None -38 for job in self.jobs: -39 jobExec = job.trigger.get_next_fire_time() -40 if nextExecution is None or nextExecution > jobExec: -41 nextExecution = jobExec -42 return nextExecution -
43 -
44 - def handleCall(self): -
45 self.log.d("handle call") -46 self.log.d(self.hostServices) -47 try: -48 -49 for hs in self.hostServices: -50 self.log.d(str(hs)) -51 cmd = Command(hs.service.command, self.log) -52 cmd.call() -53 self.log.d(cmd.getAllOutput()) -54 except Exception: -55 self.log.d(Exception) -
56 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.job.JobInfo-class.html b/docs/linspector.lib.core.job.JobInfo-class.html deleted file mode 100644 index d3fd0ae..0000000 --- a/docs/linspector.lib.core.job.JobInfo-class.html +++ /dev/null @@ -1,229 +0,0 @@ - - - - - linspector.lib.core.job.JobInfo - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module job :: - Class JobInfo - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class JobInfo

source code

- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - hostgroupname, - members, - hosts, - hostServices, - threshold, - parent=None) - source code - -
- -
-   - - - - - - -
__str__(self) - source code - -
- -
-   - - - - - - -
setLogger(self, - log) - source code - -
- -
-   - - - - - - -
appendJob(self, - job) - source code - -
- -
-   - - - - - - -
getNextExecutionTime(self) - source code - -
- -
-   - - - - - - -
handleCall(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.linspector_daemon-module.html b/docs/linspector.lib.core.linspector_daemon-module.html deleted file mode 100644 index 41259d5..0000000 --- a/docs/linspector.lib.core.linspector_daemon-module.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - linspector.lib.core.linspector_daemon - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module linspector_daemon - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module linspector_daemon

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - LinspectorDaemon -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.core' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.linspector_daemon-pysrc.html b/docs/linspector.lib.core.linspector_daemon-pysrc.html deleted file mode 100644 index 461f68a..0000000 --- a/docs/linspector.lib.core.linspector_daemon-pysrc.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - - linspector.lib.core.linspector_daemon - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module linspector_daemon - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.core.linspector_daemon

-
- 1  from ..core import logger 
- 2  from ..core.daemon import Daemon 
- 3   
- 4   
-
5 -class LinspectorDaemon(Daemon): -
6 - def run(self): -
7 while True: - 8 try: - 9 a = 2 -10 logger.writeLogToFile(_logfile, "Running!") -11 print "running!" -12 except Exception as err: -13 #logger.writeLogToFile(_logfile, str(err)) -14 print "failed" -15 sys.exit(1) -16 time.sleep(1) -
17 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.linspector_daemon.LinspectorDaemon-class.html b/docs/linspector.lib.core.linspector_daemon.LinspectorDaemon-class.html deleted file mode 100644 index de85e46..0000000 --- a/docs/linspector.lib.core.linspector_daemon.LinspectorDaemon-class.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - linspector.lib.core.linspector_daemon.LinspectorDaemon - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module linspector_daemon :: - Class LinspectorDaemon - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class LinspectorDaemon

source code

-
-daemon.Daemon --+
-                |
-               LinspectorDaemon
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
run(self)
- You should override this method when you subclass Daemon.
- source code - -
- -
-

Inherited from daemon.Daemon: - __init__, - daemonize, - delpid, - restart, - start, - stop -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

run(self) -

-
source code  -
- -

You should override this method when you subclass Daemon. It will be - called after the process has been daemonized by start() or restart().

-
-
Overrides: - daemon.Daemon.run -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.logger-module.html b/docs/linspector.lib.core.logger-module.html deleted file mode 100644 index d3dbe2b..0000000 --- a/docs/linspector.lib.core.logger-module.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - linspector.lib.core.logger - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module logger - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module logger

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Logger
- Logger class that prints its messages and keeps them also inside a - logfile -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.core' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.logger-pysrc.html b/docs/linspector.lib.core.logger-pysrc.html deleted file mode 100644 index 592497a..0000000 --- a/docs/linspector.lib.core.logger-pysrc.html +++ /dev/null @@ -1,171 +0,0 @@ - - - - - linspector.lib.core.logger - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module logger - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.core.logger

-
- 1  import logging 
- 2  import logging.handlers 
- 3  import os 
- 4  import os.path as path 
- 5   
- 6   
-
7 -class Logger(): -
8 """ - 9 Logger class that prints its messages and keeps them also inside a logfile -10 """ -11 -
12 - def __init__(self, logfile="./linspector.log", logLevel=logging.DEBUG, logfileLevel=logging.DEBUG): -
13 """ -14 initializes a new Logger object. -15 -16 :param logLevel: the LoggingLevel from the console output (DEBUG default) -17 :param logfile: the file where to log. Logs are rotated by default. -18 :param logfileLevel: the LoggingLevel for the file Logger. (DEBUG default) -19 """ -20 logfile = path.expanduser(logfile) -21 if not path.exists(path.dirname(logfile)): -22 os.makedirs(path.dirname(logfile)) -23 -24 self.log = logging.getLogger("LinspectorLogger") -25 self.log.setLevel(logging.DEBUG) -26 -27 consoleHandler = logging.StreamHandler() -28 consoleHandler.setLevel(logLevel) -29 -30 fileHandler = logging.handlers.RotatingFileHandler(logfile, maxBytes=1024000, backupCount=4) -31 fileHandler.setLevel(logfileLevel) -32 -33 consoleFormatter = logging.Formatter('[%(levelname)s]: %(message)s') -34 fileFormatter = logging.Formatter('%(asctime)s [%(levelname)s]: %(message)s') -35 -36 consoleHandler.setFormatter(consoleFormatter) -37 fileHandler.setFormatter(fileFormatter) -38 -39 self.log.addHandler(consoleHandler) -40 self.log.addHandler(fileHandler) -
41 -
42 - def d(self, message): -
43 self.log.debug(message) -
44 -
45 - def i(self, message): -
46 self.log.info(message) -
47 -
48 - def w(self, message): -
49 self.log.warn(message) -
50 -
51 - def e(self, message): -
52 self.log.error(message) -
53 -
54 - def c(self, message): -
55 self.log.critical(message) -
56 -
57 - def close(self): -
58 logging.shutdown() -
59 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.core.logger.Logger-class.html b/docs/linspector.lib.core.logger.Logger-class.html deleted file mode 100644 index 70aefd3..0000000 --- a/docs/linspector.lib.core.logger.Logger-class.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - linspector.lib.core.logger.Logger - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package core :: - Module logger :: - Class Logger - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Logger

source code

-

Logger class that prints its messages and keeps them also inside a - logfile

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - logfile='./linspector.log', - logLevel=10, - logfileLevel=10)
- initializes a new Logger object.
- source code - -
- -
-   - - - - - - -
d(self, - message) - source code - -
- -
-   - - - - - - -
i(self, - message) - source code - -
- -
-   - - - - - - -
w(self, - message) - source code - -
- -
-   - - - - - - -
e(self, - message) - source code - -
- -
-   - - - - - - -
c(self, - message) - source code - -
- -
-   - - - - - - -
close(self) - source code - -
- -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - logfile='./linspector.log', - logLevel=10, - logfileLevel=10) -
(Constructor) -

-
source code  -
- -

initializes a new Logger object.

-

:param logLevel: the LoggingLevel from the console output (DEBUG - default) :param logfile: the file where to log. Logs are rotated by - default. :param logfileLevel: the LoggingLevel for the file Logger. - (DEBUG default)

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.parsers-module.html b/docs/linspector.lib.parsers-module.html deleted file mode 100644 index 092c2b8..0000000 --- a/docs/linspector.lib.parsers-module.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - linspector.lib.parsers - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package parsers - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package parsers

source code

- - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.parsers-pysrc.html b/docs/linspector.lib.parsers-pysrc.html deleted file mode 100644 index c0c1e23..0000000 --- a/docs/linspector.lib.parsers-pysrc.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - linspector.lib.parsers - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package parsers - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package linspector.lib.parsers

-
-1   
-2   
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.parsers.parser-module.html b/docs/linspector.lib.parsers.parser-module.html deleted file mode 100644 index 616de55..0000000 --- a/docs/linspector.lib.parsers.parser-module.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - linspector.lib.parsers.parser - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package parsers :: - Module parser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module parser

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Parser -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.parsers.parser-pysrc.html b/docs/linspector.lib.parsers.parser-pysrc.html deleted file mode 100644 index a97e999..0000000 --- a/docs/linspector.lib.parsers.parser-pysrc.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - linspector.lib.parsers.parser - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package parsers :: - Module parser - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.parsers.parser

-
-
1 -class Parser: -
2 - def __init__(self): -
3 pass -
4 -
5 - def parse_data(self, data): -
6 self.pre_parse(data) - 7 return self.generate_parse_result(data) -
8 -
9 - def pre_parse(self, data): -
10 pass -
11 -
12 - def generate_parse_result(self, result): -
13 pass -
14 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.parsers.parser.Parser-class.html b/docs/linspector.lib.parsers.parser.Parser-class.html deleted file mode 100644 index 962af16..0000000 --- a/docs/linspector.lib.parsers.parser.Parser-class.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - linspector.lib.parsers.parser.Parser - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package parsers :: - Module parser :: - Class Parser - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Parser

source code

- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self) - source code - -
- -
-   - - - - - - -
parse_data(self, - data) - source code - -
- -
-   - - - - - - -
pre_parse(self, - data) - source code - -
- -
-   - - - - - - -
generate_parse_result(self, - result) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors-module.html b/docs/linspector.lib.processors-module.html deleted file mode 100644 index 1a70ccd..0000000 --- a/docs/linspector.lib.processors-module.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - linspector.lib.processors - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package processors

source code

- - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors-pysrc.html b/docs/linspector.lib.processors-pysrc.html deleted file mode 100644 index d4b534b..0000000 --- a/docs/linspector.lib.processors-pysrc.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - linspector.lib.processors - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package linspector.lib.processors

-
-1   
-2   
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors.mongodb-module.html b/docs/linspector.lib.processors.mongodb-module.html deleted file mode 100644 index e4c15aa..0000000 --- a/docs/linspector.lib.processors.mongodb-module.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - linspector.lib.processors.mongodb - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors :: - Module mongodb - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module mongodb

source code

-

The MongoDB processor

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Mongodb -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(kwargs) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.processors' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors.mongodb-pysrc.html b/docs/linspector.lib.processors.mongodb-pysrc.html deleted file mode 100644 index e55b2dc..0000000 --- a/docs/linspector.lib.processors.mongodb-pysrc.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - linspector.lib.processors.mongodb - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors :: - Module mongodb - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.processors.mongodb

-
- 1  """ 
- 2  The MongoDB processor 
- 3  """ 
- 4   
- 5  from processor import Processor 
- 6   
- 7   
-
8 -class Mongodb(Processor): -
9 - def __init__(self): -
10 pass -
11 -12 -
13 -def create(kwargs): -
14 return Mongodb(**kwargs) -
15 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors.mongodb.Mongodb-class.html b/docs/linspector.lib.processors.mongodb.Mongodb-class.html deleted file mode 100644 index 5d5180e..0000000 --- a/docs/linspector.lib.processors.mongodb.Mongodb-class.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - linspector.lib.processors.mongodb.Mongodb - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors :: - Module mongodb :: - Class Mongodb - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Mongodb

source code

-
-processor.Processor --+
-                      |
-                     Mongodb
-
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self) - source code - -
- -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self) -
(Constructor) -

-
source code  -
- - -
-
Overrides: - processor.Processor.__init__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors.processor-module.html b/docs/linspector.lib.processors.processor-module.html deleted file mode 100644 index a123677..0000000 --- a/docs/linspector.lib.processors.processor-module.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - linspector.lib.processors.processor - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors :: - Module processor - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module processor

source code

-

The processor class for postprocessing polled data.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Processor -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors.processor-pysrc.html b/docs/linspector.lib.processors.processor-pysrc.html deleted file mode 100644 index b68d55b..0000000 --- a/docs/linspector.lib.processors.processor-pysrc.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - linspector.lib.processors.processor - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors :: - Module processor - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.processors.processor

-
- 1  """ 
- 2  The processor class for postprocessing polled data. 
- 3  """ 
- 4   
- 5   
-
6 -class Processor: -
7 - def __init__(self): -
8 pass -
9 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors.processor.Processor-class.html b/docs/linspector.lib.processors.processor.Processor-class.html deleted file mode 100644 index 5502175..0000000 --- a/docs/linspector.lib.processors.processor.Processor-class.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - linspector.lib.processors.processor.Processor - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors :: - Module processor :: - Class Processor - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Processor

source code

-
Known Subclasses:
-
- -
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self) - source code - -
- -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors.syslog-module.html b/docs/linspector.lib.processors.syslog-module.html deleted file mode 100644 index c0cc888..0000000 --- a/docs/linspector.lib.processors.syslog-module.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - linspector.lib.processors.syslog - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors :: - Module syslog - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module syslog

source code

-

The syslog processor

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Syslog -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(kwargs) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.processors' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors.syslog-pysrc.html b/docs/linspector.lib.processors.syslog-pysrc.html deleted file mode 100644 index 6fee56c..0000000 --- a/docs/linspector.lib.processors.syslog-pysrc.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - linspector.lib.processors.syslog - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors :: - Module syslog - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.processors.syslog

-
- 1  """ 
- 2  The syslog processor 
- 3  """ 
- 4   
- 5  from processor import Processor 
- 6   
- 7   
-
8 -class Syslog(Processor): -
9 - def __init__(self): -
10 pass -
11 -12 -
13 -def create(kwargs): -
14 return Syslog(**kwargs) -
15 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.processors.syslog.Syslog-class.html b/docs/linspector.lib.processors.syslog.Syslog-class.html deleted file mode 100644 index a1bcb30..0000000 --- a/docs/linspector.lib.processors.syslog.Syslog-class.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - linspector.lib.processors.syslog.Syslog - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package processors :: - Module syslog :: - Class Syslog - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Syslog

source code

-
-processor.Processor --+
-                      |
-                     Syslog
-
- -
- - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self) - source code - -
- -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self) -
(Constructor) -

-
source code  -
- - -
-
Overrides: - processor.Processor.__init__ -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services-module.html b/docs/linspector.lib.services-module.html deleted file mode 100644 index 2a78397..0000000 --- a/docs/linspector.lib.services-module.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - linspector.lib.services - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package services

source code

- - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services-pysrc.html b/docs/linspector.lib.services-pysrc.html deleted file mode 100644 index b45696a..0000000 --- a/docs/linspector.lib.services-pysrc.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - linspector.lib.services - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package linspector.lib.services

-
-1   
-2   
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.http-module.html b/docs/linspector.lib.services.http-module.html deleted file mode 100644 index 9e23372..0000000 --- a/docs/linspector.lib.services.http-module.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - - linspector.lib.services.http - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module http - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module http

source code

-

The http service.

-

This is for checking the availability and output of HTTP services. - Basic HTTP content could be fetched and compared.HTTPS is not validating - the server certificate!

-

This should just return 0 on success and NOT 0 on error. Just to make - internals generic to just report this code and not use a parser.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - HttpService -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(**kwargs) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.services' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.http-pysrc.html b/docs/linspector.lib.services.http-pysrc.html deleted file mode 100644 index 69160f3..0000000 --- a/docs/linspector.lib.services.http-pysrc.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - linspector.lib.services.http - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module http - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.services.http

-
- 1  """ 
- 2  The http service. 
- 3   
- 4  This is for checking the availability and output of HTTP services. Basic HTTP 
- 5  content could be fetched and compared.HTTPS is not validating the server certificate! 
- 6   
- 7  This should just return 0 on success and NOT 0 on error. Just to make internals generic 
- 8  to just report this code and not use a parser. 
- 9  """ 
-10   
-11  import urllib 
-12  from service import Service 
-13   
-14   
-
15 -class HttpService(Service): -
16 - def __init__(self, **kwargs): -
17 super(HttpService, self).__init__(**kwargs) -18 -19 args = self.get_arguments() -20 -21 self.method = "get" -22 if "method" in args: -23 self.method = args["method"] -24 -25 self.params = None -26 if "params" in args: -27 self.params = kwargs["params"] -28 -29 self.path = "/" -30 if "path" in args: -31 self.path = kwargs["path"] -32 -33 self.port = "80" -34 if "port" in args: -35 self.port = kwargs["port"] -36 -37 self.protocol = "http" -38 if "protocol" in args: -39 self.protocol = kwargs["protocol"] -
40 -
41 - def needs_arguments(self): -
42 return True -
43 -
44 - def execute(self): -
45 params = urllib.urlencode(self.params) -46 if self.method is "get": -47 f = urllib.urlopen(self.protocol + "://" + self._host + ":" + self.port + self.path + "?%s" % params) -48 elif self.method is "post": -49 f = urllib.urlopen(self.protocol + "://" + self._host + ":" + self.port + self.path, params) -
50 -51 #print f.read() -52 -53 -
54 -def create(**kwargs): -
55 return HttpService(**kwargs) -
56 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.http.HttpService-class.html b/docs/linspector.lib.services.http.HttpService-class.html deleted file mode 100644 index cbcd2e8..0000000 --- a/docs/linspector.lib.services.http.HttpService-class.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - linspector.lib.services.http.HttpService - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module http :: - Class HttpService - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class HttpService

source code

-
-     object --+    
-              |    
-service.Service --+
-                  |
-                 HttpService
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
needs_arguments(self) - source code - -
- -
-   - - - - - - -
execute(self) - source code - -
- -
-

Inherited from service.Service: - add_argument, - add_arguments, - add_parser, - add_periods, - get_arguments, - get_comment, - get_fails, - get_host, - get_parser, - get_periods, - get_threshold, - handle_result, - has_fail, - parse_result, - pre_execute, - put_fail, - put_fails, - set_host -

-

Inherited from service.Service (private): - _execute -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kwargs) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

needs_arguments(self) -

-
source code  -
- - -
-
Overrides: - service.Service.needs_arguments -
-
-
-
- -
- -
- - -
-

execute(self) -

-
source code  -
- - -
-
Overrides: - service.Service.execute -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.ping-module.html b/docs/linspector.lib.services.ping-module.html deleted file mode 100644 index c0dbe05..0000000 --- a/docs/linspector.lib.services.ping-module.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - linspector.lib.services.ping - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module ping - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module ping

source code

-

The ping service in pure Python.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - PingService -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(kwargs) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.services' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.ping-pysrc.html b/docs/linspector.lib.services.ping-pysrc.html deleted file mode 100644 index 9786523..0000000 --- a/docs/linspector.lib.services.ping-pysrc.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - linspector.lib.services.ping - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module ping - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.services.ping

-
- 1  """ 
- 2  The ping service in pure Python. 
- 3  """ 
- 4   
- 5  # http://code.activestate.com/recipes/409689-icmplib-library-for-creating-and-reading-icmp-pack/ 
- 6  from service import Service 
- 7   
- 8   
-
9 -class PingService(Service): -
10 - def __init__(self, **kwargs): -
11 Service.__init__(self, **kwargs) -
12 -13 -
14 -def create(kwargs): -
15 return PingService(**kwargs) -
16 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.ping.PingService-class.html b/docs/linspector.lib.services.ping.PingService-class.html deleted file mode 100644 index 840be88..0000000 --- a/docs/linspector.lib.services.ping.PingService-class.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - linspector.lib.services.ping.PingService - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module ping :: - Class PingService - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class PingService

source code

-
-     object --+    
-              |    
-service.Service --+
-                  |
-                 PingService
-
- -
- - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-

Inherited from service.Service: - add_argument, - add_arguments, - add_parser, - add_periods, - execute, - get_arguments, - get_comment, - get_fails, - get_host, - get_parser, - get_periods, - get_threshold, - handle_result, - has_fail, - needs_arguments, - parse_result, - pre_execute, - put_fail, - put_fails, - set_host -

-

Inherited from service.Service (private): - _execute -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kwargs) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.service-module.html b/docs/linspector.lib.services.service-module.html deleted file mode 100644 index d463c47..0000000 --- a/docs/linspector.lib.services.service-module.html +++ /dev/null @@ -1,198 +0,0 @@ - - - - - linspector.lib.services.service - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module service - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module service

source code

- - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Service -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - KEY_PARSER = 'parser' -
-   - - KEY_COMMENT = 'comment' -
-   - - KEY_THRESHOLD = 'threshold' -
-   - - KEY_FAILS = 'fails' -
-   - - KEY_PERIODS = 'periods' -
-   - - KEY_ARGS = 'args' -
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.service-pysrc.html b/docs/linspector.lib.services.service-pysrc.html deleted file mode 100644 index 7e8cc16..0000000 --- a/docs/linspector.lib.services.service-pysrc.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - linspector.lib.services.service - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module service - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.services.service

-
-  1   
-  2  KEY_PARSER    = "parser" 
-  3  KEY_COMMENT   = "comment" 
-  4  KEY_THRESHOLD = "threshold" 
-  5  KEY_FAILS     = "fails" 
-  6  KEY_PERIODS   = "periods" 
-  7  KEY_ARGS      = "args" 
-  8   
-  9   
-
10 -class Service(object): -
11 - def __init__(self, **kwargs): -
12 - 13 self._args = {} - 14 if KEY_ARGS in kwargs: - 15 self.add_arguments(kwargs[KEY_ARGS]) - 16 elif self.needs_arguments(): - 17 raise Exception("Error: needs arguments but none provided!") - 18 - 19 self._host = None - 20 - 21 self._parser = [] - 22 if KEY_PARSER in kwargs: - 23 self.add_parser(kwargs[KEY_PARSER]) - 24 - 25 self._comment = None - 26 if KEY_COMMENT in kwargs: - 27 self._comment = kwargs[KEY_COMMENT] - 28 - 29 self._threshold = 0 - 30 if KEY_THRESHOLD in kwargs: - 31 self._threshold = kwargs[KEY_THRESHOLD] - 32 - 33 self._fails = {} - 34 if KEY_FAILS in kwargs: - 35 self.put_fails(kwargs[KEY_FAILS]) - 36 - 37 self._periods = [] - 38 if KEY_PERIODS in kwargs: - 39 self.add_periods(kwargs[KEY_PERIODS]) - 40 - 41 self.errorcode = 0 - 42 self.errormessage = None -
43 -
44 - def add_arguments(self, args): -
45 for key, val in args.items(): - 46 self._args[key] = val -
47 -
48 - def add_argument(self, key, value): -
49 self._args[key] = value -
50 -
51 - def get_arguments(self): -
52 return self._args -
53 -
54 - def add_periods(self, period): -
55 if period is not None: - 56 if isinstance(period, list): - 57 self._periods.extend(period) - 58 else: - 59 self._periods.append(period) -
60 -
61 - def get_periods(self): -
62 return self._periods -
63 -
64 - def get_fails(self): -
65 return self._fails -
66 -
67 - def has_fail(self, fail): -
68 return fail in self.get_fails() -
69 -
70 - def put_fail(self, key, value): -
71 self._fails[key] = value -
72 -
73 - def put_fails(self, fails): -
74 for key, value in fails.items(): - 75 self.put_fail(key, value) -
76 -
77 - def get_threshold(self): -
78 return self._threshold -
79 -
80 - def get_comment(self): -
81 return self._comment -
82 -
83 - def set_host(self, host): -
84 self._host = host -
85 -
86 - def get_host(self): -
87 return self._host -
88 -
89 - def get_parser(self): -
90 return self._parser -
91 -
92 - def add_parser(self, parser): -
93 if parser is not None: - 94 if isinstance(parser, list): - 95 self._parser.extend(parser) - 96 else: - 97 self._parser.append(parser) -
98 -
99 - def needs_arguments(self): -
100 return False -
101 -
102 - def _execute(self): -
103 self.pre_execute() -104 executionResult = self.execute() -105 parseResult = self.parse_result(executionResult) -106 self.handle_result(parseResult) -
107 -
108 - def execute(self): -
109 pass -
110 -
111 - def pre_execute(self): -
112 pass -
113 -
114 - def parse_result(self, executionResult): -
115 result = [] -116 for parser in self.get_parser(): -117 result.append(self._parser._parse(executionResult)) -
118 -
119 - def handle_result(self, parseResult): -
120 pass -
121 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.service.Service-class.html b/docs/linspector.lib.services.service.Service-class.html deleted file mode 100644 index 4e660a4..0000000 --- a/docs/linspector.lib.services.service.Service-class.html +++ /dev/null @@ -1,591 +0,0 @@ - - - - - linspector.lib.services.service.Service - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module service :: - Class Service - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Service

source code

-
-object --+
-         |
-        Service
-
- -
Known Subclasses:
-
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
add_arguments(self, - args) - source code - -
- -
-   - - - - - - -
add_argument(self, - key, - value) - source code - -
- -
-   - - - - - - -
get_arguments(self) - source code - -
- -
-   - - - - - - -
add_periods(self, - period) - source code - -
- -
-   - - - - - - -
get_periods(self) - source code - -
- -
-   - - - - - - -
get_fails(self) - source code - -
- -
-   - - - - - - -
has_fail(self, - fail) - source code - -
- -
-   - - - - - - -
put_fail(self, - key, - value) - source code - -
- -
-   - - - - - - -
put_fails(self, - fails) - source code - -
- -
-   - - - - - - -
get_threshold(self) - source code - -
- -
-   - - - - - - -
get_comment(self) - source code - -
- -
-   - - - - - - -
set_host(self, - host) - source code - -
- -
-   - - - - - - -
get_host(self) - source code - -
- -
-   - - - - - - -
get_parser(self) - source code - -
- -
-   - - - - - - -
add_parser(self, - parser) - source code - -
- -
-   - - - - - - -
needs_arguments(self) - source code - -
- -
-   - - - - - - -
_execute(self) - source code - -
- -
-   - - - - - - -
execute(self) - source code - -
- -
-   - - - - - - -
pre_execute(self) - source code - -
- -
-   - - - - - - -
parse_result(self, - executionResult) - source code - -
- -
-   - - - - - - -
handle_result(self, - parseResult) - source code - -
- -
-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kwargs) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.shell-module.html b/docs/linspector.lib.services.shell-module.html deleted file mode 100644 index 14fd620..0000000 --- a/docs/linspector.lib.services.shell-module.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - linspector.lib.services.shell - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module shell - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module shell

source code

-

The shell service. This is for executing local shell commands and - retrieve the output.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - ShellService -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(kwargs) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.services' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.shell-pysrc.html b/docs/linspector.lib.services.shell-pysrc.html deleted file mode 100644 index 82d53cb..0000000 --- a/docs/linspector.lib.services.shell-pysrc.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - linspector.lib.services.shell - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module shell - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.services.shell

-
- 1  """ 
- 2  The shell service. This is for executing local shell commands and retrieve the output. 
- 3  """ 
- 4   
- 5  from service import Service 
- 6   
- 7   
-
8 -class ShellService(Service): -
9 - def __init__(self, **kwargs): -
10 super(ShellService, self).__init__(**kwargs) -11 -12 args = self.get_arguments() -13 if "command" in args: -14 self.command = args["command"] -15 else: -16 raise Exception("There is no command argument") -
17 -
18 - def needs_arguments(self): -
19 return True -
20 -
21 - def execute(self): -
22 self.command.call() -
23 -24 -
25 -def create(kwargs): -
26 return ShellService(**kwargs) -
27 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.shell.ShellService-class.html b/docs/linspector.lib.services.shell.ShellService-class.html deleted file mode 100644 index 78a035e..0000000 --- a/docs/linspector.lib.services.shell.ShellService-class.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - linspector.lib.services.shell.ShellService - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module shell :: - Class ShellService - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class ShellService

source code

-
-     object --+    
-              |    
-service.Service --+
-                  |
-                 ShellService
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
needs_arguments(self) - source code - -
- -
-   - - - - - - -
execute(self) - source code - -
- -
-

Inherited from service.Service: - add_argument, - add_arguments, - add_parser, - add_periods, - get_arguments, - get_comment, - get_fails, - get_host, - get_parser, - get_periods, - get_threshold, - handle_result, - has_fail, - parse_result, - pre_execute, - put_fail, - put_fails, - set_host -

-

Inherited from service.Service (private): - _execute -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kwargs) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

needs_arguments(self) -

-
source code  -
- - -
-
Overrides: - service.Service.needs_arguments -
-
-
-
- -
- -
- - -
-

execute(self) -

-
source code  -
- - -
-
Overrides: - service.Service.execute -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.snmpget-module.html b/docs/linspector.lib.services.snmpget-module.html deleted file mode 100644 index 97a38ae..0000000 --- a/docs/linspector.lib.services.snmpget-module.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - linspector.lib.services.snmpget - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module snmpget - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module snmpget

source code

-

The snmpget service in pure Python.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - SnmpgetService -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(kargs) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.services' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.snmpget-pysrc.html b/docs/linspector.lib.services.snmpget-pysrc.html deleted file mode 100644 index 62df5a1..0000000 --- a/docs/linspector.lib.services.snmpget-pysrc.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - linspector.lib.services.snmpget - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module snmpget - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.services.snmpget

-
- 1  """ 
- 2  The snmpget service in pure Python. 
- 3  """ 
- 4   
- 5  #from pysnmp.entity.rfc3413.oneliner import cmdgen 
- 6  from service import Service 
- 7   
- 8   
-
9 -class SnmpgetService(Service): -
10 - def __init__(self, **kwargs): -
11 super(SnmpgetService, self).__init__(**kwargs) -12 -13 args = self.get_arguments() -14 -15 if "community" in args: -16 self.community = args["community"] -17 else: -18 raise Exception("There is no community") -19 -20 if "oid" in args: -21 self.oid = args["oid"] -22 else: -23 raise Exception("There is no oid") -24 -25 self.port = "161" -26 if "port" in args: -27 self.port = args["port"] -
28 -
29 - def needs_arguments(self): -
30 return True -
31 -
32 - def execute(self): -
33 pass -
34 #cmdGen = cmdgen.CommandGenerator() -35 -36 #errorIndication, errorStatus, errorIndex, varBinds = cmdGen.getCmd( -37 # cmdgen.CommunityData(self.community), -38 # cmdgen.UdpTransportTarget((self._host, self.port)), -39 # cmdgen.MibVariable(self.oid) -40 #) -41 -42 #if errorIndication: -43 # print(errorIndication) -44 #else: -45 # if errorStatus: -46 # print('%s at %s' % ( -47 # errorStatus.prettyPrint(), -48 # errorIndex and varBinds[int(errorIndex) - 1] or '?' -49 # )) -50 # else: -51 # for name, val in varBinds: -52 # print('%s = %s' % (name.prettyPrint(), val.prettyPrint())) -53 -54 -
55 -def create(kargs): -
56 return SnmpgetService(**kwargs) -
57 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.snmpget.SnmpgetService-class.html b/docs/linspector.lib.services.snmpget.SnmpgetService-class.html deleted file mode 100644 index e6ee672..0000000 --- a/docs/linspector.lib.services.snmpget.SnmpgetService-class.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - linspector.lib.services.snmpget.SnmpgetService - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module snmpget :: - Class SnmpgetService - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SnmpgetService

source code

-
-     object --+    
-              |    
-service.Service --+
-                  |
-                 SnmpgetService
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
needs_arguments(self) - source code - -
- -
-   - - - - - - -
execute(self) - source code - -
- -
-

Inherited from service.Service: - add_argument, - add_arguments, - add_parser, - add_periods, - get_arguments, - get_comment, - get_fails, - get_host, - get_parser, - get_periods, - get_threshold, - handle_result, - has_fail, - parse_result, - pre_execute, - put_fail, - put_fails, - set_host -

-

Inherited from service.Service (private): - _execute -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kwargs) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

needs_arguments(self) -

-
source code  -
- - -
-
Overrides: - service.Service.needs_arguments -
-
-
-
- -
- -
- - -
-

execute(self) -

-
source code  -
- - -
-
Overrides: - service.Service.execute -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.ssh-module.html b/docs/linspector.lib.services.ssh-module.html deleted file mode 100644 index 3f2b007..0000000 --- a/docs/linspector.lib.services.ssh-module.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - linspector.lib.services.ssh - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module ssh - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module ssh

source code

-

The ssh service This is for executing remote shell commands and - retrieve the output.

-

This service is using paramiko (http://www.lag.net/paramiko/).

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - SshService -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(kwargs) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.services' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.ssh-pysrc.html b/docs/linspector.lib.services.ssh-pysrc.html deleted file mode 100644 index 5b1cf89..0000000 --- a/docs/linspector.lib.services.ssh-pysrc.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - linspector.lib.services.ssh - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module ssh - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.services.ssh

-
- 1  """ 
- 2  The ssh service This is for executing remote shell commands and retrieve the output. 
- 3   
- 4  This service is using paramiko (http://www.lag.net/paramiko/). 
- 5  """ 
- 6   
- 7  import paramiko 
- 8  import pprint 
- 9  import os 
-10  from service import Service 
-11   
-12   
-
13 -class SshService(Service): -
14 - def __init__(self, **kwargs): -
15 super(SshService, self).__init__(**kwargs) -16 -17 args = self.get_arguments() -18 if "command" in args: -19 self.command = args["command"] -20 else: -21 raise Exception("There is no command argument") -
22 -
23 - def needs_arguments(self): -
24 return True -
25 -
26 - def execute(self): -
27 path = os.path.join(os.environ['HOME'], '.ssh', 'id_rsa') -28 key = paramiko.RSAKey.from_private_key_file(path) -29 -30 client = paramiko.SSHClient() -31 client.get_host_keys().add('hanez.org', 'ssh-rsa', key) -32 pprint.pprint(client._host_keys) -33 -34 client.connect('hanez.org', username='hanez') -35 -36 #self.command.call() ist dann das: -37 stdin, stdout, stderr = client.exec_command('ls') -38 for line in stdout: -39 print '... ' + line.strip('\n') -40 client.close() -
41 -42 -
43 -def create(kwargs): -
44 return SshService(**kwargs) -
45 -46 # def main(): -47 # # service = SshService(parser, log, command='uptime') -48 # return -49 # -50 # if __name__ == "__main__": -51 # main() -52 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.ssh.SshService-class.html b/docs/linspector.lib.services.ssh.SshService-class.html deleted file mode 100644 index 567ec7c..0000000 --- a/docs/linspector.lib.services.ssh.SshService-class.html +++ /dev/null @@ -1,338 +0,0 @@ - - - - - linspector.lib.services.ssh.SshService - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module ssh :: - Class SshService - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SshService

source code

-
-     object --+    
-              |    
-service.Service --+
-                  |
-                 SshService
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
needs_arguments(self) - source code - -
- -
-   - - - - - - -
execute(self) - source code - -
- -
-

Inherited from service.Service: - add_argument, - add_arguments, - add_parser, - add_periods, - get_arguments, - get_comment, - get_fails, - get_host, - get_parser, - get_periods, - get_threshold, - handle_result, - has_fail, - parse_result, - pre_execute, - put_fail, - put_fails, - set_host -

-

Inherited from service.Service (private): - _execute -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kwargs) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

needs_arguments(self) -

-
source code  -
- - -
-
Overrides: - service.Service.needs_arguments -
-
-
-
- -
- -
- - -
-

execute(self) -

-
source code  -
- - -
-
Overrides: - service.Service.execute -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.tcpconnect-module.html b/docs/linspector.lib.services.tcpconnect-module.html deleted file mode 100644 index f48f668..0000000 --- a/docs/linspector.lib.services.tcpconnect-module.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - linspector.lib.services.tcpconnect - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module tcpconnect - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module tcpconnect

source code

-

The tcpconnect service. This is to check if a service on a specific - port is reachable.

-

This should just return 0 on success and NOT 0 on error. Just to make - internals generic to just report this code and not use a parser.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - TcpconnectService -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(kwargs) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.services' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.tcpconnect-pysrc.html b/docs/linspector.lib.services.tcpconnect-pysrc.html deleted file mode 100644 index 3297f1b..0000000 --- a/docs/linspector.lib.services.tcpconnect-pysrc.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - - linspector.lib.services.tcpconnect - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module tcpconnect - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.services.tcpconnect

-
- 1  """ 
- 2  The tcpconnect service. This is to check if a service on a specific port is reachable. 
- 3   
- 4  This should just return 0 on success and NOT 0 on error. Just to make internals generic to just report this code and 
- 5  not use a parser. 
- 6  """ 
- 7   
- 8  import socket 
- 9  from lib.config.services import Service 
-10  from service import Service 
-11   
-12   
-
13 -class TcpconnectService(Service): -
14 - def __init__(self, **kwargs): -
15 #Service.__init__(self, **kwargs) -16 super(TcpconnectService, self).__init__(**kwargs) -17 -18 args = self.get_arguments() -19 if "port" in args: -20 self.port = args["port"] -21 else: -22 raise Exception("There is no port set") -
23 -
24 - def needs_arguments(self): -
25 return True -
26 -
27 - def execute(self, log): -
28 try: -29 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -30 except socket.error, msg: -31 log.w("%s\n" % msg[1]) -32 self.errorcode = 1 -33 -34 try: -35 sock.connect((self.host, self.port)) -36 except socket.error, msg: -37 log.w("%s\n" % msg[1]) -38 self.errorcode = 2 -39 -40 sock.close() -41 return -
42 -43 -
44 -def create(kwargs): -
45 return TcpconnectService(**kwargs) -
46 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.services.tcpconnect.TcpconnectService-class.html b/docs/linspector.lib.services.tcpconnect.TcpconnectService-class.html deleted file mode 100644 index f8317b5..0000000 --- a/docs/linspector.lib.services.tcpconnect.TcpconnectService-class.html +++ /dev/null @@ -1,340 +0,0 @@ - - - - - linspector.lib.services.tcpconnect.TcpconnectService - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package services :: - Module tcpconnect :: - Class TcpconnectService - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class TcpconnectService

source code

-
-     object --+    
-              |    
-service.Service --+
-                  |
-                 TcpconnectService
-
- -
- - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs)
- x.__init__(...) initializes x; see help(type(x)) for signature
- source code - -
- -
-   - - - - - - -
needs_arguments(self) - source code - -
- -
-   - - - - - - -
execute(self, - log) - source code - -
- -
-

Inherited from service.Service: - add_argument, - add_arguments, - add_parser, - add_periods, - get_arguments, - get_comment, - get_fails, - get_host, - get_parser, - get_periods, - get_threshold, - handle_result, - has_fail, - parse_result, - pre_execute, - put_fail, - put_fails, - set_host -

-

Inherited from service.Service (private): - _execute -

-

Inherited from object: - __delattr__, - __format__, - __getattribute__, - __hash__, - __new__, - __reduce__, - __reduce_ex__, - __repr__, - __setattr__, - __sizeof__, - __str__, - __subclasshook__ -

-
- - - - - - - - - -
- - - - - -
Properties[hide private]
-
-

Inherited from object: - __class__ -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

__init__(self, - **kwargs) -
(Constructor) -

-
source code  -
- -

x.__init__(...) initializes x; see help(type(x)) for signature

-
-
Overrides: - object.__init__ -
(inherited documentation)
- -
-
-
- -
- -
- - -
-

needs_arguments(self) -

-
source code  -
- - -
-
Overrides: - service.Service.needs_arguments -
-
-
-
- -
- -
- - -
-

execute(self, - log) -

-
source code  -
- - -
-
Overrides: - service.Service.execute -
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks-module.html b/docs/linspector.lib.tasks-module.html deleted file mode 100644 index d03a525..0000000 --- a/docs/linspector.lib.tasks-module.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - linspector.lib.tasks - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Package tasks

source code

- - - - - - - -
- - - - - -
Submodules[hide private]
-
-
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks-pysrc.html b/docs/linspector.lib.tasks-pysrc.html deleted file mode 100644 index 806942b..0000000 --- a/docs/linspector.lib.tasks-pysrc.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - linspector.lib.tasks - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Package linspector.lib.tasks

-
-1   
-2   
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.email-module.html b/docs/linspector.lib.tasks.email-module.html deleted file mode 100644 index 497d5b9..0000000 --- a/docs/linspector.lib.tasks.email-module.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - linspector.lib.tasks.email - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module email - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module email

source code

-

The email task.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - EmailTask -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(taskDict) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.tasks' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.email-pysrc.html b/docs/linspector.lib.tasks.email-pysrc.html deleted file mode 100644 index fd802f9..0000000 --- a/docs/linspector.lib.tasks.email-pysrc.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - linspector.lib.tasks.email - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module email - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.tasks.email

-
- 1  """ 
- 2  The email task. 
- 3  """ 
- 4   
- 5  from task import Task 
- 6   
- 7   
-
8 -class EmailTask(Task): -
9 - def __init__(self, **kwargs): -
10 if not "type" in kwargs: -11 raise Exception("'type' not in typeDict " + str(kwargs)) -12 if not "args" in kwargs: -13 raise Exception("typeDict " + str(kwargs) + " has nor arguments!") -14 self.set_task_type(kwargs["type"]) -15 self.recipient = kwargs["args"]["rcpt"] -
16 -
17 - def execute_task(self, msg): -
18 pass -
19 -20 -
21 -def create(taskDict): -
22 return EmailTask(**taskDict) -
23 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.email.EmailTask-class.html b/docs/linspector.lib.tasks.email.EmailTask-class.html deleted file mode 100644 index 9ffd00f..0000000 --- a/docs/linspector.lib.tasks.email.EmailTask-class.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - linspector.lib.tasks.email.EmailTask - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module email :: - Class EmailTask - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class EmailTask

source code

-
-task.Task --+
-            |
-           EmailTask
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs) - source code - -
- -
-   - - - - - - -
execute_task(self, - msg)
- this is the method tasks usually override.
- source code - -
- -
-

Inherited from task.Task: - get_task_type, - set_task_type -

-

Inherited from task.Task (private): - _execute -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

execute_task(self, - msg) -

-
source code  -
- -

this is the method tasks usually override. It gets called anytime the - task should get executed

-

default does nothing

-

:param msg: the msg for this task

-
-
Overrides: - task.Task.execute_task -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.sms-module.html b/docs/linspector.lib.tasks.sms-module.html deleted file mode 100644 index a9dd583..0000000 --- a/docs/linspector.lib.tasks.sms-module.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - linspector.lib.tasks.sms - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module sms - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module sms

source code

-

The sms task.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - SmsTask -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(taskDict) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.tasks' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.sms-pysrc.html b/docs/linspector.lib.tasks.sms-pysrc.html deleted file mode 100644 index 19d4346..0000000 --- a/docs/linspector.lib.tasks.sms-pysrc.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - linspector.lib.tasks.sms - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module sms - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.tasks.sms

-
- 1  """ 
- 2  The sms task. 
- 3  """ 
- 4   
- 5  from task import Task  
- 6   
- 7   
-
8 -class SmsTask(Task): -
9 - def __init__(self, **kwargs): -
10 if not "type" in kwargs: -11 raise Exception("'type' not in typeDict " + str(kwargs)) -12 if not "args" in kwargs: -13 raise Exception("typeDict " + str(kwargs) + " has no arguments!") -14 self.set_task_type(kwargs["type"]) -15 self.recipient = kwargs["args"]["rcpt"] -
16 -
17 - def execute_task(self, msg): -
18 pass -
19 -20 -
21 -def create(taskDict): -
22 return SmsTask(**taskDict) -
23 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.sms.SmsTask-class.html b/docs/linspector.lib.tasks.sms.SmsTask-class.html deleted file mode 100644 index ef406d6..0000000 --- a/docs/linspector.lib.tasks.sms.SmsTask-class.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - linspector.lib.tasks.sms.SmsTask - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module sms :: - Class SmsTask - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class SmsTask

source code

-
-task.Task --+
-            |
-           SmsTask
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs) - source code - -
- -
-   - - - - - - -
execute_task(self, - msg)
- this is the method tasks usually override.
- source code - -
- -
-

Inherited from task.Task: - get_task_type, - set_task_type -

-

Inherited from task.Task (private): - _execute -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

execute_task(self, - msg) -

-
source code  -
- -

this is the method tasks usually override. It gets called anytime the - task should get executed

-

default does nothing

-

:param msg: the msg for this task

-
-
Overrides: - task.Task.execute_task -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.task-module.html b/docs/linspector.lib.tasks.task-module.html deleted file mode 100644 index d042bcc..0000000 --- a/docs/linspector.lib.tasks.task-module.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - linspector.lib.tasks.task - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module task - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module task

source code

-

The task class.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - Task
- Base class for all built-in Tasks. -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = None -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.task-pysrc.html b/docs/linspector.lib.tasks.task-pysrc.html deleted file mode 100644 index 98d4374..0000000 --- a/docs/linspector.lib.tasks.task-pysrc.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - linspector.lib.tasks.task - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module task - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.tasks.task

-
- 1  """ 
- 2  The task class. 
- 3  """ 
- 4   
- 5   
-
6 -class Task: -
7 """ - 8 Base class for all built-in Tasks. - 9 """ -10 -
11 - def set_task_type(self, taskType): -
12 """ -13 sets the type of this task. -14 -15 Be aware! this method can only get called once! -16 -17 :param taskType: the type of this task -18 """ -19 if hasattr(self, "_taskType"): -20 raise Exception("taskType is only allowed to set once!") -21 self.taskType = taskType -
22 -
23 - def get_task_type(self): -
24 """ -25 :return: the type set by set_type_task -26 """ -27 return self._taskType -
28 -
29 - def execute_task(self, msg): -
30 """ -31 this is the method tasks usually override. -32 It gets called anytime the task should get executed -33 -34 default does nothing -35 -36 :param msg: the msg for this task -37 """ -38 pass -
39 -
40 - def _execute(self, taskType, msg): -
41 """ -42 internal method which gets called for any member in a hostgroup. -43 It determines if it has an appropriate type by comparing taskType with get_task_type(). -44 Calls execute_task() if the type matches -45 -46 :param taskType: the type of the fail which is compared with get_task_type() -47 :param msg: the error message -48 -49 :return: True if execute_task() is called succesfully, else False -50 """ -51 if self.get_task_type() == taskType: -52 self.execute_task(msg) -53 return True -54 return False -
55 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.task.Task-class.html b/docs/linspector.lib.tasks.task.Task-class.html deleted file mode 100644 index d6044f7..0000000 --- a/docs/linspector.lib.tasks.task.Task-class.html +++ /dev/null @@ -1,296 +0,0 @@ - - - - - linspector.lib.tasks.task.Task - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module task :: - Class Task - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class Task

source code

-
Known Subclasses:
-
- -
- -
-

Base class for all built-in Tasks.

- - - - - - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
_execute(self, - taskType, - msg)
- internal method which gets called for any member in a hostgroup.
- source code - -
- -
-   - - - - - - -
execute_task(self, - msg)
- this is the method tasks usually override.
- source code - -
- -
-   - - - - - - -
get_task_type(self)
- :return: the type set by set_type_task
- source code - -
- -
-   - - - - - - -
set_task_type(self, - taskType)
- sets the type of this task.
- source code - -
- -
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

_execute(self, - taskType, - msg) -

-
source code  -
- -

internal method which gets called for any member in a hostgroup. It - determines if it has an appropriate type by comparing taskType with - get_task_type(). Calls execute_task() if the type matches

-

:param taskType: the type of the fail which is compared with - get_task_type() :param msg: the error message

-

:return: True if execute_task() is called succesfully, else False

-
-
-
-
- -
- -
- - -
-

execute_task(self, - msg) -

-
source code  -
- -

this is the method tasks usually override. It gets called anytime the - task should get executed

-

default does nothing

-

:param msg: the msg for this task

-
-
-
-
- -
- -
- - -
-

set_task_type(self, - taskType) -

-
source code  -
- -

sets the type of this task.

-

Be aware! this method can only get called once!

-

:param taskType: the type of this task

-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.xmpp-module.html b/docs/linspector.lib.tasks.xmpp-module.html deleted file mode 100644 index 6579e47..0000000 --- a/docs/linspector.lib.tasks.xmpp-module.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - linspector.lib.tasks.xmpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module xmpp - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Module xmpp

source code

-

The xmpp task.

- - - - - - - - - - -
- - - - - -
Classes[hide private]
-
-   - - XmppTask -
- - - - - - - - - -
- - - - - -
Functions[hide private]
-
-   - - - - - - -
create(taskDict) - source code - -
- -
- - - - - - - - - -
- - - - - -
Variables[hide private]
-
-   - - __package__ = 'linspector.lib.tasks' -
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.xmpp-pysrc.html b/docs/linspector.lib.tasks.xmpp-pysrc.html deleted file mode 100644 index 4e9b058..0000000 --- a/docs/linspector.lib.tasks.xmpp-pysrc.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - - linspector.lib.tasks.xmpp - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module xmpp - - - - - - -
[hide private]
[frames] | no frames]
-
-

Source Code for Module linspector.lib.tasks.xmpp

-
- 1  """ 
- 2  The xmpp task. 
- 3  """ 
- 4   
- 5  from task import Task 
- 6   
- 7   
-
8 -class XmppTask(Task): -
9 - def __init__(self, **kwargs): -
10 if not "type" in kwargs: -11 raise Exception("'type' not in typeDict " + str(kwargs)) -12 if not "args" in kwargs: -13 raise Exception("typeDict " + str(kwargs) + " has nor arguments!") -14 self.set_task_type(kwargs["type"]) -15 self.recipient = kwargs["args"]["rcpt"] -
16 -
17 - def execute_task(self, msg): -
18 pass -
19 -20 -
21 -def create(taskDict): -
22 return XmppTask(**taskDict) -
23 -
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/linspector.lib.tasks.xmpp.XmppTask-class.html b/docs/linspector.lib.tasks.xmpp.XmppTask-class.html deleted file mode 100644 index ba14a7b..0000000 --- a/docs/linspector.lib.tasks.xmpp.XmppTask-class.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - linspector.lib.tasks.xmpp.XmppTask - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Package linspector :: - Package lib :: - Package tasks :: - Module xmpp :: - Class XmppTask - - - - - - -
[hide private]
[frames] | no frames]
-
- -

Class XmppTask

source code

-
-task.Task --+
-            |
-           XmppTask
-
- -
- - - - - - - - - - - - - - - -
- - - - - -
Instance Methods[hide private]
-
-   - - - - - - -
__init__(self, - **kwargs) - source code - -
- -
-   - - - - - - -
execute_task(self, - msg)
- this is the method tasks usually override.
- source code - -
- -
-

Inherited from task.Task: - get_task_type, - set_task_type -

-

Inherited from task.Task (private): - _execute -

-
- - - - - - -
- - - - - -
Method Details[hide private]
-
- -
- -
- - -
-

execute_task(self, - msg) -

-
source code  -
- -

this is the method tasks usually override. It gets called anytime the - task should get executed

-

default does nothing

-

:param msg: the msg for this task

-
-
Overrides: - task.Task.execute_task -
(inherited documentation)
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/module-tree.html b/docs/module-tree.html deleted file mode 100644 index a1acc7c..0000000 --- a/docs/module-tree.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - Module Hierarchy - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  - - - - -
[hide private]
[frames] | no frames]
-
-
- [ Module Hierarchy - | Class Hierarchy ] -

-

Module Hierarchy

- - - - - - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/docs/redirect.html b/docs/redirect.html deleted file mode 100644 index 4e48fb4..0000000 --- a/docs/redirect.html +++ /dev/null @@ -1,38 +0,0 @@ -Epydoc Redirect Page - - - - - - - - -

Epydoc Auto-redirect page

- -

When javascript is enabled, this page will redirect URLs of -the form redirect.html#dotted.name to the -documentation for the object with the given fully-qualified -dotted name.

-

 

- - - - - diff --git a/docs/toc-everything.html b/docs/toc-everything.html deleted file mode 100644 index a2960e1..0000000 --- a/docs/toc-everything.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - Everything - - - - - -

Everything

-
-

All Classes

- linspector.lib.config.config.Config
linspector.lib.config.hostgroups.HostGroup
linspector.lib.config.hostgroups.HostGroupException
linspector.lib.config.hostgroups.HostGroupMissingArgumentException
linspector.lib.config.hostgroups.HostGroupService
linspector.lib.config.hosts.Host
linspector.lib.config.hosts.HostService
linspector.lib.config.layouts.Layout
linspector.lib.config.layouts.LayoutException
linspector.lib.config.layouts.LayoutList
linspector.lib.config.members.Member
linspector.lib.config.members.MemberFilter
linspector.lib.config.parser.ConfigParser
linspector.lib.config.parser.ConfigurationException
linspector.lib.config.parser.FullConfigParser
linspector.lib.config.periods.CronPeriod
linspector.lib.config.periods.DatePeriod
linspector.lib.config.periods.IntervalPeriod
linspector.lib.config.periods.Period
linspector.lib.config.services.Service
linspector.lib.config.tasks.Task
linspector.lib.core.command.Command
linspector.lib.core.daemon.Daemon
linspector.lib.core.job.JobInfo
linspector.lib.core.linspector_daemon.LinspectorDaemon
linspector.lib.core.logger.Logger
linspector.lib.parsers.parser.Parser
linspector.lib.processors.mongodb.Mongodb
linspector.lib.processors.processor.Processor
linspector.lib.processors.syslog.Syslog
linspector.lib.services.http.HttpService
linspector.lib.services.ping.PingService
linspector.lib.services.service.Service
linspector.lib.services.shell.ShellService
linspector.lib.services.snmpget.SnmpgetService
linspector.lib.services.ssh.SshService
linspector.lib.services.tcpconnect.TcpconnectService
linspector.lib.tasks.email.EmailTask
linspector.lib.tasks.sms.SmsTask
linspector.lib.tasks.task.Task
linspector.lib.tasks.xmpp.XmppTask

All Functions

- linspector.lib.config.hostgroups.parseHostGroupList
linspector.lib.config.hosts.parseHostList
linspector.lib.config.members.parseMemberList
linspector.lib.config.parser.parsePeriodList
linspector.lib.config.services.serviceList
linspector.lib.config.tasks.parseTaskList
linspector.lib.core.job.generateId
linspector.lib.processors.mongodb.create
linspector.lib.processors.syslog.create
linspector.lib.services.http.create
linspector.lib.services.ping.create
linspector.lib.services.shell.create
linspector.lib.services.snmpget.create
linspector.lib.services.ssh.create
linspector.lib.services.tcpconnect.create
linspector.lib.tasks.email.create
linspector.lib.tasks.sms.create
linspector.lib.tasks.xmpp.create

All Variables

- linspector.__package__
linspector.lib.__package__
linspector.lib.config.__package__
linspector.lib.config.config.__package__
linspector.lib.config.hostgroups.__package__
linspector.lib.config.hosts.__package__
linspector.lib.config.layouts.__package__
linspector.lib.config.members.__package__
linspector.lib.config.parser.KEY_CORE
linspector.lib.config.parser.KEY_HOSTGROUPS
linspector.lib.config.parser.KEY_LAYOUTS
linspector.lib.config.parser.KEY_MEMBERS
linspector.lib.config.parser.KEY_PERIODS
linspector.lib.config.parser.MOD_PARSERS
linspector.lib.config.parser.MOD_PROCESSORS
linspector.lib.config.parser.MOD_SERVICES
linspector.lib.config.parser.MOD_TASKS
linspector.lib.config.parser.__package__
linspector.lib.config.periods.__package__
linspector.lib.config.services.__package__
linspector.lib.config.tasks.__package__
linspector.lib.core.__package__
linspector.lib.core.command.__package__
linspector.lib.core.daemon.__package__
linspector.lib.core.job.__package__
linspector.lib.core.linspector_daemon.__package__
linspector.lib.core.logger.__package__
linspector.lib.parsers.__package__
linspector.lib.parsers.parser.__package__
linspector.lib.processors.__package__
linspector.lib.processors.mongodb.__package__
linspector.lib.processors.processor.__package__
linspector.lib.processors.syslog.__package__
linspector.lib.services.__package__
linspector.lib.services.http.__package__
linspector.lib.services.ping.__package__
linspector.lib.services.service.KEY_ARGS
linspector.lib.services.service.KEY_COMMENT
linspector.lib.services.service.KEY_FAILS
linspector.lib.services.service.KEY_PARSER
linspector.lib.services.service.KEY_PERIODS
linspector.lib.services.service.KEY_THRESHOLD
linspector.lib.services.service.__package__
linspector.lib.services.shell.__package__
linspector.lib.services.snmpget.__package__
linspector.lib.services.ssh.__package__
linspector.lib.services.tcpconnect.__package__
linspector.lib.tasks.__package__
linspector.lib.tasks.email.__package__
linspector.lib.tasks.sms.__package__
linspector.lib.tasks.task.__package__
linspector.lib.tasks.xmpp.__package__

-[hide private] - - - - diff --git a/docs/toc-linspector-module.html b/docs/toc-linspector-module.html deleted file mode 100644 index c0f457e..0000000 --- a/docs/toc-linspector-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - linspector - - - - - -

Module linspector

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib-module.html b/docs/toc-linspector.lib-module.html deleted file mode 100644 index 61413b8..0000000 --- a/docs/toc-linspector.lib-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - lib - - - - - -

Module lib

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config-module.html b/docs/toc-linspector.lib.config-module.html deleted file mode 100644 index 8f5de5a..0000000 --- a/docs/toc-linspector.lib.config-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - config - - - - - -

Module config

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config.config-module.html b/docs/toc-linspector.lib.config.config-module.html deleted file mode 100644 index 641200c..0000000 --- a/docs/toc-linspector.lib.config.config-module.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - config - - - - - -

Module config

-
-

Classes

- Config

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config.hostgroups-module.html b/docs/toc-linspector.lib.config.hostgroups-module.html deleted file mode 100644 index 3fb7144..0000000 --- a/docs/toc-linspector.lib.config.hostgroups-module.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - hostgroups - - - - - -

Module hostgroups

-
-

Classes

- HostGroup
HostGroupException
HostGroupMissingArgumentException
HostGroupService

Functions

- parseHostGroupList

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config.hosts-module.html b/docs/toc-linspector.lib.config.hosts-module.html deleted file mode 100644 index 678f082..0000000 --- a/docs/toc-linspector.lib.config.hosts-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - hosts - - - - - -

Module hosts

-
-

Classes

- Host
HostService

Functions

- parseHostList

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config.layouts-module.html b/docs/toc-linspector.lib.config.layouts-module.html deleted file mode 100644 index ffc9444..0000000 --- a/docs/toc-linspector.lib.config.layouts-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - layouts - - - - - -

Module layouts

-
-

Classes

- Layout
LayoutException
LayoutList

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config.members-module.html b/docs/toc-linspector.lib.config.members-module.html deleted file mode 100644 index ecc5c04..0000000 --- a/docs/toc-linspector.lib.config.members-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - members - - - - - -

Module members

-
-

Classes

- Member
MemberFilter

Functions

- parseMemberList

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config.parser-module.html b/docs/toc-linspector.lib.config.parser-module.html deleted file mode 100644 index e4f8b09..0000000 --- a/docs/toc-linspector.lib.config.parser-module.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - parser - - - - - -

Module parser

-
-

Classes

- ConfigParser
ConfigurationException
FullConfigParser

Functions

- parsePeriodList

Variables

- KEY_CORE
KEY_HOSTGROUPS
KEY_LAYOUTS
KEY_MEMBERS
KEY_PERIODS
MOD_PARSERS
MOD_PROCESSORS
MOD_SERVICES
MOD_TASKS
__package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config.periods-module.html b/docs/toc-linspector.lib.config.periods-module.html deleted file mode 100644 index bbdf5d6..0000000 --- a/docs/toc-linspector.lib.config.periods-module.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - periods - - - - - -

Module periods

-
-

Classes

- CronPeriod
DatePeriod
IntervalPeriod
Period

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config.services-module.html b/docs/toc-linspector.lib.config.services-module.html deleted file mode 100644 index 468d907..0000000 --- a/docs/toc-linspector.lib.config.services-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - services - - - - - -

Module services

-
-

Classes

- Service

Functions

- serviceList

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.config.tasks-module.html b/docs/toc-linspector.lib.config.tasks-module.html deleted file mode 100644 index abbd4c5..0000000 --- a/docs/toc-linspector.lib.config.tasks-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - tasks - - - - - -

Module tasks

-
-

Classes

- Task

Functions

- parseTaskList

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.core-module.html b/docs/toc-linspector.lib.core-module.html deleted file mode 100644 index 355f755..0000000 --- a/docs/toc-linspector.lib.core-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - core - - - - - -

Module core

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.core.command-module.html b/docs/toc-linspector.lib.core.command-module.html deleted file mode 100644 index da66540..0000000 --- a/docs/toc-linspector.lib.core.command-module.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - command - - - - - -

Module command

-
-

Classes

- Command

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.core.daemon-module.html b/docs/toc-linspector.lib.core.daemon-module.html deleted file mode 100644 index 8d631b4..0000000 --- a/docs/toc-linspector.lib.core.daemon-module.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - daemon - - - - - -

Module daemon

-
-

Classes

- Daemon

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.core.job-module.html b/docs/toc-linspector.lib.core.job-module.html deleted file mode 100644 index 317844c..0000000 --- a/docs/toc-linspector.lib.core.job-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - job - - - - - -

Module job

-
-

Classes

- JobInfo

Functions

- generateId

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.core.linspector_daemon-module.html b/docs/toc-linspector.lib.core.linspector_daemon-module.html deleted file mode 100644 index 043f908..0000000 --- a/docs/toc-linspector.lib.core.linspector_daemon-module.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - linspector_daemon - - - - - -

Module linspector_daemon

-
-

Classes

- LinspectorDaemon

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.core.logger-module.html b/docs/toc-linspector.lib.core.logger-module.html deleted file mode 100644 index 1173105..0000000 --- a/docs/toc-linspector.lib.core.logger-module.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - logger - - - - - -

Module logger

-
-

Classes

- Logger

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.parsers-module.html b/docs/toc-linspector.lib.parsers-module.html deleted file mode 100644 index 501125b..0000000 --- a/docs/toc-linspector.lib.parsers-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - parsers - - - - - -

Module parsers

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.parsers.parser-module.html b/docs/toc-linspector.lib.parsers.parser-module.html deleted file mode 100644 index 6b38e76..0000000 --- a/docs/toc-linspector.lib.parsers.parser-module.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - parser - - - - - -

Module parser

-
-

Classes

- Parser

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.processors-module.html b/docs/toc-linspector.lib.processors-module.html deleted file mode 100644 index a16b478..0000000 --- a/docs/toc-linspector.lib.processors-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - processors - - - - - -

Module processors

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.processors.mongodb-module.html b/docs/toc-linspector.lib.processors.mongodb-module.html deleted file mode 100644 index 81c7a39..0000000 --- a/docs/toc-linspector.lib.processors.mongodb-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - mongodb - - - - - -

Module mongodb

-
-

Classes

- Mongodb

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.processors.processor-module.html b/docs/toc-linspector.lib.processors.processor-module.html deleted file mode 100644 index e3a4b5d..0000000 --- a/docs/toc-linspector.lib.processors.processor-module.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - processor - - - - - -

Module processor

-
-

Classes

- Processor

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.processors.syslog-module.html b/docs/toc-linspector.lib.processors.syslog-module.html deleted file mode 100644 index fcfad16..0000000 --- a/docs/toc-linspector.lib.processors.syslog-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - syslog - - - - - -

Module syslog

-
-

Classes

- Syslog

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.services-module.html b/docs/toc-linspector.lib.services-module.html deleted file mode 100644 index 0b5e557..0000000 --- a/docs/toc-linspector.lib.services-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - services - - - - - -

Module services

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.services.http-module.html b/docs/toc-linspector.lib.services.http-module.html deleted file mode 100644 index 6bf0527..0000000 --- a/docs/toc-linspector.lib.services.http-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - http - - - - - -

Module http

-
-

Classes

- HttpService

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.services.ping-module.html b/docs/toc-linspector.lib.services.ping-module.html deleted file mode 100644 index c049e6a..0000000 --- a/docs/toc-linspector.lib.services.ping-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - ping - - - - - -

Module ping

-
-

Classes

- PingService

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.services.service-module.html b/docs/toc-linspector.lib.services.service-module.html deleted file mode 100644 index 6757a80..0000000 --- a/docs/toc-linspector.lib.services.service-module.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - service - - - - - -

Module service

-
-

Classes

- Service

Variables

- KEY_ARGS
KEY_COMMENT
KEY_FAILS
KEY_PARSER
KEY_PERIODS
KEY_THRESHOLD
__package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.services.shell-module.html b/docs/toc-linspector.lib.services.shell-module.html deleted file mode 100644 index 0ed2a3f..0000000 --- a/docs/toc-linspector.lib.services.shell-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - shell - - - - - -

Module shell

-
-

Classes

- ShellService

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.services.snmpget-module.html b/docs/toc-linspector.lib.services.snmpget-module.html deleted file mode 100644 index 48993cf..0000000 --- a/docs/toc-linspector.lib.services.snmpget-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - snmpget - - - - - -

Module snmpget

-
-

Classes

- SnmpgetService

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.services.ssh-module.html b/docs/toc-linspector.lib.services.ssh-module.html deleted file mode 100644 index a4243af..0000000 --- a/docs/toc-linspector.lib.services.ssh-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - ssh - - - - - -

Module ssh

-
-

Classes

- SshService

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.services.tcpconnect-module.html b/docs/toc-linspector.lib.services.tcpconnect-module.html deleted file mode 100644 index 20ebe57..0000000 --- a/docs/toc-linspector.lib.services.tcpconnect-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - tcpconnect - - - - - -

Module tcpconnect

-
-

Classes

- TcpconnectService

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.tasks-module.html b/docs/toc-linspector.lib.tasks-module.html deleted file mode 100644 index 4418af7..0000000 --- a/docs/toc-linspector.lib.tasks-module.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - tasks - - - - - -

Module tasks

-
-

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.tasks.email-module.html b/docs/toc-linspector.lib.tasks.email-module.html deleted file mode 100644 index 75078e5..0000000 --- a/docs/toc-linspector.lib.tasks.email-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - email - - - - - -

Module email

-
-

Classes

- EmailTask

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.tasks.sms-module.html b/docs/toc-linspector.lib.tasks.sms-module.html deleted file mode 100644 index aad4bdf..0000000 --- a/docs/toc-linspector.lib.tasks.sms-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - sms - - - - - -

Module sms

-
-

Classes

- SmsTask

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.tasks.task-module.html b/docs/toc-linspector.lib.tasks.task-module.html deleted file mode 100644 index b86739f..0000000 --- a/docs/toc-linspector.lib.tasks.task-module.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - task - - - - - -

Module task

-
-

Classes

- Task

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc-linspector.lib.tasks.xmpp-module.html b/docs/toc-linspector.lib.tasks.xmpp-module.html deleted file mode 100644 index 85097a0..0000000 --- a/docs/toc-linspector.lib.tasks.xmpp-module.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - xmpp - - - - - -

Module xmpp

-
-

Classes

- XmppTask

Functions

- create

Variables

- __package__

-[hide private] - - - - diff --git a/docs/toc.html b/docs/toc.html deleted file mode 100644 index 60a7467..0000000 --- a/docs/toc.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - Table of Contents - - - - - -

Table of Contents

-
- Everything -
-

Modules

- linspector
linspector.lib
linspector.lib.config
linspector.lib.config.config
linspector.lib.config.hostgroups
linspector.lib.config.hosts
linspector.lib.config.layouts
linspector.lib.config.members
linspector.lib.config.parser
linspector.lib.config.periods
linspector.lib.config.services
linspector.lib.config.tasks
linspector.lib.core
linspector.lib.core.command
linspector.lib.core.daemon
linspector.lib.core.job
linspector.lib.core.linspector_daemon
linspector.lib.core.logger
linspector.lib.parsers
linspector.lib.parsers.parser
linspector.lib.processors
linspector.lib.processors.mongodb
linspector.lib.processors.processor
linspector.lib.processors.syslog
linspector.lib.services
linspector.lib.services.http
linspector.lib.services.ping
linspector.lib.services.service
linspector.lib.services.shell
linspector.lib.services.snmpget
linspector.lib.services.ssh
linspector.lib.services.tcpconnect
linspector.lib.tasks
linspector.lib.tasks.email
linspector.lib.tasks.sms
linspector.lib.tasks.task
linspector.lib.tasks.xmpp

- [hide private] - - - -