Cactiusers.org


It is currently Thu May 17, 2012 8:23 am




Post new topic Reply to topic  [ 8 posts ] 
 I can't set Thold for any host.= 
Author Message
New User

Joined: Wed Dec 07, 2005 3:30 pm
Posts: 5
Post I can't set Thold for any host.=
I am a new user. I have cacti server in a working state. The only thing that i can't figure out is to how to set the thold. I goto to device > select the device > when i click on auto create thold a blank window pops up thats it nothing at all.

Thanks Tariq


Wed Dec 07, 2005 3:36 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post Re: I can't set Thold for any host.=
tansari wrote:
I am a new user. I have cacti server in a working state. The only thing that i can't figure out is to how to set the thold. I goto to device > select the device > when i click on auto create thold a blank window pops up thats it nothing at all.

Thanks Tariq


Its weird that its blank, it should be taking you right back to current page. Also, have you created any templates for the thresholds (I assume you are using the plugin version)? On the console, under the Templates header, there is a thresholds link.


Wed Dec 07, 2005 3:58 pm
New User

Joined: Wed Dec 07, 2005 3:30 pm
Posts: 5
Post 
well i didn't make any template, and yes i am using plugin version. I will need help setting up template. Can you give me some references. Thanks Tariq.


Wed Dec 07, 2005 4:12 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
tansari wrote:
well i didn't make any template, and yes i am using plugin version. I will need help setting up template. Can you give me some references. Thanks Tariq.


It should be pretty straight forward. On the template page click on the "Add" link in the upper right corner. You select the data template for whatever you are setting the threshold for, so for instance for windows HD space, you would select "Host MIB - Hard Drive Space". Click OK and then select the Data Field, so for the amount of used space, we would select "hdd_used". Click OK, and now input all the normal threshold information. In this instance, you would want to insert a number in the "High Threshold" box. Once you are done, just click "Save" and then go to the device (that has graphs using this data template) and tell it to auto-create.


Wed Dec 07, 2005 4:23 pm
New User

Joined: Wed Dec 07, 2005 3:30 pm
Posts: 5
Post 
Hey Jimmy, I created a template, and then when I do auto create it takes me to the blank page. I hope I have created a template right way.

with link with this url
http://cacti/cacti/plugins/thold/thold. ... e&hostid=7

so I am still getting the same problem


Attachments:
temp.JPG
temp.JPG [ 218.52 KiB | Viewed 886 times ]
Fri Dec 09, 2005 2:28 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
tansari wrote:
Hey Jimmy, I created a template, and then when I do auto create it takes me to the blank page. I hope I have created a template right way.

with link with this url
http://cacti/cacti/plugins/thold/thold. ... e&hostid=7

so I am still getting the same problem


Hmm... under Settings >>> Alerting / Thold, what do you have for the option "Base URL"?


Fri Dec 09, 2005 3:05 pm
New User

Joined: Wed Dec 07, 2005 3:30 pm
Posts: 5
Post 
Its doesn't matter if I use http://cacti/cati or http://192.168.100.58/cacti with my browser. I still get the same results.


Attachments:
temp1.JPG
temp1.JPG [ 226.2 KiB | Viewed 828 times ]
Fri Dec 09, 2005 4:02 pm
New User

Joined: Wed Dec 07, 2005 3:30 pm
Posts: 5
Post 
I am attaching my config.php. Maybe I must have configured it wrong.

Thanks

Tariq


<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004 Ian Berry |
| |
| 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 2 |
| 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. |
+-------------------------------------------------------------------------+
| cacti: a php-based graphing solution |
+-------------------------------------------------------------------------+
| Most of this code has been designed, written and is maintained by |
| Ian Berry. See about.php for specific developer credit. Any questions |
| or comments regarding this code should be directed to: |
| - iberry@raxnet.net |
+-------------------------------------------------------------------------+
| - raXnet - http://www.raxnet.net/ |
+-------------------------------------------------------------------------+
*/

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "*******";


$plugins = array();
$plugins[] = 'monitor';
$plugins[] = 'reports';
$plugins[] = 'thold';

/* Do not edit this line */
$config = array();

/* This is full URL Path to the Cacti installation
For example, if your cacti was accessible by http://server/cacti/ you would user '/cacti/'
as the url path. For just http://server/ use '/'
*/

$config["url_path"] = '/cacti/';

/* ----- you probably do not need to change anything below this line ----- */

/* Files that do not need http header information - Command line scripts */
$no_http_header_files = array(
"poller.php",
"cmd.php",
"query_host_cpu.php",
"query_host_partitions.php",
"sql.php",
"ss_host_cpu.php",
"ss_host_disk.php",
"ss_sql.php"
);

$colors = array();

/* this should be auto-detected, set it manually if needed */
$config["cacti_server_os"] = (strstr(PHP_OS, "WIN")) ? "win32" : "unix";

/* built-in snmp support */
$config["php_snmp_support"] = function_exists("snmpget");

/* used for includes */
$config["base_path"] = strtr(ereg_replace("(.*)[\/\\]include", "\\1", dirname(__FILE__)), "\\", "/");
$config["library_path"] = ereg_replace("(.*[\/\\])include", "\\1lib", dirname(__FILE__));
$config["include_path"] = dirname(__FILE__);

/* include the plugin function, we do this before everything else,
incase we want to add hooks to change config options */

include_once($config["include_path"] . "/plugins.php");

/* colors */
$colors["dark_outline"] = "454E53";
$colors["dark_bar"] = "AEB4B7";
$colors["panel"] = "E5E5E5";
$colors["panel_text"] = "000000";
$colors["panel_link"] = "000000";
$colors["light"] = "F5F5F5";
$colors["alternate"] = "E7E9F2";
$colors["panel_dark"] = "C5C5C5";

$colors["header"] = "00438C";
$colors["header_panel"] = "6d88ad";
$colors["header_text"] = "ffffff";
$colors["form_background_dark"] = "E1E1E1";

$colors["form_alternate1"] = "F5F5F5";
$colors["form_alternate2"] = "E5E5E5";

if ((!in_array(basename($_SERVER["PHP_SELF"]), $no_http_header_files, true)) && ($_SERVER["PHP_SELF"] != "")) {
/* we don't want these pages cached */
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

/* initilize php session */
session_start();

/* detect and handle get_magic_quotes */
if (!get_magic_quotes_gpc()) {
function addslashes_deep($value) {
$value = is_array($value) ? array_map('addslashes_deep', $value) : addslashes($value);
return $value;
}

$_POST = array_map('addslashes_deep', $_POST);
$_GET = array_map('addslashes_deep', $_GET);
$_COOKIE = array_map('addslashes_deep', $_COOKIE);
}

/* make sure to start only only Cacti session at a time */
if (!isset($_SESSION["cacti_cwd"])) {
$_SESSION["cacti_cwd"] = $config["base_path"];
}else{
if ($_SESSION["cacti_cwd"] != $config["base_path"]) {
session_unset();
session_destroy();
}
}
}

/* emulate 'register_globals' = 'off' if turned on */
if ((bool)ini_get("register_globals")) {
$not_unset = array("_GET", "_POST", "_COOKIE", "_SERVER", "_SESSION", "_ENV", "_FILES", "database_type", "database_default", "database_hostname", "database_username", "database_password", "config", "colors");

/* Not only will array_merge give a warning if a parameter is not an array, it will
* actually fail. So we check if HTTP_SESSION_VARS has been initialised. */
if (!isset($_SESSION)) {
$_SESSION = array();
}

/* Merge all into one extremely huge array; unset this later */
$input = array_merge($_GET, $_POST, $_COOKIE, $_SERVER, $_SESSION, $_ENV, $_FILES);

unset($input["input"]);
unset($input["not_unset"]);

while (list($var,) = @each($input)) {
if (!in_array($var, $not_unset)) {
unset($$var);
}
}

unset($input);
}

/* display ALL errors */
error_reporting(E_ALL);

/* include base modules */
include($config["library_path"] . "/adodb/adodb.inc.php");
include($config["library_path"] . "/database.php");
include_once($config["library_path"] . "/functions.php");
include_once($config["include_path"] . "/config_constants.php");
include_once($config["include_path"] . "/config_arrays.php");
include_once($config["include_path"] . "/config_settings.php");

/* connect to the database server */
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type);

/* include additional modules */
include_once($config["include_path"] . "/config_form.php");
include_once($config["library_path"] . "/html.php");
include_once($config["library_path"] . "/html_form.php");
include_once($config["library_path"] . "/html_utility.php");
include_once($config["library_path"] . "/html_validate.php");
include_once($config["library_path"] . "/variables.php");
include_once($config["library_path"] . "/auth.php");

/* current cacti version */
$config["cacti_version"] = "0.8.6g";

?>


Mon Dec 12, 2005 12:22 pm
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: