monitor.git
14 years agomerge recent v2 changes; migrating to v3 2.0 2.0
Stephen Soltesz [Thu, 28 May 2009 15:16:27 +0000 (15:16 +0000)]
merge recent v2 changes; migrating to v3

14 years agofix db consistency 'IntegryErrors'
Stephen Soltesz [Wed, 27 May 2009 15:50:19 +0000 (15:50 +0000)]
fix db consistency 'IntegryErrors'

14 years agoTagging module Monitor - Monitor-2.0-12
Stephen Soltesz [Tue, 28 Apr 2009 20:47:18 +0000 (20:47 +0000)]
Tagging module Monitor - Monitor-2.0-12
improve installation
improve nodequery defaults
add RT configuration check in mailer.py

14 years agoallow a simple test of RT
Stephen Soltesz [Tue, 28 Apr 2009 20:42:06 +0000 (20:42 +0000)]
allow a simple test of RT

14 years agofix installation and order of monitor db creation in init
Stephen Soltesz [Tue, 28 Apr 2009 20:30:10 +0000 (20:30 +0000)]
fix installation and order of monitor db creation in init
make node query work a little more nicely
make imports work correctly in interface.py

14 years agoTagging module Monitor - Monitor-2.0-11
Stephen Soltesz [Mon, 27 Apr 2009 21:25:37 +0000 (21:25 +0000)]
Tagging module Monitor - Monitor-2.0-11
remove zabbix
improve install support
allow web to use monitor module in more cases.

14 years agoadd Rpyc
Stephen Soltesz [Mon, 27 Apr 2009 21:18:59 +0000 (21:18 +0000)]
add Rpyc

14 years agoremove zabbix some more
Stephen Soltesz [Mon, 27 Apr 2009 21:08:57 +0000 (21:08 +0000)]
remove zabbix some more
put several files into the monitor module so that the web server can load it
correctly
move Rpyc into the monitor module.

14 years ago(no commit message)
Stephen Soltesz [Mon, 27 Apr 2009 17:26:53 +0000 (17:26 +0000)]

14 years ago(no commit message)
Stephen Soltesz [Mon, 27 Apr 2009 17:17:48 +0000 (17:17 +0000)]

14 years agorpm doesn't build without a file maybe?
Stephen Soltesz [Mon, 27 Apr 2009 17:16:05 +0000 (17:16 +0000)]
rpm doesn't build without a file maybe?

14 years agoadd a server-deps package to make rpm installs easier for monitor-server
Stephen Soltesz [Mon, 27 Apr 2009 17:04:51 +0000 (17:04 +0000)]
add a server-deps package to make rpm installs easier for monitor-server

14 years agoremove zabbix from spec file.
Stephen Soltesz [Fri, 24 Apr 2009 23:21:32 +0000 (23:21 +0000)]
remove zabbix from spec file.
add better exceptions to pcucontrol models
add extra delete statements for findbad tables in plccache

15 years agoTagging module Monitor - Monitor-2.0-10
Stephen Soltesz [Thu, 16 Apr 2009 23:03:44 +0000 (23:03 +0000)]
Tagging module Monitor - Monitor-2.0-10
sync
cache
better policy

15 years agouse cached values more consistently.
Stephen Soltesz [Thu, 16 Apr 2009 22:53:27 +0000 (22:53 +0000)]
use cached values more consistently.
add syncwithplc.py

15 years agoTagging module Monitor - Monitor-2.0-9
Stephen Soltesz [Sat, 4 Apr 2009 00:30:36 +0000 (00:30 +0000)]
Tagging module Monitor - Monitor-2.0-9
added new models to db.
major updates throughout.
better unification. needs an install test.

15 years agoadded xmlrpc calls for applying and removing penalties to sites
Stephen Soltesz [Sat, 4 Apr 2009 00:29:19 +0000 (00:29 +0000)]
added xmlrpc calls for applying and removing penalties to sites
added views for site and node histories.

15 years agoBig change set.
Stephen Soltesz [Sat, 4 Apr 2009 00:28:13 +0000 (00:28 +0000)]
Big change set.
added plccache objects for the db rather than pkl
moved SiteInterface into interface.py to make it accessible by the web server
added blacklist support for hostnames and loginbases
fixed pcubad logic
fixed sitebad logic
added new *history functions to controllers.py
updated files to use new cached plc data where possible.

15 years agoadd loginbase to blacklist
Stephen Soltesz [Thu, 2 Apr 2009 17:57:58 +0000 (17:57 +0000)]
add loginbase to blacklist
add requires to pcucontrol module
checked new-site-enable policy

15 years agoremove old blacklist
Stephen Soltesz [Wed, 1 Apr 2009 20:04:42 +0000 (20:04 +0000)]
remove old blacklist
add policy execution to automate-default.sh

15 years agoTagging module Monitor - Monitor-2.0-8
Stephen Soltesz [Wed, 1 Apr 2009 18:35:43 +0000 (18:35 +0000)]
Tagging module Monitor - Monitor-2.0-8
removed old pkl database references.
added blacklist to db model
added fix to IntelAMT remoteControl to start an power-down node
added policy.py
added global error count before bailing entirely.

15 years agoadded --node option throughout calls
Stephen Soltesz [Tue, 31 Mar 2009 21:27:49 +0000 (21:27 +0000)]
added --node option throughout calls
fixed a typo

15 years agoadded extra call to ensure that the node is started before calling 'reset',
Stephen Soltesz [Tue, 31 Mar 2009 21:27:00 +0000 (21:27 +0000)]
added extra call to ensure that the node is started before calling 'reset',
which fails if the nodes is not already running.

15 years agoadded blacklist to action.py
Stephen Soltesz [Tue, 31 Mar 2009 19:52:48 +0000 (19:52 +0000)]
added blacklist to action.py
added blacklist to policy and sitebad
updated blacklist.py to use the db.
added maximum error count to plc.py to prevent endless protocolerrors when
the API is broken.

15 years agoadded policy.py and updated bootman.py to work with the new policy framework.
Stephen Soltesz [Mon, 30 Mar 2009 20:00:48 +0000 (20:00 +0000)]
added policy.py and updated bootman.py to work with the new policy framework.
replaced old persistflags objects with node or site history queries.
minor tweaks to web interface.

15 years agoTagging module Monitor - Monitor-2.0-7
Stephen Soltesz [Fri, 27 Mar 2009 17:08:52 +0000 (17:08 +0000)]
Tagging module Monitor - Monitor-2.0-7
improved db model
updated files that use db model
updated web view based on node, site, and pcu states.
added local mirror to zabbix Make file.

15 years agomoved found_within to common.py
Stephen Soltesz [Fri, 27 Mar 2009 17:07:07 +0000 (17:07 +0000)]
moved found_within to common.py
renamed email messages in emailTxt to reflect action types
updated findbad model to perform single-node queries correctly.
added node.status categories to nodelist.kid since this is the primary
difference between nodes now.

15 years agosvn-keywords
Thierry Parmentelat [Fri, 27 Mar 2009 07:46:34 +0000 (07:46 +0000)]
svn-keywords

15 years agosource forge mirror is down : use zabbix cached in third-party
Thierry Parmentelat [Fri, 27 Mar 2009 07:45:56 +0000 (07:45 +0000)]
source forge mirror is down : use zabbix cached in third-party

15 years agoupdate to db model. now uses automatic history on updates: acts_as_versioned()
Stephen Soltesz [Wed, 25 Mar 2009 17:47:08 +0000 (17:47 +0000)]
update to db model.  now uses automatic history on updates: acts_as_versioned()
updated files that used old '*Sync' and old messy Findbad*Records.

15 years agoTagging module Monitor - Monitor-2.0-6
Stephen Soltesz [Tue, 24 Mar 2009 15:13:17 +0000 (15:13 +0000)]
Tagging module Monitor - Monitor-2.0-6
added action view to gui
added penalty_applied bit to db model.

15 years agoadd actions to gui
Stephen Soltesz [Tue, 24 Mar 2009 15:11:26 +0000 (15:11 +0000)]
add actions to gui
add penalty_applied bit

15 years agoTagging module Monitor - Monitor-2.0-5
Stephen Soltesz [Sat, 21 Mar 2009 00:15:28 +0000 (00:15 +0000)]
Tagging module Monitor - Monitor-2.0-5
tag for updates to 2.0 db model

15 years agoupdated the model for actions, site history
Stephen Soltesz [Sat, 21 Mar 2009 00:13:35 +0000 (00:13 +0000)]
updated the model for actions, site history
added email messages for new sample policy.py
enhanced web view to show penalties
updated model in nodebad, pcubad, sitebad

15 years agoon branch.
Stephen Soltesz [Tue, 17 Mar 2009 18:59:06 +0000 (18:59 +0000)]
on branch.

15 years agomerged into 2.0 branch.
Stephen Soltesz [Mon, 16 Mar 2009 16:43:25 +0000 (16:43 +0000)]
merged into 2.0 branch.

15 years agoadded line breaks for pcu hints,
Stephen Soltesz [Fri, 13 Mar 2009 22:32:54 +0000 (22:32 +0000)]
added line breaks for pcu hints,
added clearer message for catching exception strings.

15 years agoallow dir to act as a module.
Stephen Soltesz [Fri, 13 Mar 2009 17:15:59 +0000 (17:15 +0000)]
allow dir to act as a module.

15 years agoTagging module Monitor - Monitor-2.0-4
Stephen Soltesz [Fri, 13 Mar 2009 17:01:44 +0000 (17:01 +0000)]
Tagging module Monitor - Monitor-2.0-4
splits reboot.py across pcucontrol and monitor modules
moves command.py from monitor/util to pcucontrol/util

15 years agocatch an exception from DRAC logins when the connection is closed early.
Stephen Soltesz [Thu, 12 Mar 2009 19:33:16 +0000 (19:33 +0000)]
catch an exception from DRAC logins when the connection is closed early.

15 years agoadd exception for KeyboardInterrupt to allow for manual stop without
Stephen Soltesz [Thu, 12 Mar 2009 18:51:04 +0000 (18:51 +0000)]
add exception for KeyboardInterrupt to allow for manual stop without
generating exception emails.

15 years agomissed that pcucontrol still depended on the command.py file.
Stephen Soltesz [Thu, 12 Mar 2009 18:08:48 +0000 (18:08 +0000)]
missed that pcucontrol still depended on the command.py file.
moved this into pcucontrol and adjusted dependencies/imports accordingly.

15 years agomoved to pcucontrol module
Stephen Soltesz [Thu, 12 Mar 2009 17:33:28 +0000 (17:33 +0000)]
moved to pcucontrol module

15 years agomove command.py from monitor module into pcucontrol module. pcucontrol should
Stephen Soltesz [Thu, 12 Mar 2009 17:33:06 +0000 (17:33 +0000)]
move command.py from monitor module into pcucontrol module.  pcucontrol should
be self-contained.

15 years agosplit reboot.py across pcucontrol and monitor modules.
Stephen Soltesz [Wed, 11 Mar 2009 21:06:44 +0000 (21:06 +0000)]
split reboot.py across pcucontrol and monitor modules.
now pcucontrol is compeletely independent.
improved the timeout function in util/command.py.
allows script to hop past nodes that are really broken.
minor edits to address reboot.py changes.

15 years agobreak out the functions that are needed by the monitor module for rebooting
Stephen Soltesz [Wed, 11 Mar 2009 20:13:45 +0000 (20:13 +0000)]
break out the functions that are needed by the monitor module for rebooting
and pcucontrol, in order to make pcucontrol a stand-alone module with no
dependencies.

15 years agoTagging module Monitor - Monitor-2.0-3
Stephen Soltesz [Tue, 10 Mar 2009 22:21:10 +0000 (22:21 +0000)]
Tagging module Monitor - Monitor-2.0-3
add email exceptions
other bug fixes.

15 years agofixed runtime errors for findall default values
Stephen Soltesz [Tue, 10 Mar 2009 22:18:47 +0000 (22:18 +0000)]
fixed runtime errors for findall default values
added fix for site lookup for nodes without correct status information

15 years agoadd email_exception() calls throughout code.
Stephen Soltesz [Tue, 10 Mar 2009 20:48:06 +0000 (20:48 +0000)]
add email_exception() calls throughout code.

15 years agochange to make findall run over other things.
Stephen Soltesz [Tue, 10 Mar 2009 20:14:29 +0000 (20:14 +0000)]
change to make findall run over other things.

15 years agoTagging module Monitor - Monitor-2.0-2
Stephen Soltesz [Tue, 10 Mar 2009 20:13:53 +0000 (20:13 +0000)]
Tagging module Monitor - Monitor-2.0-2
getting the pcucontrol and findall.py scripts to work in an integrated
fashion.

15 years agofixes for pcucontrol and DRAC control.
Stephen Soltesz [Tue, 10 Mar 2009 20:07:06 +0000 (20:07 +0000)]
fixes for pcucontrol and DRAC control.
added temporary old-to-new name mapping in reboot.py
added sitelist option to findbadpcu.py
many fixes otherwise.

15 years agoBranch 3.0 for module Monitor created (as new trunk) from tag Monitor-2.0-1
Stephen Soltesz [Fri, 27 Feb 2009 23:23:20 +0000 (23:23 +0000)]
Branch 3.0 for module Monitor created (as new trunk) from tag Monitor-2.0-1

15 years agoTagging module Monitor - Monitor-2.0-1
Stephen Soltesz [Fri, 27 Feb 2009 23:20:14 +0000 (23:20 +0000)]
Tagging module Monitor - Monitor-2.0-1
preparing to make a 2.0 branch for monitor.

15 years agomerge from improvements on the 1.0 branch:
Stephen Soltesz [Fri, 27 Feb 2009 23:18:17 +0000 (23:18 +0000)]
merge from improvements on the 1.0 branch:
  svn merge -r 11011:12303 https://svn.planet-lab.org/svn/Monitor/branches/1.0/

15 years agoremoved print statements
Stephen Soltesz [Fri, 27 Feb 2009 23:07:00 +0000 (23:07 +0000)]
removed print statements
moved default port for webmon

15 years agoonly report one for now.
Stephen Soltesz [Wed, 18 Feb 2009 23:07:50 +0000 (23:07 +0000)]
only report one for now.

15 years agoget redirection to really work.
Stephen Soltesz [Wed, 18 Feb 2009 23:07:11 +0000 (23:07 +0000)]
get redirection to really work.
converted to spaces
added different runlevels for cmdline-specified environment

15 years agoadded stop
Stephen Soltesz [Wed, 18 Feb 2009 22:06:35 +0000 (22:06 +0000)]
added stop
allow running from pwd (BM) or /usr/bin/ (production)

15 years agoadd correct runlevel actions to monitor-runlevelagent.ini
Stephen Soltesz [Wed, 18 Feb 2009 19:54:21 +0000 (19:54 +0000)]
add correct runlevel actions to monitor-runlevelagent.ini
minor updates to rla.py

15 years agoaccount for all files.
Stephen Soltesz [Wed, 18 Feb 2009 18:49:32 +0000 (18:49 +0000)]
account for all files.

15 years ago(no commit message)
Stephen Soltesz [Wed, 18 Feb 2009 18:45:44 +0000 (18:45 +0000)]

15 years agowrong name.
Stephen Soltesz [Wed, 18 Feb 2009 18:45:36 +0000 (18:45 +0000)]
wrong name.

15 years agoadd a new rpm package for monitor-runlevelagent that packages RunlevelAgent.py
Stephen Soltesz [Wed, 18 Feb 2009 18:39:52 +0000 (18:39 +0000)]
add a new rpm package for monitor-runlevelagent that packages RunlevelAgent.py
in the root context, and with which the bootmanager build script can pull in
the script to run at boot time.

15 years agoeasily run findbad, fbpcu and sitebad for web. all at once.
Stephen Soltesz [Thu, 12 Feb 2009 21:20:51 +0000 (21:20 +0000)]
easily run findbad, fbpcu and sitebad for web. all at once.

15 years agoadded sitelist option for find* scripts.
Stephen Soltesz [Thu, 12 Feb 2009 21:19:36 +0000 (21:19 +0000)]
added sitelist option for find* scripts.
clarified email message in emailZabbix.

15 years agofixed the environment. not sure how that got mixed up.
Stephen Soltesz [Thu, 12 Feb 2009 21:16:13 +0000 (21:16 +0000)]
fixed the environment.  not sure how that got mixed up.

15 years agoapply the correct indentation level. doh.
Stephen Soltesz [Thu, 12 Feb 2009 21:15:19 +0000 (21:15 +0000)]
apply the correct indentation level.  doh.

15 years agostop the tg web server before restarting it.
Stephen Soltesz [Thu, 12 Feb 2009 21:14:56 +0000 (21:14 +0000)]
stop the tg web server before restarting it.

15 years agolookup path relative to python installation.
Stephen Soltesz [Thu, 12 Feb 2009 21:14:34 +0000 (21:14 +0000)]
lookup path relative to python installation.

15 years agotrying to fix build failure.
Stephen Soltesz [Wed, 21 Jan 2009 16:27:05 +0000 (16:27 +0000)]
trying to fix build failure.

15 years agoupdate to latest stable version of zabbix. 1.6.2
Stephen Soltesz [Tue, 20 Jan 2009 22:08:10 +0000 (22:08 +0000)]
update to latest stable version of zabbix. 1.6.2

15 years agotesting delays and email notice tweaks.
Stephen Soltesz [Tue, 20 Jan 2009 18:45:53 +0000 (18:45 +0000)]
testing delays and email notice tweaks.

15 years agoadd getNodeAPI()
Stephen Soltesz [Mon, 19 Jan 2009 17:42:49 +0000 (17:42 +0000)]
add getNodeAPI()

15 years agoallow the ssh-version of the drac command to function correctly with drac5 and
Stephen Soltesz [Thu, 15 Jan 2009 19:45:41 +0000 (19:45 +0000)]
allow the ssh-version of the drac command to function correctly with drac5 and
the included pexpect scripts.

15 years agoupdated module import statements. not sure how I missed these before.
Stephen Soltesz [Tue, 13 Jan 2009 17:41:26 +0000 (17:41 +0000)]
updated module import statements.  not sure how I missed these before.

15 years ago(no commit message)
Stephen Soltesz [Mon, 12 Jan 2009 20:32:51 +0000 (20:32 +0000)]

15 years agoimprovements.
Stephen Soltesz [Mon, 12 Jan 2009 20:31:54 +0000 (20:31 +0000)]
improvements.
added site delete to zabbixsync
added confirm_ids to model

15 years agomoved nodecommon.py into monitor module
Stephen Soltesz [Thu, 8 Jan 2009 22:05:36 +0000 (22:05 +0000)]
moved nodecommon.py into monitor module
updated many files that imported nodecommon
added 'node-discovered' message to eamilZabbix
added 'node-discovered' message to zabbixsite.py

15 years agoadded this because I missed it previously.
Stephen Soltesz [Thu, 8 Jan 2009 22:01:34 +0000 (22:01 +0000)]
added this because I missed it previously.

15 years agostart zabbix_agent after installing it... assumes it's in a prod env.
Stephen Soltesz [Thu, 8 Jan 2009 18:05:37 +0000 (18:05 +0000)]
start zabbix_agent after installing it... assumes it's in a prod env.
fixed path in patch for monitor.spec

15 years agoadd an option to drop databases
Stephen Soltesz [Wed, 7 Jan 2009 22:31:04 +0000 (22:31 +0000)]
add an option to drop databases
move a database model import to a function.

15 years agotrimmed-down reboot module, now imports all pcucontrol models at once
Stephen Soltesz [Tue, 6 Jan 2009 19:29:15 +0000 (19:29 +0000)]
trimmed-down reboot module, now imports all pcucontrol models at once

15 years agoPCU Class objects broken out into individual files.
Stephen Soltesz [Tue, 6 Jan 2009 19:22:26 +0000 (19:22 +0000)]
PCU Class objects broken out into individual files.

15 years agoseparate pcucontrol package.
Stephen Soltesz [Mon, 5 Jan 2009 17:43:52 +0000 (17:43 +0000)]
separate pcucontrol package.

15 years agoTagging module Monitor - Monitor-2.0-0
Stephen Soltesz [Mon, 5 Jan 2009 17:42:20 +0000 (17:42 +0000)]
Tagging module Monitor - Monitor-2.0-0
new changes are significantly different, that I'm upping the number for clarity.

15 years ago(no commit message)
Stephen Soltesz [Mon, 5 Jan 2009 16:53:45 +0000 (16:53 +0000)]

15 years agoallow auto-login into the zabbix account. this will allow other scripts to
Stephen Soltesz [Tue, 23 Dec 2008 16:28:20 +0000 (16:28 +0000)]
allow auto-login into the zabbix account.  this will allow other scripts to
link directly into the zabbix inteface without requiring users to log into
zabbix.
this will require username be passed, and should be protected behind the
primary server, to prevent unauthorized access to it.

15 years agofixed errors with includes in scanapi
Stephen Soltesz [Mon, 22 Dec 2008 22:10:40 +0000 (22:10 +0000)]
fixed errors with includes in scanapi
fixed arguments in automate-default.sh
allow additional comments for acknowledged issues.

15 years agomodified findbad and findbadpcu to use scanapi. need to combine these files.
Stephen Soltesz [Fri, 19 Dec 2008 22:08:13 +0000 (22:08 +0000)]
modified findbad and findbadpcu to use scanapi. need to combine these files.
controllers.py references scanapi.

15 years agounify the model by which probes are made to collect information about nodes or
Stephen Soltesz [Fri, 19 Dec 2008 21:30:03 +0000 (21:30 +0000)]
unify the model by which probes are made to collect information about nodes or
pcus, or whatever we'd like.

15 years agomodified *list templates with abreviated information
Stephen Soltesz [Thu, 18 Dec 2008 00:57:49 +0000 (00:57 +0000)]
modified *list templates with abreviated information
consolidated *view templates into a single template, pcuview. should rename it.
updated findbad/findbadpcu to update the global round only after data collection is complete.
this solves the 'no information' errors when new scan is started.

15 years agomany improvements.
Stephen Soltesz [Sat, 13 Dec 2008 00:19:20 +0000 (00:19 +0000)]
many improvements.
improved views and links between them.
improved pcuview
added testing functions for rebooting, and probing the node state in real-time.
improved pcucontrol/reboot.py object model.
improved findbad.py ability to update a single record.  more needed here.

15 years agoformat uris from site, node, pcu details
Stephen Soltesz [Thu, 11 Dec 2008 21:16:13 +0000 (21:16 +0000)]
format uris from site, node, pcu details

15 years agoremove directory
Stephen Soltesz [Thu, 11 Dec 2008 21:12:12 +0000 (21:12 +0000)]
remove directory

15 years agoadded a variety of updates to templates, to reference each other.
Stephen Soltesz [Sat, 6 Dec 2008 01:36:21 +0000 (01:36 +0000)]
added a variety of updates to templates, to reference each other.
updates to init script to work better after install.
updated automate fxn, and
monitor-server.cron will run automate & sync from install time.

15 years agoadded extlink icon for links that point to either PLCwww or Zabbix web pages.
Stephen Soltesz [Fri, 5 Dec 2008 00:01:37 +0000 (00:01 +0000)]
added extlink icon for links that point to either PLCwww or Zabbix web pages.

15 years agoadd functions for pcuview, nodeview, & siteview
Stephen Soltesz [Thu, 4 Dec 2008 23:29:42 +0000 (23:29 +0000)]
add functions for pcuview, nodeview, & siteview

15 years agoadded action list, for any current acknowledged problems, as well as un-acknowledged...
Stephen Soltesz [Thu, 4 Dec 2008 23:29:00 +0000 (23:29 +0000)]
added action list, for any current acknowledged problems, as well as un-acknowledged problems.
added and a view page for displaying, site, node, & pcu details
modified sitelist to reference the siteview page.

15 years agofixed the httpd conf issue with redirecting to /monitor/
Stephen Soltesz [Thu, 4 Dec 2008 22:21:20 +0000 (22:21 +0000)]
fixed the httpd conf issue with redirecting to /monitor/
added styles for severity levels on node actions from zabbix
added extra class definitions to zabbixapi/model.py for event queries
added ack'd/non-ack'd action view based on zabbix db.