Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 17, 2019 1:43 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject:
PostPosted: Thu Dec 20, 2001 4:40 pm 
Offline

Joined: Wed Dec 19, 2001 7:00 pm
Posts: 5
Hi,

i add my hostname on snmp hosts
and "make graph" for two interfaces.

but when cmd.php run
ERROR: expected 1 data source readings (got 0) from =:...
ERROR: expected 1 data source readings (got 0) from =:...
ERROR: expected 1 data source readings (got 0) from =:...
ERROR: expected 1 data source readings (got 0) from =:...

what could be the problem
thanks
nico


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 20, 2001 4:47 pm 
Offline
Lead Developer

Joined: Sat Oct 13, 2001 7:00 pm
Posts: 2237
Location: Carlisle, PA
First of all cacti version 0.6 had problems with SNMP, make sure you are using version 0.6.1.

What does the output of rrd.log look like in the 'log/' directory when you run cmd.php?

Also, what version of net-snmp are you using? Sounds like the problem is parsing related from what I can gather.

-Ian


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 21, 2001 12:40 pm 
Offline

Joined: Wed Dec 19, 2001 7:00 pm
Posts: 5
thanks for your response
i do have 0.6.1 version
the log seems to be ok
but something strange :

12/21/2001 6:03 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2703451356
12/21/2001 6:04 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2703451416
12/21/2001 6:03 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2703452776
12/21/2001 7:04 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2703452896
12/21/2001 7:03 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2703453016
12/21/2001 7:04 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2703454316
12/21/2001 7:03 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2703454316
12/21/2001 7:05 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2703454936
12/21/2001 7:04 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2703455796
12/21/2001 7:03 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2705469993
12/21/2001 7:03 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2710882631
12/21/2001 7:04 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2716178994
12/21/2001 7:03 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2723077555
12/21/2001 7:05 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2729136702
12/21/2001 7:04 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2734180760
12/21/2001 8:04 PM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:interfaces.ifTable.ifEntry.ifOutOctets.3 = 2739307282

check the time !!
in my crontab :
*/5 * * * * apache php /var/www/html/cacti/cmd.php > /tmp/cacti.cmd.log 2>&1

still the same error in /tmp/cacti.cmd.log

what is the problem ?
thanks
nico


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 21, 2001 3:25 pm 
Offline
Lead Developer

Joined: Sat Oct 13, 2001 7:00 pm
Posts: 2237
Location: Carlisle, PA
I think I may have solved the problem. Download the patched 'cmd_snmp_interface.php' from:

http://www.raxnet.net/downloads/patches/12-21/

Then replace the current one and post your log output again (make sure to remove the .txt from the file).

-Ian

<font size=-1>[ This Message was edited by: raX on 2001-12-21 15:26 ]</font>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 23, 2001 5:25 pm 
Offline

Joined: Wed Dec 19, 2001 7:00 pm
Posts: 5
Hi,

thanks for this patch
it works well :smile:
but there's still the log problem :
12/24/2001 12:45 AM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/traf_eth1_out.rrd N:2055577
12/24/2001 12:01 AM - CMD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/system_proc.rrd N:97

the one at 12:45 was cmd.php run by hand
and 12:01 by crontab
but 'by hand' was before 'by crontab'
any idea ?
thanks
Nico


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], vitoutun and 11 guests


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:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group