Skip to content

Commit

Permalink
Further clean-up. Shifted the license details out and refined some of…
Browse files Browse the repository at this point in the history
… the comments further. Issue #2
  • Loading branch information
claymen committed Mar 6, 2009
1 parent 7ff242c commit 90e9017
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 48 deletions.
17 changes: 17 additions & 0 deletions copyright.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
All code is Copyright 2008-2009 by the original authors.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 3
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public
License with this program as the file license.txt; if not,
please see http://www.gnu.org/licenses/gpl-3.0.html

- Ross Fawcett
File renamed without changes.
16 changes: 2 additions & 14 deletions wmi-config.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2008-2009 Ross Fawcett |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 3 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
This file defines the configuration options which users may adjust to suit
their environment.
*/

// general configuration
$wmiexe = 'wmic'; // executable for the wmic command
$log_location = '/tmp/'; // location for the log files ensure trailing slash
$dbug = 0; // debug level 0,1 or 2

?>
20 changes: 0 additions & 20 deletions wmi-logins.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2008-2009 Ross Fawcett |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 3 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
*/


/*
This file defines the login/password pairs and the reference used by wmi.php
to access them. This is done to prevent the credentials being logged in the
Expand All @@ -34,10 +17,7 @@
you need only update the data template.
*/


$logins = array();
$logins['credential'] = array('Domain/Username','Password');
$logins['reference'] = array('Domain/Username','Password');


?>
22 changes: 8 additions & 14 deletions wmi.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
#!/usr/bin/php -q
<?php

/*
+-------------------------------------------------------------------------+
| Copyright (C) 2008-2009 Ross Fawcett |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 3 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
+-------------------------------------------------------------------------+
This file is the main application which interfaces the wmic binary with the
input and output from Cacti. The idea of this is to move the configuration
into Cacti rather than creating a new script for each item that you wish to
monitor via WMI.
There should be no reason to edit this file unless you know what you are
doing as changes here could potentially affect all your graphs if something
breaks.
*/

// globals
Expand Down

0 comments on commit 90e9017

Please sign in to comment.