Post new topic Reply to topic  [ 65 posts ] 

Board index : GroundWork Monitor Community Edition (GWMCE) : How Do I... ?

Go to page Previous  1, 2, 3, 4, 5  Next

Author Message
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Mon Apr 13, 2009 11:38 am 
Offline

Joined: Mon Apr 13, 2009 11:30 am
Posts: 13
Location: Brookfield, WI USA
I'm having the same problems with GWOS 5.3 and Cacti 0.8.7d. Everything is setup correctly, however, there are no graphs. If I run the command to create the graph, I see the graph but no data is visible.

I turned the Cacti poller logging on to the DEVEL level, and when I run the poller manually, I get this:
Quote:
04/13/2009 02:21:04 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '490', Max Runtime '298', Poller Runs: '1'
04/13/2009 02:21:04 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 490 seconds have passed since the last poll!
sh: /usr/local/php/bin/php.bin: No such file or directory
Waiting on 1/1 pollers.
sh: /usr/local/php/bin/rrdtool: No such file or directory
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.


It keeps on going until I hit ctrl+c. It seems like something is hard coded to use the default paths for php and rrdtool.


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Mon Apr 13, 2009 11:43 am 
Offline
User avatar

Joined: Thu Jun 08, 2006 2:00 pm
Posts: 609
cacti -> console -> settings -> paths

_________________
How to ask questions the smart way


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Mon Apr 13, 2009 11:55 am 
Offline

Joined: Mon Apr 13, 2009 11:30 am
Posts: 13
Location: Brookfield, WI USA
I have all of the paths set correctly for GWOS 5.3 in Cacti.

Update: I added symbolic links for those paths... now the poller is running fine, but still no graphs.


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Thu Apr 16, 2009 4:12 am 
Offline
User avatar

Joined: Thu Apr 09, 2009 9:14 pm
Posts: 3
I have exactly the same problem


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Fri Apr 24, 2009 10:54 am 
Offline

Joined: Fri Apr 24, 2009 10:47 am
Posts: 2
For those that are having an issue with the PHP requiring, what I did is the following:

- Downloaded the latest and greatest Cacti package.
- Followed the installation guide that "skau2" provided.
- Edit the following file: '/usr/local/groundwork/apache2/htdocs/cacti/install/index.php'
- Edit the following line: " $extensions = array("session", "sockets", "mysql", "xml");" by removing "sockets".
- Continue with the installation.

So far, it works OK. Let me know if this helps.


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Tue Apr 28, 2009 11:42 am 
Offline
User avatar

Joined: Thu Apr 09, 2009 9:14 pm
Posts: 3
After re-installing cacti and removing sockets as above, I now seem to have it graphing correctly. :) I also had to create sym links for the PHP,PERL and RRDTOOL binaries as it was defaulting to the wrong location for these files for some reason even though I had set the paths in the install - pointing to the groundwork binaries.


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Fri May 01, 2009 10:06 am 
Offline

Joined: Fri Apr 24, 2009 10:47 am
Posts: 2
MrMRTG wrote:
After re-installing cacti and removing sockets as above, I now seem to have it graphing correctly. :) I also had to create sym links for the PHP,PERL and RRDTOOL binaries as it was defaulting to the wrong location for these files for some reason even though I had set the paths in the install - pointing to the groundwork binaries.


Hmm, I didn't need to do any of that as I just pointed the files Cacti required to the ones GWOS MCE provided. In any event, I'm glad it worked out for you.

8)


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Mon Aug 03, 2009 12:27 pm 
Offline

Joined: Fri Jul 10, 2009 5:22 am
Posts: 7
I have been able to add Cacti to Groundwork and it is creating graphs. But polling the same server twice, for groundwork and for Cacti to create graph, doesn't make sense to me. Is there anyway to get Cacti display Groundwork generated graphs under /groundwork/rrd?


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Tue Aug 04, 2009 9:46 am 
Offline

Joined: Sun Mar 11, 2007 8:53 pm
Posts: 179
Yes, there is. The short version is: You need to setup a blank data input method in cacti. I call my "PolledNagios" so I know where the data is coming from. Create/modify your data template to match the nagios data. Then create your data sources with your data input method from above, making sure to mark them as disabled, so cacti won't try to include them in the poller.

It's a little tricky initially to make it work, since you have to create everything manually the first time. Once you get it going though, it's easy to create others with just a couple steps.


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Tue Aug 04, 2009 10:02 am 
Offline

Joined: Fri Jul 10, 2009 5:22 am
Posts: 7
Dave99,

Thank you for your reply. Here is what I did from your explaination but haven't been able to display any graph. Can you please shed some light on it and point out any mistake I made. Thank you in advance.

01. Create Data Input Method
Name: PolledNagios
Input Type: Script/Command
Input String: <Blank>
Input Fields: None
Output Fields: None

02. Create Data Template
Name: PolledNagios
<Datasource>
Name: (Use Per-Data source Value (Ignore this Value))
Data Input Method: PolledNagios
Associated RRA's: Daily, Weekly, Monthly, and Yearly
Step: (Use Per-Data source Value (Ignore this Value))
Data Source Archive: (Use Per-Data source Value (Ignore this Value))
<Data Source Item>
Internal Data Soruce Name: (Use Per-Data source Value (Ignore this Value))
Minimum Value: (Use Per-Data source Value (Ignore this Value))
Maximum Value: (Use Per-Data source Value (Ignore this Value))
Data Source Type: (Use Per-Data source Value (Ignore this Value))
Heartbeat: (Use Per-Data source Value (Ignore this Value))
Output Field: (Use Per-Data source Value (Ignore this Value))
Custom Data: <Blank>

03. Create Data Source
Select Data Template: PolledNagios
Host: WindowsHost (a machine that is being monitored by GW and graphs are available under groundwork/rrd folder)
<Supplement Data Template Data>
Name: Generic_CPU_Load
Data Source Path: /usr/local/groundwork/rrd/WindowsHost_Generic-check_nt_cpuload.rrd
Step: 300
Data Source Active: Yes
Internal Data Source Name: Generic CPU Load
Maximum Value: 0
Minimum Value: 0
Data Source Type: Gauge
Heartbeat 600
Output Field: <Empty>


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Fri Aug 21, 2009 7:46 am 
Offline

Joined: Tue Feb 24, 2009 12:39 am
Posts: 7
i have correctly integrated cacti in GW and configured it following this post.
By the while i can't get graph and turning on the debug mode in cacti i get this error:

RRDTool Says:

ERROR: No DS called 'wmi_cpu' in '/usr/local/groundwork/rrd/itsrv-case_wmi_cpu.rrd'


I've understood that the problem is the string "wmi_cpu", I tried different string just to be sure and as expected I got the same error.
I can't understand which string must be set in "Internal Data Source Name" field in "Data Sources" configuration. Leaving the field free i get an error from cacti that ask me to write something. Writing a string with spaces also generate an error.

Using GW performance tool i can plot all the rrd files in /usr/local/groundwork/rrd folder. It works perfectly.

Thanks in advance
Paolo


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Fri Aug 21, 2009 10:20 am 
Offline

Joined: Mon Jan 12, 2009 6:44 pm
Posts: 25
Hi Paolo i jsut ran into this issue to and this is what i needed to do to make it work.

In performance configuration you will have the RRD Create command something like this:

$RRDTOOL$ create $RRDNAME$ --step 300 --start n-1yr DS:HDD:GAUGE:1800:U:U RRA:AVERAGE:0.5:1:8640 RRA:AVERAGE:0.5:12:9480

The DS name that you need to provide to Cacti is the bolded value that's what i did and it stopped giving me the error.

Now i don't have it yet fully functional, Cacti tries to display the graph but all it gets is a picture as in the attached jpeg.


Attachments:
graph display.JPG
graph display.JPG [ 18.55 KiB | Viewed 56 times ]
Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Sun Aug 23, 2009 8:00 am 
Offline

Joined: Fri Apr 17, 2009 3:31 am
Posts: 7
Hi Paolo, try running "rrdtool info" on the rrd file to get the names of the datasources it contains. I use the rrd's that are created by PNP and the data source names are numbers.


paolo.cosi wrote:
i have correctly integrated cacti in GW and configured it following this post.
By the while i can't get graph and turning on the debug mode in cacti i get this error:

RRDTool Says:

ERROR: No DS called 'wmi_cpu' in '/usr/local/groundwork/rrd/itsrv-case_wmi_cpu.rrd'


I've understood that the problem is the string "wmi_cpu", I tried different string just to be sure and as expected I got the same error.
I can't understand which string must be set in "Internal Data Source Name" field in "Data Sources" configuration. Leaving the field free i get an error from cacti that ask me to write something. Writing a string with spaces also generate an error.

Using GW performance tool i can plot all the rrd files in /usr/local/groundwork/rrd folder. It works perfectly.

Thanks in advance
Paolo


Back to top
 Profile  
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Fri Sep 25, 2009 12:05 am 
Offline
User avatar

Joined: Wed Feb 06, 2008 8:57 am
Posts: 53
Location: London, UK
I'm having trouble with my integration of Cacti with Groundwork - well actually just install of Cacti, but the kind folks on the Cacti forum told me to ask here (http://forums.cacti.net/post-173763.html), so here I go:

I installed cacti according to the info above. I haven't added any hosts yet - I only have the default localhost checks running. These aren't generating any lines on the graphs - all the counters show up as NaN. When I look at debug output in the logs I see messages like:

Code:
09/23/2009 12:00:01 PM - POLLER: Poller[0] WARNING: Poller[0] Host[1] Ping Time was not numeric
09/23/2009 12:00:01 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping


and

Code:
CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result: U


However, when I run the cacti scripts directly from command line I get results returned fine.

Someone on the Cacti forum suggested that snmp wasn't turned on, however I can snmpwalk localhost successfully. Perhaps they meant that the SNMP extension for PHP isn't there - although looking at the config string from phpinfo() it looks to be compiled in by the presence of "--with-snmp=/usr/local/groundwork/common".

Anyone got any ideas about what might be going wrong here?


Back to top
 Profile WWW 
 
 Post subject: Re: Add Cacti to Groundwork
PostPosted: Fri Sep 25, 2009 11:11 pm 
Offline

Joined: Fri Sep 25, 2009 6:40 pm
Posts: 1
Flyn wrote:
Hi Paolo, try running "rrdtool info" on the rrd file to get the names of the datasources it contains. I use the rrd's that are created by PNP and the data source names are numbers.




Flyn, where can i find the rrdtool info?
i know it may sound odd but i am kinda mixed up at this moment
thanks

_________________
Business Finance


Back to top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 65 posts ] 

Board index : GroundWork Monitor Community Edition (GWMCE) : How Do I... ?

Go to page Previous  1, 2, 3, 4, 5  Next


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:
Jump to:  
Follow us on Twitter    Visit our Facebook page    Blog Talk Radio
Style by Midnight Phoenix & N.Design Studio
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.