[Solved!]Stupid troubles during install - No graphs. *Edit*
Moderators: Developers, Moderators
[Solved!]Stupid troubles during install - No graphs. *Edit*
Operating System: Win 2K3
Webserver: IIS6
Cacti: 0.8.7b
Spine:
MySQL: 5.0.51b
PHP: 5.2.6
RRDTool (Cygwin or Win32 version): 1.2.15
Net-SNMP: 5.2.2
Cygwin (cygwin1.dll version): ? - Not sure - 1005.25.0.0?
Plugin Architecture: ?
Ok, in my travels it seems I've gotten a little more lazy. I've followed the guide pretty close, but it always seems I come up with something a little different when it comes to installing the packages. I'm logging into Cacti, but I am unable to get any graphs because I think I'm not grabbing and polling information. I was using Poller.
It seems I'm having issues with Cygwin as well. I dont' think it installed the options mentioned. I'm working on it, but as of yet, Cygwin is installing and downloading. *Edit* I belive the packages are installed.
MIB's are installed. I missed a path statement at the bottom of the guide. I didn't have the Net-SNMP in the path. Now the msg's are gone.
the php -m command reveals the following:
All is well here as well. But below Zend Modules, nothing is listed.
php c:\cacti\poller.php reveals:
07/03/2008 03:47:31 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '15' seconds, with a maximum of a '300' second Scheduled Task, but 981 seconds have passed since the last poll!
07/03/2008 03:47:32 PM - SYSTEM STATS: Time:1.1740 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
07/03/2008 03:47:47 PM - SYSTEM STATS: Time:1.2029 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
07/03/2008 03:48:02 PM - SYSTEM STATS: Time:1.1726 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
07/03/2008 03:48:17 PM - SYSTEM STATS: Time:1.1824 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
I'm also showing this under the Data Query Debug Information:
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at 'C:/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:/cacti/resource/snmp_queries/interface.xml'
This is my first venture into monitoring, so I would appreciate some help.
Thanks for you time.
-JD-
Webserver: IIS6
Cacti: 0.8.7b
Spine:
MySQL: 5.0.51b
PHP: 5.2.6
RRDTool (Cygwin or Win32 version): 1.2.15
Net-SNMP: 5.2.2
Cygwin (cygwin1.dll version): ? - Not sure - 1005.25.0.0?
Plugin Architecture: ?
Ok, in my travels it seems I've gotten a little more lazy. I've followed the guide pretty close, but it always seems I come up with something a little different when it comes to installing the packages. I'm logging into Cacti, but I am unable to get any graphs because I think I'm not grabbing and polling information. I was using Poller.
It seems I'm having issues with Cygwin as well. I dont' think it installed the options mentioned. I'm working on it, but as of yet, Cygwin is installing and downloading. *Edit* I belive the packages are installed.
MIB's are installed. I missed a path statement at the bottom of the guide. I didn't have the Net-SNMP in the path. Now the msg's are gone.
the php -m command reveals the following:
All is well here as well. But below Zend Modules, nothing is listed.
php c:\cacti\poller.php reveals:
07/03/2008 03:47:31 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '15' seconds, with a maximum of a '300' second Scheduled Task, but 981 seconds have passed since the last poll!
07/03/2008 03:47:32 PM - SYSTEM STATS: Time:1.1740 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
07/03/2008 03:47:47 PM - SYSTEM STATS: Time:1.2029 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
07/03/2008 03:48:02 PM - SYSTEM STATS: Time:1.1726 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
07/03/2008 03:48:17 PM - SYSTEM STATS: Time:1.1824 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
I'm also showing this under the Data Query Debug Information:
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at 'C:/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:/cacti/resource/snmp_queries/interface.xml'
This is my first venture into monitoring, so I would appreciate some help.
Thanks for you time.
-JD-
Last edited by JD on Tue Jul 08, 2008 11:59 am, edited 1 time in total.
1) I'd strongly recommend upgrading rrdtool to 1.2.27 or better, Win32 build. Removed the dependency on cygwin.
2) Does cacti consider your devices up or down?
3) In a device, do you see the snmp uptime info in the top left corner? If not, then you need to troubleshoot snmp on that device. Until that works, monitoring won't (effectively) work.
2) Does cacti consider your devices up or down?
3) In a device, do you see the snmp uptime info in the top left corner? If not, then you need to troubleshoot snmp on that device. Until that works, monitoring won't (effectively) work.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
1) The only other version for RRDTool is perl based. I installed a trial version of Perl and went through those instructions and I get the following message when running the command:
"Ppm installed Failed: The PPD does not provide code to install for this platform.
2) for the device, it shows up.
3) System: ProCurve J8992A Switch 6200yl-24G, revision K.11.41, ROM K.11.01 (/sw/code/build/btm(t1b))
Uptime: 2684615026 (310 days, 13 hours, 13 minutes)
Hostname: ca6200s1
Location:
Contact:
I had to change the Downed Device Detection from Ping to Ping and SNMP.
IN the graph area I'm showing a lot of data for Data Query (SNMP - Interface Stats). But I cannot see any graphs still.
Is there a way I can verify that RRDTool is working with Cygwin? I'm still reading trying to see if there is something I missed.
*Edit* I also didn't install cacti into the "C:\Inetpub\wwwroot\cacti\" directory, I instead, for no apparent reason installed it to the root c:\cacit. Would this be causing my woes?
I'm also using Net-SNMP but I think it is working correctly as I am getting information from the device.
Thanks again.
-JD-
"Ppm installed Failed: The PPD does not provide code to install for this platform.
2) for the device, it shows up.
3) System: ProCurve J8992A Switch 6200yl-24G, revision K.11.41, ROM K.11.01 (/sw/code/build/btm(t1b))
Uptime: 2684615026 (310 days, 13 hours, 13 minutes)
Hostname: ca6200s1
Location:
Contact:
I had to change the Downed Device Detection from Ping to Ping and SNMP.
IN the graph area I'm showing a lot of data for Data Query (SNMP - Interface Stats). But I cannot see any graphs still.
Is there a way I can verify that RRDTool is working with Cygwin? I'm still reading trying to see if there is something I missed.
*Edit* I also didn't install cacti into the "C:\Inetpub\wwwroot\cacti\" directory, I instead, for no apparent reason installed it to the root c:\cacit. Would this be causing my woes?
I'm also using Net-SNMP but I think it is working correctly as I am getting information from the device.
Thanks again.
-JD-
Log shows no errors that I can see but here it is for your review.
-JD-
-JD-
- Attachments
-
- cacti-10_08.txt
- (41.61 KiB) Downloaded 172 times
False. Did you look on the download page for rrdtool? Native Windows 2 http://www.gknw.net/mirror/rrdtool/JD wrote:1) The only other version for RRDTool is perl based.
Personally, I'd recommend only setting SNMP, if that is the primary source of the data you'll be monitoring.JD wrote:I had to change the Downed Device Detection from Ping to Ping and SNMP.
Your cacti.log also shows receiving data from at least host 5's interface. When you go to graph management, click on a graph and enable graph debugging, what error do you get?JD wrote:IN the graph area I'm showing a lot of data for Data Query (SNMP - Interface Stats). But I cannot see any graphs still.
Simply running rrdtool info (or any other command) will verify it's working properly. If not, you'll get cygwin / other errors.JD wrote:Is there a way I can verify that RRDTool is working with Cygwin? I'm still reading trying to see if there is something I missed.
Not unless you installed it in a path with spaces. Cacti doesn't like spaces.JD wrote: *Edit* I also didn't install cacti into the "C:\Inetpub\wwwroot\cacti" directory, I instead, for no apparent reason installed it to the root c:\cacit. Would this be causing my woes?
I see in your cacti.log file that every polling cycle, cacti is attempting to create fiber_core_traffic_in_40.rrd and then update it. This means that you have not set the correct NTFS permissions, so it cannot create the rrd file and store/retrieve the data. This is why you have no graphs.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
1) Nope, didn't know about that site. I updated to 1.27.BSOD2600 wrote:False. Did you look on the download page for rrdtool? Native Windows 2 http://www.gknw.net/mirror/rrdtool/JD wrote:1) The only other version for RRDTool is perl based.
Personally, I'd recommend only setting SNMP, if that is the primary source of the data you'll be monitoring.JD wrote:I had to change the Downed Device Detection from Ping to Ping and SNMP.
Your cacti.log also shows receiving data from at least host 5's interface. When you go to graph management, click on a graph and enable graph debugging, what error do you get?JD wrote:IN the graph area I'm showing a lot of data for Data Query (SNMP - Interface Stats). But I cannot see any graphs still.
Simply running rrdtool info (or any other command) will verify it's working properly. If not, you'll get cygwin / other errors.JD wrote:Is there a way I can verify that RRDTool is working with Cygwin? I'm still reading trying to see if there is something I missed.
Not unless you installed it in a path with spaces. Cacti doesn't like spaces.JD wrote: *Edit* I also didn't install cacti into the "C:\Inetpub\wwwroot\cacti" directory, I instead, for no apparent reason installed it to the root c:\cacit. Would this be causing my woes?
I see in your cacti.log file that every polling cycle, cacti is attempting to create fiber_core_traffic_in_40.rrd and then update it. This means that you have not set the correct NTFS permissions, so it cannot create the rrd file and store/retrieve the data. This is why you have no graphs.
2) Changed it to SNMP
3) I don't get an error on the web page. It gives me options.
4) RRDTool doesn't give me any Cygwin errors before. Now that I'm on .27 Cygwin shouldn't be an issue.
5) I'll go through your write up one more time and make sure permissions are correct. I was also showing files in the RRA folder. I also had some permission issues. I'll post if this fixed it after the reboot.
Thanks again.
-JD-
Ok, still having issues, still showing red x's when goign into the graphs list view. I checked the permissions and found a few entries, but still having issues. I'm going to delete the device and create it again. Here is the log again.
- Attachments
-
- cacti-5_18.txt
- (25.06 KiB) Downloaded 115 times
I'm now checking security using Sysinternals. I'm seeing no Access Denied, but I am seeing tons of Name Not Found for files and registry entries. One in particular is for PHP.exe in the following path:
C:\usr\share\snmp\snmp.conf
or
c:\usr\snmp\persist\snmpapp.0.conf
I did also notice I'm getting buffer overflow messages.
Turned on Graph Debug Mode and I get this with a white box with a red "x":
RRDTool Command:
RRDTool Says:
-JD-
C:\usr\share\snmp\snmp.conf
or
c:\usr\snmp\persist\snmpapp.0.conf
I did also notice I'm getting buffer overflow messages.
Turned on Graph Debug Mode and I get this with a white box with a red "x":
RRDTool Command:
RRDTool Says:
-JD-
Last edited by JD on Mon Jul 07, 2008 6:19 pm, edited 1 time in total.
Also didn't realize the scheduled tast wasn't running, so I got it going. here are the results:
/USR/SNMP/PERSIST/snmp.conf: line 2: Warning: Unknown token: persistentDir.
/USR/SNMP/PERSIST/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.
^C
C:\>php c:\cacti\poller.php
/USR/SNMP/PERSIST/snmp.conf: line 2: Warning: Unknown token: persistentDir.
/USR/SNMP/PERSIST/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.
07/07/2008 07:05:56 PM - POLLER: Poller[0] NOTE: Poller Int: '15', Scheduled Tas
k Int: '60', Time Since Last: '175', Max Runtime '58', Poller Runs: '4'
07/07/2008 07:05:56 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of syn
c with the Poller Interval! The Poller Interval is '15' seconds, with a maximum
of a '300' second Scheduled Task, but 175 seconds have passed since the last po
ll!
07/07/2008 07:05:57 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/cacti/cmd.php 0 6]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
07/07/2008 07:05:59 PM - SYSTEM STATS: Time:2.5319 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
Loop Time is: 2.561341047287
Sleep Time is: 11.999382019043
Total Time is: 3.000617980957
07/07/2008 07:06:11 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/cacti/cmd.php 0 6]
Waiting on 1/1 pollers.
07/07/2008 07:06:13 PM - SYSTEM STATS: Time:1.4449 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
Loop Time is: 1.4885430335999
Sleep Time is: 13.5114569664
Total Time is: 16.493027925491
07/07/2008 07:06:26 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/cacti/cmd.php 0 6]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
07/07/2008 07:06:29 PM - SYSTEM STATS: Time:2.4561 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
Loop Time is: 2.4839768409729
Sleep Time is: 12.516023159027
Total Time is: 32.493616819382
07/07/2008 07:06:41 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/cacti/cmd.php 0 6]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
07/07/2008 07:06:44 PM - SYSTEM STATS: Time:2.4747 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
Loop Time is: 2.510017156601
Sleep Time is: 12.489982843399
Total Time is: 47.524435997009
/USR/SNMP/PERSIST/snmp.conf: line 2: Warning: Unknown token: persistentDir.
/USR/SNMP/PERSIST/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.
^C
C:\>php c:\cacti\poller.php
/USR/SNMP/PERSIST/snmp.conf: line 2: Warning: Unknown token: persistentDir.
/USR/SNMP/PERSIST/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.
07/07/2008 07:05:56 PM - POLLER: Poller[0] NOTE: Poller Int: '15', Scheduled Tas
k Int: '60', Time Since Last: '175', Max Runtime '58', Poller Runs: '4'
07/07/2008 07:05:56 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of syn
c with the Poller Interval! The Poller Interval is '15' seconds, with a maximum
of a '300' second Scheduled Task, but 175 seconds have passed since the last po
ll!
07/07/2008 07:05:57 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/cacti/cmd.php 0 6]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
07/07/2008 07:05:59 PM - SYSTEM STATS: Time:2.5319 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
Loop Time is: 2.561341047287
Sleep Time is: 11.999382019043
Total Time is: 3.000617980957
07/07/2008 07:06:11 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/cacti/cmd.php 0 6]
Waiting on 1/1 pollers.
07/07/2008 07:06:13 PM - SYSTEM STATS: Time:1.4449 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
Loop Time is: 1.4885430335999
Sleep Time is: 13.5114569664
Total Time is: 16.493027925491
07/07/2008 07:06:26 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/cacti/cmd.php 0 6]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
07/07/2008 07:06:29 PM - SYSTEM STATS: Time:2.4561 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
Loop Time is: 2.4839768409729
Sleep Time is: 12.516023159027
Total Time is: 32.493616819382
07/07/2008 07:06:41 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q c:/cacti/cmd.php 0 6]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
07/07/2008 07:06:44 PM - SYSTEM STATS: Time:2.4747 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
Loop Time is: 2.510017156601
Sleep Time is: 12.489982843399
Total Time is: 47.524435997009
1) change back to 5 min polling/intervals. You'll need to delete the existing rrd files too. Using somethign faster, which apparently you are, can cause problems. Once you have a fully functional cacti, then you can start to tweak stuff.
2) Blank "RRDTool Says:" is typically a strong indiction of NTFS permission errors. You granted the IUSR and IIS_WPG accounts read/execute rights on rrdtool.exe and cmd.exe, right?
3) Those net-snmp errors are annoying and can be ignored.
2) Blank "RRDTool Says:" is typically a strong indiction of NTFS permission errors. You granted the IUSR and IIS_WPG accounts read/execute rights on rrdtool.exe and cmd.exe, right?
3) Those net-snmp errors are annoying and can be ignored.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Ok, will do. I didn't realize the timing was an issue.
Yes, I've checked everything 3 or 4 times finding some issues with permissions, maybe its the timing issues. I'll do it tomorrow.
3) Thanks.
-JD-
Yes, I've checked everything 3 or 4 times finding some issues with permissions, maybe its the timing issues. I'll do it tomorrow.
3) Thanks.
What about these items from Sysinternals?JD wrote:I'm now checking security using Sysinternals. I'm seeing no Access Denied, but I am seeing tons of Name Not Found for files and registry entries. One in particular is for PHP.exe in the following path:
C:\usr\share\snmp\snmp.conf
or
c:\usr\snmp\persist\snmpapp.0.conf
I did also notice I'm getting buffer overflow messages.
-JD-
-JD-
Last edited by JD on Mon Jul 07, 2008 8:47 pm, edited 1 time in total.
Nothing cacti specific uses registry entries, so those are possibly misconfigurations or can be ignored.
File not found entries are typical and can be ok -- assuming whats being searched for, is eventually found (config file, .exe, etc). That is very typical of how windows searches various paths for things. that snmp.conf is part of net-snmp and really isn't an issue unless you are using it.
File not found entries are typical and can be ok -- assuming whats being searched for, is eventually found (config file, .exe, etc). That is very typical of how windows searches various paths for things. that snmp.conf is part of net-snmp and really isn't an issue unless you are using it.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Still no dice. I've checked and rechecked everything you have mentioned. Sysinternals is reporting not a single access denied. What I find odd is under the Tree view, I don't see listings for graphs, if I go to list or preview I see areas for graphs but red x's instead.
I'm seeing files entered into the RRA folder. Turn on graph debug mode, and I don't see graphs or errors. Just RRDToolCommand: And a box with a red x.
When I'm running the scheduled tast, I'm using the isur_wug account. I don't see the command window popping up like I do when I run it under my account. Both are domain accounts.
I'm seeing SNMP data, I'm using a switch which I know works. I'm using it to monitor via What's Up Gold. I'm seeing data everywhere in Cacti, just not seeing graphs.
I've set the Cron Interval to 5 minutes and the Poller Interval to 5 minutes as suggested.
*Edit* I just realized something. I'm using 2 accounts for cacti. IIS_WPG and ISUR_WUG. In your directions it states to use 3. Is that my issue?
-JD-
I'm seeing files entered into the RRA folder. Turn on graph debug mode, and I don't see graphs or errors. Just RRDToolCommand: And a box with a red x.
When I'm running the scheduled tast, I'm using the isur_wug account. I don't see the command window popping up like I do when I run it under my account. Both are domain accounts.
I'm seeing SNMP data, I'm using a switch which I know works. I'm using it to monitor via What's Up Gold. I'm seeing data everywhere in Cacti, just not seeing graphs.
I've set the Cron Interval to 5 minutes and the Poller Interval to 5 minutes as suggested.
*Edit* I just realized something. I'm using 2 accounts for cacti. IIS_WPG and ISUR_WUG. In your directions it states to use 3. Is that my issue?
-JD-
Who is online
Users browsing this forum: No registered users and 0 guests