Discussion:
[cacti-user] Doubt in viewing graphs
R***@aol.com
2005-01-07 15:55:03 UTC
Permalink
Hello Friends,

I installed cacti successfully.When viewing the graphs i can just see the
icon with no graphs getting displayed.

My entry in the log file is:
01/07/2005 09:05:05 PM - SYSTEM STATS: Time: 5.0818 s, Method: cmd.php,
Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
01/07/2005 09:05:05 PM - CMDPHP: Poller[0] Time: 4.0921 s, Theads: N/A,
Hosts: 2
01/07/2005 09:05:05 PM - CMDPHP: Poller[0] Host[4] SNMP: Host did not respond
to SNMP
01/07/2005 09:05:03 PM - CMDPHP: Poller[0] Host[3] SNMP: Host did not respond
to SNMP
01/07/2005 09:05:01 PM - CMDPHP: Poller[0] WARNING: PHP version 4.3 or above
is recommended for performance considerations.
01/07/2005 09:05:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote
Process [CMD: /usr/bin/php, ARGS: -q /home/tcshunmuganath00/cacti-0.8.6c/cmd.php
0 4]


Can anybody help me out in solving this problem?

Thanks,
Radha.
Edward Brookhouse
2005-01-07 17:03:52 UTC
Permalink
I would start by using snmpwalk to query the mib of the device in question -
that will tell you if snmp is working ok outside of cacti -



_____

From: cacti-user-***@lists.sourceforge.net
[mailto:cacti-user-***@lists.sourceforge.net] On Behalf Of
***@aol.com
Sent: Friday, January 07, 2005 10:55 AM
To: cacti-***@lists.sourceforge.net
Cc: ***@infosys.com
Subject: [cacti-user] Doubt in viewing graphs


Hello Friends,

I installed cacti successfully.When viewing the graphs i can just see the
icon with no graphs getting displayed.

My entry in the log file is:
01/07/2005 09:05:05 PM - SYSTEM STATS: Time: 5.0818 s, Method: cmd.php,
Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
01/07/2005 09:05:05 PM - CMDPHP: Poller[0] Time: 4.0921 s, Theads: N/A,
Hosts: 2
01/07/2005 09:05:05 PM - CMDPHP: Poller[0] Host[4] SNMP: Host did not
respond to SNMP
01/07/2005 09:05:03 PM - CMDPHP: Poller[0] Host[3] SNMP: Host did not
respond to SNMP
01/07/2005 09:05:01 PM - CMDPHP: Poller[0] WARNING: PHP version 4.3 or above
is recommended for performance considerations.
01/07/2005 09:05:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote
Process [CMD: /usr/bin/php, ARGS: -q
/home/tcshunmuganath00/cacti-0.8.6c/cmd.php 0 4]

Can anybody help me out in solving this problem?

Thanks,
Radha.
Edward Brookhouse
2005-01-07 17:26:40 UTC
Permalink
I've been using cmd.php since I started with cacti - and lately my polls
have been about to over lap even after increasing the pollers - this was
choking the server which cacti was running on - so I switched to cactid -

The docs say to install it - do


1.
Login to Cacti as an admin user.

2.
Select Settings on the menu and click the Paths tab.

3.
Enter the complete path to your Cactid binary in the Cactid Poller File Path
field and click Save.

4.
Click the Poller tab.

5.
Choose "cactid" from the Poller Type dropdown box and click Save.

After completing these steps, Cacti will spawn Cactid every 5 minutes
instead of cmd.php. If you are having problems getting Cactid to gather
data, you can always temporarily change Poller Type back to "cmd.php".



but - what about the cmd.php entry in cron ? Do you just remove it? Or
replace it with some variation of cactid call????





Any thoughts appreciated,



Edward
jeff vier
2005-01-07 19:20:48 UTC
Permalink
I'd love to switch to cactid, except cactid inexplicably skips polled
items!

I posted about this a while ago and never figured it out, so at this
point I'm still using the resource hog cmd.php :(

But, as I just see you answered for yourself, the poller.php calls the
correct thing, based on your settings.
Post by Edward Brookhouse
I've been using cmd.php since I started with cacti - and lately my
polls have been about to over lap even after increasing the pollers -
this was choking the server which cacti was running on - so I switched
to cactid -
The docs say to install it - do
1. Login to Cacti as an admin user.
2. Select Settings on the menu and click the Paths tab.
3. Enter the complete path to your Cactid binary in the Cactid
Poller File Path field and click Save.
4. Click the Poller tab.
5. Choose "cactid" from the Poller Type dropdown box and click
Save.
After completing these steps, Cacti will spawn Cactid every 5 minutes
instead of cmd.php. If you are having problems getting Cactid to
gather data, you can always temporarily change Poller Type back to
"cmd.php".
but - what about the cmd.php entry in cron ? Do you just remove it? Or
replace it with some variation of cactid call????
Edward Brookhouse
2005-01-07 18:51:17 UTC
Permalink
Please ignore :)

Looks like you call the poller from cron either way :)

BTW - Cactid changed the load average from in the 50's to 2

_____

From: cacti-user-***@lists.sourceforge.net
[mailto:cacti-user-***@lists.sourceforge.net] On Behalf Of Edward
Brookhouse
Sent: Friday, January 07, 2005 12:27 PM
To: cacti-***@lists.sourceforge.net
Subject: [cacti-user] cactid vs cmd.php


I've been using cmd.php since I started with cacti - and lately my polls
have been about to over lap even after increasing the pollers - this was
choking the server which cacti was running on - so I switched to cactid -

The docs say to install it - do


1.
Login to Cacti as an admin user.

2.
Select Settings on the menu and click the Paths tab.

3.
Enter the complete path to your Cactid binary in the Cactid Poller File Path
field and click Save.

4.
Click the Poller tab.

5.
Choose "cactid" from the Poller Type dropdown box and click Save.

After completing these steps, Cacti will spawn Cactid every 5 minutes
instead of cmd.php. If you are having problems getting Cactid to gather
data, you can always temporarily change Poller Type back to "cmd.php".



but - what about the cmd.php entry in cron ? Do you just remove it? Or
replace it with some variation of cactid call????





Any thoughts appreciated,



Edward
Edward Brookhouse
2005-01-10 19:53:11 UTC
Permalink
Hi all, I'm running cacti 8.6c and I recently tried to add a solaris host
and monitor it's load average and memory - after adding I see no graphs show
up - so I start debugging - The first thing I tried was to clear the poller
cache -(after checking that thier are no apparent snmp errors)-

After clearing the poller cache I started to see errors such as:


01/10/2005 02:47:30 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '219-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:31 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '219-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:32 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '220-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:33 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '220-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:34 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '221-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:35 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '221-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:37 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '222-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:38 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '222-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:39 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '223-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:40 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '223-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:41 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '224-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:43 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '225-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:45 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '226-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:46 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '226-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:48 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '227-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:49 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '227-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:50 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '228-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:51 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '228-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:52 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '229-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:53 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '229-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:54 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '103-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:56 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '106-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:47:59 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '109-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:48:00 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '109-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:48:01 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '39-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:48:02 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '39-nbar_bitrateout-2005-01-10 14:45:02' for key 1
01/10/2005 02:48:03 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '41-nbar_bitratein-2005-01-10 14:45:02' for key 1
01/10/2005 02:48:04 PM - CACTID: Poller[0] ERROR: Problem with MySQL:
Duplicate entry '41-nbar_bitrateout-2005-01-10 14:45:02' for key 1


So I deleted the host I just added to see if I could figure this out? Has
anyone seen this?

Thanks

Edward
Jessie Bryan
2005-01-10 21:56:18 UTC
Permalink
Hi Guys,

I'm trying to understand how aggregate graphs are setup. I found some
sketchy docs on the forums/How-To but they seemed out of date. I'm
running Cacti/0.8c. My goal is to replace MRTG/rateup monitoring with a
RRD web-managed environment. I did try importing user-contributed graph
templates, however, they seemed to be fixed to only 2 data sources. I'd
like to see aggregate graphs of 10 data sources. Idealy, the number of
input sources would allow for any number between 1-25.

Thanks!
Andrew Lillie
2005-01-11 00:30:02 UTC
Permalink
Attached is a copy of a template that uses 4 data sources (2 in, 2 out)
to create an aggregate bandwidth graph. You should be able, with a bit
of tinkering, to add more data sources, but you'll need to tweak the
cdef involved (I think my template includes my cdefs, but as this is the
first time I've tried to export a template I'm not quite sure).

In any case, from my experiments with this, the only issues really seem
to be with creating a cdef that will add together the datasources you
care about, and then making sure to assign that cdef to the graph items
you want to generate as aggregates. Feel free to contact me off-list if
you have questions, though as I only figured this out myself yesterday,
I'm not sure if I'll be of that much help :-)

-Andrew
Post by Jessie Bryan
Hi Guys,
I'm trying to understand how aggregate graphs are setup. I found some
sketchy docs on the forums/How-To but they seemed out of date. I'm
running Cacti/0.8c. My goal is to replace MRTG/rateup monitoring with a
RRD web-managed environment. I did try importing user-contributed graph
templates, however, they seemed to be fixed to only 2 data sources. I'd
like to see aggregate graphs of 10 data sources. Idealy, the number of
input sources would allow for any number between 1-25.
Thanks!
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
cacti-user mailing list
https://lists.sourceforge.net/lists/listinfo/cacti-user
Jessie Bryan
2005-01-11 00:34:58 UTC
Permalink
Andrew,

Thanks for the info and the template. I will give it a shot and see what
I can do with it.

-Jess
Jessie Bryan
2005-01-11 02:40:27 UTC
Permalink
Hi Andrew,

I was able to create appropriate CDEF expressions for 3 inputs / 3
outputs as an example. I then added 1 more Inbound Graph Template Item,
and same for Outbound. I then created a "Inbound 3" and "Outbound 3"
Graph Input items, following the examples from "Inbound 2" and "Outbound
2". Im now able to view a graph of aggregate data, however, the Graph
Input Items (Data Sources) aren't letting me choose all my interfaces,
For instance:
Andrew Lillie
2005-01-11 16:53:10 UTC
Permalink
Jessie,

I had a similar problem originally. I changed my Input Items to only
never be overlapping. So, in your configuration, I believe you'd want
to change your Graph Input Items to something like:
Inbound 2: Item #2
Inbound 3: Item #1
Inbound Data Source: Items 3-6

Outbound 2: Item #8
Outbound 3: Item #7
Outbound Data Source: Items 9-12


The thing is, you don't need to assign the all the input items to the
graph template items that you're actually drawing (in your case Inbound
and Outbound) because the CDEF takes care of that for you. So, as long
as each input item is assigned once, it'll get assigned a letter that
you can manipulate with your CDEF, and thus get into a graph template item.
I hope that makes sense (or more to the point, I hope I explained it
adequately).

Lemme know if that helps.

-Andrew
Post by Jessie Bryan
Hi Andrew,
I was able to create appropriate CDEF expressions for 3 inputs / 3
outputs as an example. I then added 1 more Inbound Graph Template Item,
and same for Outbound. I then created a "Inbound 3" and "Outbound 3"
Graph Input items, following the examples from "Inbound 2" and "Outbound
2". Im now able to view a graph of aggregate data, however, the Graph
Input Items (Data Sources) aren't letting me choose all my interfaces,
Jessie Bryan
2005-01-11 17:08:43 UTC
Permalink
Andrew,

Thanks again, your advice was right on target. While modifying your
examples I started to wonder if there's a way to have a single template
that could invariably represent any number of inputs. Example, I could
use the same graphing template for a 2 source aggregate graph as well as
a 6 source aggregate graph - without duplicating any CDEF's or templates.

I don't know if this is possible since we need our aggregate graphs to
have input and output. Programatically I'm not sure how I would tell a
CDEF which ones to calculate for input and which for output.. Unless I
could take X number of inputs, divide by 2 (2 in and out) then use the
first half for inputs in the calculations, and the remaining DEFs for
the last calculation.


Any ideas?
Jessie Bryan
2005-01-11 19:38:14 UTC
Permalink
Hello List,

Two Questions:

1: Within the edit page of Graph Template Items, What is the purpose of
having a DataSource set when I want 95th Percentile?

For instance, If I create an HRULE item the first thing I get is a drop
down box asking which Data Source, now by default it seems to select
Interface - Traffic - (traffic_out) (maybe it uses last used?) I don't
see any difference in the calculation if I choose traffic_in or
traffic_out. Im using the following 95th line:

DataSource: Interface - Traffic - (traffic_out)
Color: FF0000
Graph Item Type: HRULE
CF: AVERAGE
CDEF: None
Value: |95:bits:0:max:2|
GPRINT: Normal
Text Format: 95th Percentile Out

FWIW, I see no difference in calculation if I change the DataSource to
"None"

2: I now have aggregate graphs setup and I'd like to calculate 95th of
the aggregate. Is this Possible?

I have X number of network interfaces from various cisco switches I'd
like the summation to be used for determining the 95th percentile. I'm
aware of the total,current,max options in 95th, however, if I use total
I will get a number representing _ALL_ data sources. If I can get a
total of all related datasources or "traffic_in" vs "traffic_out"
datasources that would be ideal. When I tried "total" the 95th value
was higher then the MAX value of all Inputs (ie max was 10mbit, 95th was
14mbit)

Thanks again!
-Jess

Continue reading on narkive:
Loading...