Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


data coming up as nan

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
todd.seidenberg



Joined: 17 Jun 2008
Posts: 9

PostPosted: Thu Aug 14, 2008 5:10 pm    Post subject: data coming up as nan Reply with quote

Folks,

I'm trying to generate a graph utilizing the samba.pl script from this forum. (The SNMP version.)

For some reason, after the graph is created initially, (and data is gathered initially), I get no more data gathering, and hence - no more data on the graph - all data points come up as 'nan.' In fact, after the initial generation of the graph with the initial data, there are not more entries in the log file from the samba script.

Here's the output from cacti.log, grepping 'samba':
Code:
08/12/2008 01:40:08 PM - SPINE: Poller[0] Host[4] DS[412] SNMP: v2: animal.my-domain.com, dsname: samba_proc, oid: .1.3.6.1.4.1.2021.55.1.101.1, value: 12
08/12/2008 01:40:08 PM - SPINE: Poller[0] Host[4] DS[413] SNMP: v2: animal.my-domain.com, dsname: samba_shares, oid: .1.3.6.1.4.1.2021.55.2.101.1, value: 21
08/12/2008 01:40:08 PM - SPINE: Poller[0] Host[4] DS[411] SNMP: v2: animal.my-domain.com, dsname: samba_files, oid: .1.3.6.1.4.1.2021.55.3.101.1, value: 0
08/12/2008 01:40:10 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='411' and rrd_name='samba_files' and time='2008-08-12 13:40:03'"
08/12/2008 01:40:10 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='413' and rrd_name='samba_shares' and time='2008-08-12 13:40:03'"
08/12/2008 01:40:10 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='412' and rrd_name='samba_proc' and time='2008-08-12 13:40:03'"
08/12/2008 01:40:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool create /opt/cacti-0.8.7b/rra/animal_samba_files_411.rrd   --step 60   DS:samba_files:GAUGE:120:0:U  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797 
08/12/2008 01:40:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/animal_samba_files_411.rrd --template samba_files N:0
08/12/2008 01:40:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool create /opt/cacti-0.8.7b/rra/animal_samba_shares_413.rrd   --step 60   DS:samba_shares:GAUGE:120:0:U  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797 
08/12/2008 01:40:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/animal_samba_shares_413.rrd --template samba_shares N:21
08/12/2008 01:40:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool create /opt/cacti-0.8.7b/rra/animal_samba_proc_412.rrd   --step 60   DS:samba_proc:GAUGE:120:0:U  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797 
08/12/2008 01:40:10 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/animal_samba_proc_412.rrd --template samba_proc N:12
08/12/2008 03:10:08 PM - SPINE: Poller[0] Host[4] DS[414] SNMP: v2: animal.my-domain.com, dsname: samba_files, oid: .1.3.6.1.4.1.2021.55.3.101.1, value: 0
08/12/2008 03:10:08 PM - SPINE: Poller[0] Host[4] DS[415] SNMP: v2: animal.my-domain.com, dsname: samba_proc, oid: .1.3.6.1.4.1.2021.55.1.101.1, value: 13
08/12/2008 03:10:08 PM - SPINE: Poller[0] Host[4] DS[416] SNMP: v2: animal.my-domain.com, dsname: samba_shares, oid: .1.3.6.1.4.1.2021.55.2.101.1, value: 23
08/12/2008 03:10:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='416' and rrd_name='samba_shares' and time='2008-08-12 15:10:03'"
08/12/2008 03:10:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='415' and rrd_name='samba_proc' and time='2008-08-12 15:10:03'"
08/12/2008 03:10:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='414' and rrd_name='samba_files' and time='2008-08-12 15:10:03'"
08/12/2008 03:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool create /opt/cacti-0.8.7b/rra/animal_samba_shares_416.rrd   --step 60   DS:samba_shares:GAUGE:120:0:U  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797 
08/12/2008 03:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/animal_samba_shares_416.rrd --template samba_shares N:23
08/12/2008 03:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool create /opt/cacti-0.8.7b/rra/animal_samba_proc_415.rrd   --step 60   DS:samba_proc:GAUGE:120:0:U  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797 
08/12/2008 03:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/animal_samba_proc_415.rrd --template samba_proc N:13
08/12/2008 03:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool create /opt/cacti-0.8.7b/rra/animal_samba_files_414.rrd   --step 60   DS:samba_files:GAUGE:120:0:U  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797 
08/12/2008 03:10:09 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/animal_samba_files_414.rrd --template samba_files N:0




Any thoughts? As can be seen, after that initial data gathering, no more data is aquired. The script runs fine on the command line.

Any help would be appreciated.

- Thanks,

Todd
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Thu Aug 14, 2008 8:54 pm    Post subject: Reply with quote

There are so many create statements in this log, that it's hard to cope with.
Please veriyf, that "System Utilities -> View Poller Cache" shows the script. Please see 2nd link of my sig more more debugging infos (some of them will not apply to your case, bear with me)
Reinhard
Back to top
todd.seidenberg



Joined: 17 Jun 2008
Posts: 9

PostPosted: Tue Aug 19, 2008 5:05 pm    Post subject: Reply with quote

Yes....I see the script in the poller cache view.



Here's the way I've got it set up:

my remote cacti client has the following in its snmp.conf file:

Code:
#######
# samba monitoring
#######
exec .1.3.6.1.4.1.2021.55.1     Samba    /opt/cacti/scripts/samba.pl Processes
exec .1.3.6.1.4.1.2021.55.2     Samba    /opt/cacti/scripts/samba.pl Shares
exec .1.3.6.1.4.1.2021.55.3     Samba    /opt/cacti/scripts/samba.pl Files



an
Code:
snmpwalk -v 2c -c comm_name cacti_client .1.3.6.1.4.1.2021.55.1 


run from the cacti server yields the following:
Code:

UCD-SNMP-MIB::ucdavis.55.1.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.1.2.1 = STRING: "Samba"
UCD-SNMP-MIB::ucdavis.55.1.3.1 = STRING: "/opt/cacti/scripts/samba.pl Processes"
UCD-SNMP-MIB::ucdavis.55.1.100.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.1.101.1 = STRING: "17"
UCD-SNMP-MIB::ucdavis.55.1.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.1.103.1 = ""



So I know I can get the data that I need. That appears to be working. It just seems that after the initial generation of the graph, in which I get the output below:

Code:
08/19/2008 11:10:09 AM - SPINE: Poller[0] Host[4] DS[418] SNMP: v2: machine.domain.com, dsname: samba_files, oid: .1.3.6.1.4.1.2021.55.3.101.1, value: 27
08/19/2008 11:10:09 AM - SPINE: Poller[0] Host[4] DS[420] SNMP: v2: machine.domain.com, dsname: samba_shares, oid: .1.3.6.1.4.1.2021.55.2.101.1, value: 36
08/19/2008 11:10:09 AM - SPINE: Poller[0] Host[4] DS[419] SNMP: v2: machine.domain.com, dsname: samba_proc, oid: .1.3.6.1.4.1.2021.55.1.101.1, value: 17
08/19/2008 11:10:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool create /opt/cacti-0.8.7b/rra/animal_samba_proc_419.rrd   --step 60   DS:samba_proc:GAUGE:120:0:U  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797 
08/19/2008 11:10:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/machine_samba_proc_419.rrd --template samba_proc N:17
08/19/2008 11:10:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool create /opt/cacti-0.8.7b/rra/machine_samba_shares_420.rrd   --step 60   DS:samba_shares:GAUGE:120:0:U  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797 
08/19/2008 11:10:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/machine_samba_shares_420.rrd --template samba_shares N:36
08/19/2008 11:10:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool create /opt/cacti-0.8.7b/rra/machine_samba_files_418.rrd   --step 60   DS:samba_files:GAUGE:120:0:U  RRA:AVERAGE:0.5:1:500  RRA:AVERAGE:0.5:1:600  RRA:AVERAGE:0.5:6:700  RRA:AVERAGE:0.5:24:775  RRA:AVERAGE:0.5:288:797  RRA:MAX:0.5:1:500  RRA:MAX:0.5:1:600  RRA:MAX:0.5:6:700  RRA:MAX:0.5:24:775  RRA:MAX:0.5:288:797 
08/19/2008 11:10:10 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/machine_samba_files_418.rrd --template samba_files N:27


(and of course, everything looks great! I'm getting data, and the graphs have been created.) After this initial tease, I get no more data to my graphs. CONSISTENTLY. I remove the old graph. I start over. I tell the device to generate the samba graph. I look in the log file. When poller runs, I get an initial aquisition of data, as above, and the graph gets created. After that point, I get "Nan' data. Its weird. I know snmp is working, as can be seen above. But it seems like cacti refuses to make the effort to even try
to get any more data.

Any reason why this might be happening? An initial data aquisition followed by nothing?


- Thanks


Todd

gandalf wrote:
There are so many create statements in this log, that it's hard to cope with.
Please veriyf, that "System Utilities -> View Poller Cache" shows the script. Please see 2nd link of my sig more more debugging infos (some of them will not apply to your case, bear with me)
Reinhard
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Fri Aug 29, 2008 1:36 pm    Post subject: Reply with quote

This looks fine, up to now. When the poller is running at a later interval, Do you find
Quote:
CACTI2RRD: /usr/local/rrdtool-1.3.0/bin/rrdtool update /opt/cacti-0.8.7b/rra/machine_samba_proc_419.rrd --template samba_proc N:17
again and/or
Quote:
SPINE: Poller[0] Host[4] DS[419] SNMP: v2: machine.domain.com, dsname: samba_proc, oid: .1.3.6.1.4.1.2021.55.1.101.1, value: 17
? You've defined the rrd file using an interval of 60 secs, do you run the poller with the correct settings?
Reinhard
Back to top
todd.seidenberg



Joined: 17 Jun 2008
Posts: 9

PostPosted: Fri Aug 29, 2008 2:54 pm    Post subject: Reply with quote

Actually, what I did was remove all instances of the samba template, and all rrds associated with it, and I reloaded them all - started over as if I had never had samba graphs to begin with.

And of course, the graphs came back in full force, and I was getting actual data. I wonder if the template got corrupted somehow? Could that be the issue?


Eitherway, the issue is solved now. I just had to redo it. Not a big deal, and actually it was a lot easier than picking through the log file.


- Thanks,
Todd
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Fri Aug 29, 2008 2:57 pm    Post subject: Reply with quote

todd.seidenberg wrote:
And of course, the graphs came back in full force, and I was getting actual data. I wonder if the template got corrupted somehow? Could that be the issue?
This would be a guess; so I'll drop that.
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group