[solved] SNMP Error

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
allenlow
Posts: 7
Joined: Tue Oct 12, 2010 10:56 pm

[solved] SNMP Error

Post by allenlow »

I am facing snmp error and i am new in cacti, thanks for help.

And i try to create graphs, it unable to display the graph

below is the debug error

Data Query Debug Information
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'C:\php\php.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php 182.239.42.22 3 1:161:500:1:10:public:::::: index'
+ Executing script query 'C:\php\php.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php 182.239.42.22 3 1:161:500:1:10:public:::::: query index'
+ Executing script query 'C:\php\php.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php 182.239.42.22 3 1:161:500:1:10:public:::::: query description'
+ Executing script query 'C:\php\php.exe -q C:\Inetpub\wwwroot\cacti\scripts\ss_host_disk.php 182.239.42.22 3 1:161:500:1:10:public:::::: query sau'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
Attachments
error.JPG
error.JPG (165.41 KiB) Viewed 2660 times
allenlow
Posts: 7
Joined: Tue Oct 12, 2010 10:56 pm

Re: SNMP Error

Post by allenlow »

Enclose the technical support report
Attachments
Technical Support.doc
(189 KiB) Downloaded 213 times
allenlow
Posts: 7
Joined: Tue Oct 12, 2010 10:56 pm

Re: SNMP Error

Post by allenlow »

This is cacti current version

Current Versions:
-Cacti 0.8.7g
--Patches:
--Data Source Deactivation
--Graph List View Searching
--Interface Display
--LDAP Group Authenication
--Script Server Command Line Options
--Ping Response Fix
--One Minute Polling Interval Fix
-Spine 0.8.7g
-PIA 2.8
-Apache 2.2.16
-MySQL 5.1.50
-PHP 5.2.14
-Net-SNMP 5.5.0.2
-RRDTool 1.2.30
-GetIF 2.3.1
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP Error

Post by BSOD2600 »

snmp error -- did you search the forums for it? this has been covered dozens of times.

you don't have the snmp agent properly configured or a firewall is blocking snmp traffic.
allenlow
Posts: 7
Joined: Tue Oct 12, 2010 10:56 pm

Re: SNMP Error

Post by allenlow »

I tried search from forum and use all the solution...but the problem still exist

Turn the logging level in cacti to debug, manually invoke the poller from the command line, and post the results. Run: php <cactipath>\poller.php.
--------------------------------------------------
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>php C:\Inetpub\wwwroot\cacti\poller.php
10/20/2010 03:07:03 AM - POLLER: Poller[0] WARNING: Scheduled Task is out of syn
c with the Poller Interval! The Poller Interval is '300' seconds, with a maximu
m of a '300' second Scheduled Task, but 145522 seconds have passed since the las
t poll!
10/20/2010 03:07:04 AM - SYSTEM STATS: Time:1.4340 Method:cmd.php Processes:2 Th
reads:N/A Hosts:3 HostsPerProcess:2 DataSources:14 RRDsProcessed:0

C:\Documents and Settings\Administrator>
---------------------------------------------------

is it cause of this?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP Error

Post by BSOD2600 »

Nope, you need to fix the snmp issue first. As I stated before, you don't have the snmp agent properly configured or a firewall is blocking snmp traffic.
allenlow
Posts: 7
Joined: Tue Oct 12, 2010 10:56 pm

Re: SNMP Error

Post by allenlow »

Thanks BSOD~ The SNMP error has been resolved. After resolved it, i tried to create new graph and it was created successfully but it is cannot display the graph at all...any idea? :cry:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP Error

Post by BSOD2600 »

What graph is it?

paste the graph debug output here.

follow http://docs.cacti.net/manual:087:4_help ... #debugging
allenlow
Posts: 7
Joined: Tue Oct 12, 2010 10:56 pm

Re: SNMP Error

Post by allenlow »

Thanks for your help :P BSOD

Below is the debug code:
RRDTool Command:

C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="localhost - Traffic - 182.239.42.22 (Citrix PV Ether)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/2/9.rrd":traffic_in:AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/cacti/rra/2/9.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:
ERROR: opening 'C:/Inetpub/wwwroot/cacti/rra/2/9.rrd': No such file or directory

------------------------------------
I have deployed it in my home PC which is Windows 7 and it has no problem, but i face this kind of problem in my windows server 2003

My localhost status is Unknown for now...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP Error

Post by BSOD2600 »

allenlow wrote:My localhost status is Unknown for now...
Does snmp report errors too on this device?
How did you create the traffic graph?
Did you read the installation guide when you set up cacti?
allenlow
Posts: 7
Joined: Tue Oct 12, 2010 10:56 pm

Re: SNMP Error

Post by allenlow »

Thanks..i found that my schedule task is not running coz the problem...resolved this problem now.

After turn on the schedule task which 5 minutes to run, it will prompt out command prompt screen every 5 minutes...is there other way to hide the command prompt?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP Error

Post by BSOD2600 »

Don't logon to the server with the same account ask the scheduled task.
epheterson
Posts: 2
Joined: Tue Dec 14, 2010 11:50 am

Re: [solved] SNMP Error

Post by epheterson »

I hate to say it, but I have this problem as well... even after reading the documentation, FAQ and forums.

I've properly set up SNMP under Services, enabling all agents and allowing packets from localhost. I've also added the firewall exception for SNMP and SNMP trap.

I installed Getif and tried getting SNMP information from localhost about localhost and it returns 'No SNMP Response from 12.0.0.1'.

Suggestions?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: [solved] SNMP Error

Post by BSOD2600 »

I hate to say it... but you don't have everything configured properly :P

You know localhost is 127.0.0.1, right?
Did you add a community to the snmp service?
What firewall you using? Does its logs show blocking snmp?
What antivirus you using? Does its logs show blocking snmp?
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests