monitor.git
15 years agoadd default /etc/monitor.conf to monitor-server.init
Stephen Soltesz [Tue, 18 Nov 2008 22:05:20 +0000 (22:05 +0000)]
add default /etc/monitor.conf to monitor-server.init

15 years agofixes to the monitor-server.init to update the password if any of serveral
Stephen Soltesz [Mon, 17 Nov 2008 22:55:52 +0000 (22:55 +0000)]
fixes to the monitor-server.init to update the password if any of serveral
actions occur.
added zabbix as dependency of monitor-server.
fixed bug in zabbix.spec to uncommend DBPassword field in zabbix_server.conf

15 years agoAdded infovacuum model
Stephen Soltesz [Sat, 15 Nov 2008 01:10:34 +0000 (01:10 +0000)]
Added infovacuum model
Modified monitor-default.conf with new values for zabbix
Modified dborm to allow for multiple DB sessions

15 years ago(no commit message)
Stephen Soltesz [Fri, 14 Nov 2008 23:46:50 +0000 (23:46 +0000)]

15 years agoIntegrate the zabbix Elixir model into the monitor module.
Stephen Soltesz [Fri, 14 Nov 2008 23:46:18 +0000 (23:46 +0000)]
Integrate the zabbix Elixir model into the monitor module.
Added two scripts under zabbix/ for syncing site info from PLCdb to ZABBIXdb
Added these directories to setup.py for the monitor module

15 years agotake ownership of /etc/plc.d/monitor
Stephen Soltesz [Fri, 14 Nov 2008 17:00:21 +0000 (17:00 +0000)]
take ownership of /etc/plc.d/monitor

15 years ago(no commit message)
Stephen Soltesz [Thu, 13 Nov 2008 22:15:53 +0000 (22:15 +0000)]

15 years agominor updates to both files to fix bugs.
Stephen Soltesz [Thu, 13 Nov 2008 22:09:07 +0000 (22:09 +0000)]
minor updates to both files to fix bugs.

15 years agoAdded init scripts for monitor-server and -client.
Stephen Soltesz [Thu, 13 Nov 2008 21:40:23 +0000 (21:40 +0000)]
Added init scripts for monitor-server and -client.
added tests directory.
updated zabbix.spec

15 years agoMoved some files around and merged from 1.0 branch:
Stephen Soltesz [Wed, 12 Nov 2008 23:02:56 +0000 (23:02 +0000)]
Moved some files around and merged from 1.0 branch:
    svn merge -r 10858:11011 https://svn.planet-lab.org/svn/Monitor/branches/1.0/ [to trunk]

15 years agoautomate scripts
Stephen Soltesz [Wed, 12 Nov 2008 21:52:34 +0000 (21:52 +0000)]
automate scripts

15 years agomerged into Monitor.spec
Stephen Soltesz [Wed, 12 Nov 2008 21:06:26 +0000 (21:06 +0000)]
merged into Monitor.spec

15 years agoadded missing bits for server
Stephen Soltesz [Wed, 12 Nov 2008 21:02:02 +0000 (21:02 +0000)]
added missing bits for server

15 years agounified spec file for monitor-client and monitor-server
Stephen Soltesz [Wed, 12 Nov 2008 20:53:32 +0000 (20:53 +0000)]
unified spec file for monitor-client and monitor-server

15 years ago(no commit message)
Stephen Soltesz [Wed, 12 Nov 2008 20:34:39 +0000 (20:34 +0000)]

15 years agoadd setup files for the monitor module
Stephen Soltesz [Wed, 12 Nov 2008 20:33:31 +0000 (20:33 +0000)]
add setup files for the monitor module

15 years ago(no commit message)
Stephen Soltesz [Wed, 12 Nov 2008 20:33:07 +0000 (20:33 +0000)]

15 years agoi'm not sure what this is.
Stephen Soltesz [Wed, 12 Nov 2008 19:17:24 +0000 (19:17 +0000)]
i'm not sure what this is.

15 years agouse plccache, instead of directly loading pkl files
Stephen Soltesz [Wed, 12 Nov 2008 00:31:22 +0000 (00:31 +0000)]
use plccache, instead of directly loading pkl files
dumpact.py
pcuinfo.py
findbad.py
showlatlon.py
nodebad.py
pcubad.py
dumpdiag.py
findbadpcu.py
nodeinfo.py
sitebad.py
monitor_policy.py

operate on new database model
nodequery.py
clean_policy.py
nodecommon.py  - updated key names in fields
bootman.py
nodeinfo.py
siteinfo.py
nodegroups.py
nodeconfig.py

Use latest monitor module
getconf.py
grouprins.py

todo

15 years agospec file to build zabbix packages.
Stephen Soltesz [Tue, 11 Nov 2008 23:27:46 +0000 (23:27 +0000)]
spec file to build zabbix packages.
Makefile to fetch package and test rpm build...

15 years agomoving syncplcdb into the monitor python module dir.
Stephen Soltesz [Thu, 16 Oct 2008 20:35:54 +0000 (20:35 +0000)]
moving syncplcdb into the monitor python module dir.

15 years agomerge from:
Stephen Soltesz [Thu, 16 Oct 2008 20:26:08 +0000 (20:26 +0000)]
merge from:
svn merge -r 10598:10858 https://svn.planet-lab.org/svn/Monitor/branches/1.0/ [into trunk]

Also removing unused files.
Added cached PLC object wrapper to automatically cache all calls to the Get*
api calls.  I'll be transforming syncplcdb.py in this cache entry point.

15 years agomass commit. updates for the new db schema in findbad, findbadpcu, nodequery,
Stephen Soltesz [Mon, 13 Oct 2008 18:05:07 +0000 (18:05 +0000)]
mass commit.  updates for the new db schema in findbad, findbadpcu, nodequery,
and friends.  several files moved into python module dir.

15 years ago(no commit message)
Stephen Soltesz [Fri, 10 Oct 2008 19:17:30 +0000 (19:17 +0000)]

15 years agoclean up
Stephen Soltesz [Fri, 10 Oct 2008 19:09:33 +0000 (19:09 +0000)]
clean up

15 years agojust whole-sale copy the monitor module into python site-arch.
Stephen Soltesz [Fri, 10 Oct 2008 15:46:44 +0000 (15:46 +0000)]
just whole-sale copy the monitor module into python site-arch.
find a better way later.

15 years agouse new monitor.database for data model import
Stephen Soltesz [Thu, 9 Oct 2008 21:13:14 +0000 (21:13 +0000)]
use new monitor.database for data model import
move config.py into monitor python module.

15 years agoavoid name conflict with global module
Stephen Soltesz [Thu, 9 Oct 2008 21:01:59 +0000 (21:01 +0000)]
avoid name conflict with global module

15 years agosplitting database fxn
Stephen Soltesz [Thu, 9 Oct 2008 21:01:24 +0000 (21:01 +0000)]
splitting database fxn

15 years agojust commit everything...
Stephen Soltesz [Thu, 9 Oct 2008 20:58:59 +0000 (20:58 +0000)]
just commit everything...

15 years agodeleting util from this location
Stephen Soltesz [Thu, 9 Oct 2008 20:58:41 +0000 (20:58 +0000)]
deleting util from this location

15 years agoremoving from top level dir. in favor of monitor/ module dir.
Stephen Soltesz [Thu, 9 Oct 2008 20:58:26 +0000 (20:58 +0000)]
removing from top level dir. in favor of monitor/ module dir.

15 years agoMoved util dir from root to the 'monitor' python module directory.
Stephen Soltesz [Thu, 9 Oct 2008 20:56:32 +0000 (20:56 +0000)]
Moved util dir from root to the 'monitor' python module directory.
I'm trying to create a unified python module there.

15 years agonew repository root
Stephen Soltesz [Thu, 25 Sep 2008 16:18:55 +0000 (16:18 +0000)]
new repository root

15 years agotest
Stephen Soltesz [Thu, 25 Sep 2008 16:14:04 +0000 (16:14 +0000)]
test

15 years agobring into trunk
Stephen Soltesz [Wed, 24 Sep 2008 19:31:59 +0000 (19:31 +0000)]
bring into trunk

15 years agoremove monitorconfig.py on trunk also.
Stephen Soltesz [Wed, 24 Sep 2008 19:28:51 +0000 (19:28 +0000)]
remove monitorconfig.py on trunk also.

15 years ago(no commit message)
Stephen Soltesz [Wed, 24 Sep 2008 16:04:35 +0000 (16:04 +0000)]

15 years agoBranch 1.1 for module Monitor created from tag Monitor-1.0-8
Stephen Soltesz [Wed, 24 Sep 2008 15:49:26 +0000 (15:49 +0000)]
Branch 1.1 for module Monitor created from tag Monitor-1.0-8

15 years agoTagging module Monitor - Monitor-1.0-8
Stephen Soltesz [Wed, 24 Sep 2008 15:48:06 +0000 (15:48 +0000)]
Tagging module Monitor - Monitor-1.0-8

These are all changes in the latest Monitor code.  I will branch this version
next, before making additional large changes.

15 years agoM emailTxt.py
Stephen Soltesz [Tue, 23 Sep 2008 19:53:34 +0000 (19:53 +0000)]
M    emailTxt.py
updated description of error message from CoMon since it has changed.
M    showlatlon.py
updated hardware spec thresholds to include more machines.
M    clean_policy.py
stricter activation of the 'action-levels' that each event triggers.
Previously things were out of sorts.
M    unified_model.py
works with the 'action-level' changes above.
M    nodesets.py
M    grouprins.py
add a site option
M    nodecommon.py
add missing module
M    bootman.py
M    rtinfo.py
M    todo

15 years agoadds last_contact column
Stephen Soltesz [Tue, 23 Sep 2008 19:49:03 +0000 (19:49 +0000)]
adds last_contact column

15 years agoTagging module Monitor - Monitor-1.0-7
Thierry Parmentelat [Mon, 1 Sep 2008 12:54:52 +0000 (12:54 +0000)]
Tagging module Monitor - Monitor-1.0-7
Checkpointing current version for 4.2-rc21 - many many changes

15 years agoupdate of all changes in the last week that fine-tuned the behavior of Monitor
Stephen Soltesz [Tue, 26 Aug 2008 02:02:06 +0000 (02:02 +0000)]
update of all changes in the last week that fine-tuned the behavior of Monitor
with the new clean_policy and unified_model.

15 years ago(no commit message)
Stephen Soltesz [Fri, 15 Aug 2008 22:37:53 +0000 (22:37 +0000)]

15 years agorequire nmap, and add a place holder for the monitorconfig.php file generated
Stephen Soltesz [Fri, 15 Aug 2008 22:36:56 +0000 (22:36 +0000)]
require nmap, and add a place holder for the monitorconfig.php file generated
after monitor.conf is filled in.

15 years agowww/database.php
Stephen Soltesz [Fri, 15 Aug 2008 22:07:49 +0000 (22:07 +0000)]
www/database.php
add hack to conver monitor.conf into monitorconfig.php
findbad.py
use new util.file rather than old config.*
nodebad.py
added --site argument
testapi.py
accept site from cmd line.
nodecommon.py
added get_nodeset to consolidate the code for getting a set of nodes from
cmd line.
findbadpcu.py
added --site argument
database.py
use package's version of PHPUnserialize and PHPSerialize.
monitor-default.conf
filled in usual default values.
phpconfig.py
load monitor.conf not old monitorconfig.py
todo

15 years agouse config module rather than monitorconfig.py
Stephen Soltesz [Fri, 15 Aug 2008 21:07:45 +0000 (21:07 +0000)]
use config module rather than monitorconfig.py

15 years agofixes
Stephen Soltesz [Fri, 15 Aug 2008 21:07:23 +0000 (21:07 +0000)]
fixes

15 years agolousy brute force install of python package.
Stephen Soltesz [Fri, 15 Aug 2008 19:57:40 +0000 (19:57 +0000)]
lousy brute force install of python package.

15 years ago(no commit message)
Stephen Soltesz [Fri, 15 Aug 2008 19:57:08 +0000 (19:57 +0000)]

15 years agoadd files to repository.
Stephen Soltesz [Fri, 15 Aug 2008 19:56:42 +0000 (19:56 +0000)]
add files to repository.

15 years agowww/printbadnodes.py
Stephen Soltesz [Fri, 15 Aug 2008 19:13:35 +0000 (19:13 +0000)]
www/printbadnodes.py
www/runlevels.py
use the new site-package module to pull in configuration information and
locate database files.

config.py
uses ConfigParser now.

nodequery.py
doesn't unconfitionally load findbad db.  sets up fbpcus for reboot module
printbadcsv.py
pull from monitor module for database and configuration
findbad.py
change default db name, and perform node_selects correctly with fb
fetch.py
debug statements to track parser.py error.
mailmonitor.py
simplify content.

nodebad.py
remove unnecessary db loads, and import from 'const' module.
parser.py
set nodeselect default to None rather than 'False'.
expected changes to parse_args() based on new config.py
pcubad.py
import constants from correct module
clean_policy.py
don't import from www modules
don't import from policy module
unified_model.py
remove unconditional db load
add two definitions from nodecommon and model.py
grouprins.py
use normal config.py
fix pcu identification logic.  really need to have a better fix for this.
monitor-server.spec
add requirements, the monitor python module,
nodecommon.py
moved node_end_record to unified_model.py
bootman.py
load from 'const.py'
additional boot sequence ids.
policy.py
removed various functions for clean policy.
findbadpcu.py
update use of parser module
nodeinfo.py
remove unconditional loads
add node.last_changed output
database.py
conflate config and monitorconfig
reboot.py
remove unconditional load
monitor_policy.py
add funcs from policy.py

15 years agothirdparty package for creating threadpools.
Stephen Soltesz [Thu, 14 Aug 2008 21:12:59 +0000 (21:12 +0000)]
thirdparty package for creating threadpools.

15 years agorename to default value.
Stephen Soltesz [Thu, 14 Aug 2008 20:44:06 +0000 (20:44 +0000)]
rename to default value.

15 years agodefault config file
Stephen Soltesz [Thu, 14 Aug 2008 20:43:28 +0000 (20:43 +0000)]
default config file

15 years agoa directory for the python module files. this will help separate libraries
Stephen Soltesz [Wed, 13 Aug 2008 18:27:29 +0000 (18:27 +0000)]
a directory for the python module files.  this will help separate libraries
from commands, as well as make them globally accessible for www scripts as
well as command line cmds.

15 years agoout.
Stephen Soltesz [Wed, 13 Aug 2008 18:19:00 +0000 (18:19 +0000)]
out.

15 years agosvn renamed it.
Stephen Soltesz [Wed, 13 Aug 2008 18:18:42 +0000 (18:18 +0000)]
svn renamed it.

15 years agochanged my mind.
Stephen Soltesz [Wed, 13 Aug 2008 18:17:27 +0000 (18:17 +0000)]
changed my mind.

15 years agorename the old 'monitor.py' script.
Stephen Soltesz [Wed, 13 Aug 2008 18:17:14 +0000 (18:17 +0000)]
rename the old 'monitor.py' script.

15 years agotweaks
Stephen Soltesz [Tue, 12 Aug 2008 19:59:30 +0000 (19:59 +0000)]
tweaks

15 years agoadded a new type of disk error pattern.
Stephen Soltesz [Tue, 12 Aug 2008 19:59:10 +0000 (19:59 +0000)]
added a new type of disk error pattern.

15 years agospecifies a different tmpdir for g++ to use; and completes build.
Stephen Soltesz [Tue, 12 Aug 2008 19:57:58 +0000 (19:57 +0000)]
specifies a different tmpdir for g++ to use; and completes build.

15 years agoTry to build the AMT command. I expect the /tmp fs to be too small.
Stephen Soltesz [Tue, 12 Aug 2008 19:38:23 +0000 (19:38 +0000)]
Try to build the AMT command. I expect the /tmp fs to be too small.

15 years agono need to do this during make
Stephen Soltesz [Tue, 12 Aug 2008 19:24:18 +0000 (19:24 +0000)]
no need to do this during make

15 years agoabsolute version of RT for reference.
Stephen Soltesz [Mon, 11 Aug 2008 21:30:26 +0000 (21:30 +0000)]
absolute version of RT for reference.

15 years agodoes not belong in svn any more
Stephen Soltesz [Mon, 11 Aug 2008 21:24:30 +0000 (21:24 +0000)]
does not belong in svn any more

15 years agodoesn't belong in svn any more.
Stephen Soltesz [Mon, 11 Aug 2008 21:21:45 +0000 (21:21 +0000)]
doesn't belong in svn any more.

15 years agodefault automation script for running Monitor
Stephen Soltesz [Mon, 11 Aug 2008 21:21:15 +0000 (21:21 +0000)]
default automation script for running Monitor

15 years agoTagging module Monitor - Monitor-1.0-6
Stephen Soltesz [Mon, 11 Aug 2008 19:21:40 +0000 (19:21 +0000)]
Tagging module Monitor - Monitor-1.0-6
This is a major tag of every thing.  probably needs a very different release
number.

15 years agofix problem with spec file error. didn't reference an installed file in
Stephen Soltesz [Mon, 11 Aug 2008 15:44:06 +0000 (15:44 +0000)]
fix problem with spec file error.  didn't reference an installed file in
%files section.

15 years agoupdates to monitor-server.spec and notes in 'todo' based on first attempt to
Stephen Soltesz [Fri, 8 Aug 2008 22:37:35 +0000 (22:37 +0000)]
updates to monitor-server.spec and notes in 'todo' based on first attempt to
install and run this package within a myplc.

15 years agocreate a php config file from the python config file monitorconfig.py
Stephen Soltesz [Fri, 8 Aug 2008 19:28:54 +0000 (19:28 +0000)]
create a php config file from the python config file monitorconfig.py

15 years agoupdate spec file; I will test it within a myplc
Stephen Soltesz [Fri, 8 Aug 2008 19:28:12 +0000 (19:28 +0000)]
update spec file; I will test it within a myplc

15 years agosimple script to verify basic sanity of the api before proceeding with the
Stephen Soltesz [Fri, 8 Aug 2008 18:04:18 +0000 (18:04 +0000)]
simple script to verify basic sanity of the api before proceeding with the
collection of node information

15 years agoThe parser module, derived from config.py
Stephen Soltesz [Fri, 8 Aug 2008 18:03:39 +0000 (18:03 +0000)]
The parser module, derived from config.py

15 years agoignore pyc
Stephen Soltesz [Fri, 8 Aug 2008 18:02:48 +0000 (18:02 +0000)]
ignore pyc

15 years agofile operations for reading and writing lists of nodes/sites/pcus, etc.
Stephen Soltesz [Fri, 8 Aug 2008 18:02:12 +0000 (18:02 +0000)]
file operations for reading and writing lists of nodes/sites/pcus, etc.

15 years agosplit config.py and parser.py into two modules. updated all files to use the
Stephen Soltesz [Fri, 8 Aug 2008 18:01:33 +0000 (18:01 +0000)]
split config.py and parser.py into two modules.  updated all files to use the
parser module for option parsing and config for the resulting values.

one extra variable added to monitorconfig-default.py

15 years agoshow days up to 14, display time up or down in nodegroup_dislplay
Stephen Soltesz [Mon, 4 Aug 2008 21:56:36 +0000 (21:56 +0000)]
show days up to 14, display time up or down in nodegroup_dislplay

15 years agouse new monitorconfig.py format
Stephen Soltesz [Mon, 4 Aug 2008 21:53:47 +0000 (21:53 +0000)]
use new monitorconfig.py format

15 years agono explicit auth structures in python to enable easier parsing by bash and php
Stephen Soltesz [Mon, 4 Aug 2008 21:53:26 +0000 (21:53 +0000)]
no explicit auth structures in python to enable easier parsing by bash and php

15 years agoadd paths based on monitorconfig values
Stephen Soltesz [Mon, 4 Aug 2008 21:42:51 +0000 (21:42 +0000)]
add paths based on monitorconfig values

15 years agouse new name of data access module.
Stephen Soltesz [Mon, 4 Aug 2008 16:45:41 +0000 (16:45 +0000)]
use new name of data access module.

15 years agotake out of repository.
Stephen Soltesz [Mon, 4 Aug 2008 16:44:53 +0000 (16:44 +0000)]
take out of repository.

15 years agorenamed php version of data access module
Stephen Soltesz [Mon, 4 Aug 2008 16:43:23 +0000 (16:43 +0000)]
renamed php version of data access module

15 years agoignore line update.
Stephen Soltesz [Mon, 4 Aug 2008 16:22:09 +0000 (16:22 +0000)]
ignore line update.

15 years agoChanged 'import auth' statements to use plc.py or monitorconfig.py
Stephen Soltesz [Mon, 4 Aug 2008 16:18:20 +0000 (16:18 +0000)]
Changed 'import auth' statements to use plc.py or monitorconfig.py

15 years agoAdded a check for bad dns on the node that prevents bootmanager from booting.
Stephen Soltesz [Mon, 4 Aug 2008 15:32:45 +0000 (15:32 +0000)]
Added a check for bad dns on the node that prevents bootmanager from booting.

added a findbad.py check after running grouprins in automate_pl03.sh

additional todos.

15 years agowrong path on install
Stephen Soltesz [Fri, 1 Aug 2008 22:09:25 +0000 (22:09 +0000)]
wrong path on install

15 years agohandle monitorconfig.py correctly
Stephen Soltesz [Fri, 1 Aug 2008 22:08:06 +0000 (22:08 +0000)]
handle monitorconfig.py correctly

15 years agolatest addition of /var/lib/ for current and archived data files
Stephen Soltesz [Fri, 1 Aug 2008 22:03:31 +0000 (22:03 +0000)]
latest addition of /var/lib/ for current and archived data files

15 years agoThis commit changes the 'soltesz.py' module into 'moncommands.py' and
Stephen Soltesz [Fri, 1 Aug 2008 20:48:32 +0000 (20:48 +0000)]
This commit changes the 'soltesz.py' module into 'moncommands.py' and
'database.py'

Also, findbad*.py include a timeout that should allow them to exit even if the
'futex' bug gets hung somewhere.

Also, the mailer, rt, and others are updated to use monitorconfig.py as the
source of their username and password information rather than random files
here and there.  This also allows us to keep this information out of svn.

15 years agorenamed from 'soltesz' to reflect it's function and content. Should be able
Stephen Soltesz [Fri, 1 Aug 2008 20:37:43 +0000 (20:37 +0000)]
renamed from 'soltesz' to reflect it's function and content.  Should be able
to hide the re-implementation of some of the backend ultimately.

15 years agogone.
Stephen Soltesz [Fri, 1 Aug 2008 20:36:50 +0000 (20:36 +0000)]
gone.

15 years agoso avoid getting this messed up with my local copy all the time.
Stephen Soltesz [Fri, 1 Aug 2008 20:36:28 +0000 (20:36 +0000)]
so avoid getting this messed up with my local copy all the time.

15 years agoallow reference to the data dir and the install path.
Stephen Soltesz [Fri, 1 Aug 2008 20:34:56 +0000 (20:34 +0000)]
allow reference to the data dir and the install path.

15 years agothe propername for this file
Stephen Soltesz [Fri, 1 Aug 2008 20:31:52 +0000 (20:31 +0000)]
the propername for this file

15 years agoadding to maintain history from 'soltesz.py' but it's a bad name choice.
Stephen Soltesz [Fri, 1 Aug 2008 20:30:23 +0000 (20:30 +0000)]
adding to maintain history from 'soltesz.py' but it's a bad name choice.