problems with a data input methods pulling multiple items

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
xminos
Cacti User
Posts: 63
Joined: Wed Apr 26, 2006 8:10 am

problems with a data input methods pulling multiple items

Post by xminos »

Hi all,

I'm having issues with a script I wrote that will log into a device and pull a ton of data outputting it to the screen. I've read over the documentation and I think I'm doing it the correctly way however I am unable to successfully graph any data. I've used custom single data inputs but never multiples. Please look over my configuration and let me know if you see anything out of place. To ensure that the time the script takes to pull I've taken that out of the mix. The script that gathers the data now is run by a cron job once every 30 minutes or so. It outputs the data to a text file in which cacti will open and pull the data. The output of the script looks like this:
OSSC_LogInt:2652 OSSC_DLCI:660 OSSC_RouteInstances:3187 OSSC_Vlans:1121 OSSC_BGPPeers:35 OSSC_VRRPs:1458 OSSC_PFin-FPC0:7156 OSSC_PFout-FPC0:6733 OSSC_PFin-All:21611 OSSC_PFout-All:20945 OSSC_MS100MemoryUtil:8 OSSC_PFin-MS100:1661 OSSC_PFout-MS100:1732 OSSC_RE0-MemoryUtil:12 OSSC_RE1-MemoryUtil:21 LSDC_LogInt:2351 LSDC_DLCI:341 LSDC_RouteInstances:3184 LSDC_Vlans:1121 LSDC_BGPPeers:36 LSDC_VRRPs:1461 LSDC_PFin-FPC0:3545 LSDC_PFout-FPC0:3359 LSDC_PFin-All:14863 LSDC_PFout-All:13265 LSDC_MS100MemoryUtil:8 LSDC_PFin-MS100:18 LSDC_PFout-MS100:1386 LSDC_RE0-MemoryUtil:16 LSDC_RE1-MemoryUtil:15


Data Input Method:
Image

Data Template:
Image

Second Data Template:
Image

Graph Template:
Image

Image

Graph Template Items:
Image


A small capture from debugging the pull:
04/14/2008 03:46:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_logint_10959.rrd --template 1208205955:U
04/14/2008 03:46:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_logint_10957.rrd --template 1208205955:U
04/14/2008 03:46:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_logint_10958.rrd --template 1208205955:U
04/14/2008 03:46:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_logint_10912.rrd --template 1208205955:U
04/14/2008 03:46:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_vrrp_11660.rrd --template 1208205955:U
04/14/2008 03:51:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_logint_10958.rrd --template 1208206255:U
04/14/2008 03:51:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_logint_10959.rrd --template 1208206255:U
04/14/2008 03:51:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_logint_10957.rrd --template 1208206255:U
04/14/2008 03:51:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_logint_10912.rrd --template 1208206255:U
04/14/2008 03:51:18 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/juniper_ossc_m320_ossc_vrrp_11660.rrd --template 1208206255:U
I appreciate any input here guys. I am pretty stuck here..

Thanks,
Tim
xminos
Cacti User
Posts: 63
Joined: Wed Apr 26, 2006 8:10 am

Post by xminos »

Anyone?

I would really like to get this working I hate to break this single script into 40 different data inputs unless I 100% had to.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please start by reading 2nd link of my sig. Post results of each step
Reinhard
xminos
Cacti User
Posts: 63
Joined: Wed Apr 26, 2006 8:10 am

Post by xminos »

Gandalf,

From the link in your signature:

"cacti was logging a "U" for unparseable in the debug output, and was recording NAN. So my fix there was to make the script run faster - it has to complete in less than one second, and the age of my box make that hard."

In the pulling this is what I'm seeing. I don't think it's a timeout issue more than it's a misconfiguration on the my part (I just can't figure out where) that involve multiple items within a data input method. Cacti is reporting it doesn't no how to parse them, I'm sure this is 100% user error but I'm at my wits end on finding it..

Thank you so much for your help on this. I did go through your whole link and gathered the data requested. It is below.. Please let me know if you have any further questions or any tips I can use to troubleshoot this.

Check Basic Data Gathering:

Code: Select all

[root@pdnsitools tle4729]# su cactiuser
bash-3.00$ cat /var/www/html/cacti/scripts/output.txt
OSSC_LogInt:2652 OSSC_DLCI:660 OSSC_RouteInstances:3187 OSSC_Vlans:1121 OSSC_BGPPeers:35 OSSC_VRRPs:1458 OSSC_PFin-FPC0:7236 OSSC_PFout-FPC0:6601 OSSC_PFin-All:24214 OSSC_PFout-All:22465 OSSC_MS100MemoryUtil:8 OSSC_PFin-MS100:1493 OSSC_PFout-MS100:1136 OSSC_RE0-MemoryUtil:12 OSSC_RE1-MemoryUtil:20 LSDC_LogInt:2351 LSDC_DLCI:341 LSDC_RouteInstances:3184 LSDC_Vlans:1121 LSDC_BGPPeers:35 LSDC_VRRPs:1461 LSDC_PFin-FPC0:3443 LSDC_PFout-FPC0:3199 LSDC_PFin-All:12858 LSDC_PFout-All:12458 LSDC_MS100MemoryUtil:8 LSDC_PFin-MS100:19 LSDC_PFout-MS100:1294 LSDC_RE0-MemoryUtil:16 LSDC_RE1-MemoryUtil:15 bash-3.00$
Check cacti's poller: This is where I feel the issue is..

Code: Select all

bash-3.00$ cat cacti.log | grep "cat /var/www/html/cacti/scripts/output.txt"
04/17/2008 04:40:55 AM - CACTID: Poller[0] Host[356] DS[11660] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U
04/17/2008 04:40:55 AM - CACTID: Poller[0] Host[356] DS[10912] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U
04/17/2008 04:40:55 AM - CACTID: Poller[0] Host[356] DS[10957] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U
04/17/2008 04:40:55 AM - CACTID: Poller[0] Host[356] DS[10958] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U
04/17/2008 04:40:55 AM - CACTID: Poller[0] Host[356] DS[10959] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U
04/17/2008 04:45:55 AM - CACTID: Poller[0] Host[356] DS[11660] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U
04/17/2008 04:45:55 AM - CACTID: Poller[0] Host[356] DS[10912] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U
04/17/2008 04:45:55 AM - CACTID: Poller[0] Host[356] DS[10957] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U
04/17/2008 04:45:55 AM - CACTID: Poller[0] Host[356] DS[10958] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U
04/17/2008 04:45:55 AM - CACTID: Poller[0] Host[356] DS[10959] SCRIPT: cat /var/www/html/cacti/scripts/output.txt, output: U

Check rrd file updating: Confirmed from the output below


Check rrd file ownership: Confirmed good

bash-3.00$ ls -alh | grep m320
-rw-r--r-- 1 cactiuser cactiuser 3.0M Apr 14 13:46 juniper_ossc_m320_ossc_logint_10912.rrd
-rw-r--r-- 1 cactiuser cactiuser 3.0M Apr 14 13:46 juniper_ossc_m320_ossc_logint_10957.rrd
-rw-r--r-- 1 cactiuser cactiuser 3.0M Apr 14 13:46 juniper_ossc_m320_ossc_logint_10958.rrd
-rw-r--r-- 1 cactiuser cactiuser 3.0M Apr 14 13:46 juniper_ossc_m320_ossc_logint_10959.rrd
-rw-r--r-- 1 cactiuser cactiuser 995K Apr 14 14:11 juniper_ossc_m320_ossc_vrrp_11660.rrd


Check rrd file numbers: maybe an issue?

Code: Select all

bash-3.00$ rrdtool fetch juniper_ossc_m320_ossc_logint_10912.rrd AVERAGE
                    OSSC_LogInt           OSSC_DLCI OSSC_RouteInstances

1208371200: nan nan nan
1208371500: nan nan nan
1208371800: nan nan nan
1208372100: nan nan nan

Code: Select all

bash-3.00$ rrdtool info juniper_ossc_m320_ossc_logint_10912.rrd
filename = "juniper_ossc_m320_ossc_logint_10912.rrd"
rrd_version = "0003"
step = 300
last_update = 1208198456
ds[OSSC_LogInt].type = "GAUGE"
ds[OSSC_LogInt].minimal_heartbeat = 600
ds[OSSC_LogInt].min = 0.0000000000e+00
ds[OSSC_LogInt].max = 1.0000000000e+08
ds[OSSC_LogInt].last_ds = "UNKN"
ds[OSSC_LogInt].value = 1.4851200000e+05
ds[OSSC_LogInt].unknown_sec = 0
ds[OSSC_DLCI].type = "GAUGE"
ds[OSSC_DLCI].minimal_heartbeat = 600
ds[OSSC_DLCI].min = 0.0000000000e+00
ds[OSSC_DLCI].max = 1.0000000000e+02
ds[OSSC_DLCI].last_ds = "UNKN"
ds[OSSC_DLCI].value = NaN
ds[OSSC_DLCI].unknown_sec = 56
ds[OSSC_RouteInstances].type = "GAUGE"
ds[OSSC_RouteInstances].minimal_heartbeat = 600
ds[OSSC_RouteInstances].min = 0.0000000000e+00
ds[OSSC_RouteInstances].max = 1.0000000000e+05
ds[OSSC_RouteInstances].last_ds = "UNKN"
ds[OSSC_RouteInstances].value = NaN
ds[OSSC_RouteInstances].unknown_sec = 56
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[0].cdp_prep[2].value = NaN
rra[0].cdp_prep[2].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 1440
rra[1].pdp_per_row = 1
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = NaN
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[1].cdp_prep[2].value = NaN
rra[1].cdp_prep[2].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 1440
rra[2].pdp_per_row = 1
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = NaN
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = NaN
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[2].cdp_prep[2].value = NaN
rra[2].cdp_prep[2].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 700
rra[3].pdp_per_row = 6
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 5.3040000000e+03
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = NaN
rra[3].cdp_prep[1].unknown_datapoints = 2
rra[3].cdp_prep[2].value = NaN
rra[3].cdp_prep[2].unknown_datapoints = 2
rra[4].cf = "AVERAGE"
rra[4].rows = 10080
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[4].cdp_prep[2].value = NaN
rra[4].cdp_prep[2].unknown_datapoints = 0
rra[5].cf = "AVERAGE"
rra[5].rows = 775
rra[5].pdp_per_row = 24
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 2.1216000000e+04
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = NaN
rra[5].cdp_prep[1].unknown_datapoints = 8
rra[5].cdp_prep[2].value = NaN
rra[5].cdp_prep[2].unknown_datapoints = 8
rra[6].cf = "AVERAGE"
rra[6].rows = 44640
rra[6].pdp_per_row = 1
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = NaN
rra[6].cdp_prep[1].unknown_datapoints = 0
rra[6].cdp_prep[2].value = NaN
rra[6].cdp_prep[2].unknown_datapoints = 0
rra[7].cf = "AVERAGE"
rra[7].rows = 797
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 5.1666847000e+05
rra[7].cdp_prep[0].unknown_datapoints = 29
rra[7].cdp_prep[1].value = NaN
rra[7].cdp_prep[1].unknown_datapoints = 224
rra[7].cdp_prep[2].value = 1.6873900000e+05
rra[7].cdp_prep[2].unknown_datapoints = 171
rra[8].cf = "MIN"
rra[8].rows = 600
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[8].cdp_prep[1].value = NaN
rra[8].cdp_prep[1].unknown_datapoints = 0
rra[8].cdp_prep[2].value = NaN
rra[8].cdp_prep[2].unknown_datapoints = 0
rra[9].cf = "MIN"
rra[9].rows = 700
rra[9].pdp_per_row = 6
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = 2.6520000000e+03
rra[9].cdp_prep[0].unknown_datapoints = 0
rra[9].cdp_prep[1].value = NaN
rra[9].cdp_prep[1].unknown_datapoints = 2
rra[9].cdp_prep[2].value = NaN
rra[9].cdp_prep[2].unknown_datapoints = 2
rra[10].cf = "MIN"
rra[10].rows = 775
rra[10].pdp_per_row = 24
rra[10].xff = 5.0000000000e-01
rra[10].cdp_prep[0].value = 2.6520000000e+03
rra[10].cdp_prep[0].unknown_datapoints = 0
rra[10].cdp_prep[1].value = NaN
rra[10].cdp_prep[1].unknown_datapoints = 8
rra[10].cdp_prep[2].value = NaN
rra[10].cdp_prep[2].unknown_datapoints = 8
rra[11].cf = "MIN"
rra[11].rows = 797
rra[11].pdp_per_row = 288
rra[11].xff = 5.0000000000e-01
rra[11].cdp_prep[0].value = 2.6490000000e+03
rra[11].cdp_prep[0].unknown_datapoints = 29
rra[11].cdp_prep[1].value = NaN
rra[11].cdp_prep[1].unknown_datapoints = 224
rra[11].cdp_prep[2].value = 3.1830000000e+03
rra[11].cdp_prep[2].unknown_datapoints = 171
rra[12].cf = "MAX"
rra[12].rows = 600
rra[12].pdp_per_row = 1
rra[12].xff = 5.0000000000e-01
rra[12].cdp_prep[0].value = NaN
rra[12].cdp_prep[0].unknown_datapoints = 0
rra[12].cdp_prep[1].value = NaN
rra[12].cdp_prep[1].unknown_datapoints = 0
rra[12].cdp_prep[2].value = NaN
rra[12].cdp_prep[2].unknown_datapoints = 0
rra[13].cf = "MAX"
rra[13].rows = 1440
rra[13].pdp_per_row = 1
rra[13].xff = 5.0000000000e-01
rra[13].cdp_prep[0].value = NaN
rra[13].cdp_prep[0].unknown_datapoints = 0
rra[13].cdp_prep[1].value = NaN
rra[13].cdp_prep[1].unknown_datapoints = 0
rra[13].cdp_prep[2].value = NaN
rra[13].cdp_prep[2].unknown_datapoints = 0
rra[14].cf = "MAX"
rra[14].rows = 1440
rra[14].pdp_per_row = 1
rra[14].xff = 5.0000000000e-01
rra[14].cdp_prep[0].value = NaN
rra[14].cdp_prep[0].unknown_datapoints = 0
rra[14].cdp_prep[1].value = NaN
rra[14].cdp_prep[1].unknown_datapoints = 0
rra[14].cdp_prep[2].value = NaN
rra[14].cdp_prep[2].unknown_datapoints = 0
rra[15].cf = "MAX"
rra[15].rows = 700
rra[15].pdp_per_row = 6
rra[15].xff = 5.0000000000e-01
rra[15].cdp_prep[0].value = 2.6520000000e+03
rra[15].cdp_prep[0].unknown_datapoints = 0
rra[15].cdp_prep[1].value = NaN
rra[15].cdp_prep[1].unknown_datapoints = 2
rra[15].cdp_prep[2].value = NaN
rra[15].cdp_prep[2].unknown_datapoints = 2
rra[16].cf = "MAX"
rra[16].rows = 10080
rra[16].pdp_per_row = 1
rra[16].xff = 5.0000000000e-01
rra[16].cdp_prep[0].value = NaN
rra[16].cdp_prep[0].unknown_datapoints = 0
rra[16].cdp_prep[1].value = NaN
rra[16].cdp_prep[1].unknown_datapoints = 0
rra[16].cdp_prep[2].value = NaN
rra[16].cdp_prep[2].unknown_datapoints = 0
rra[17].cf = "MAX"
rra[17].rows = 775
rra[17].pdp_per_row = 24
rra[17].xff = 5.0000000000e-01
rra[17].cdp_prep[0].value = 2.6520000000e+03
rra[17].cdp_prep[0].unknown_datapoints = 0
rra[17].cdp_prep[1].value = NaN
rra[17].cdp_prep[1].unknown_datapoints = 8
rra[17].cdp_prep[2].value = NaN
rra[17].cdp_prep[2].unknown_datapoints = 8
rra[18].cf = "MAX"
rra[18].rows = 44640
rra[18].pdp_per_row = 1
rra[18].xff = 5.0000000000e-01
rra[18].cdp_prep[0].value = NaN
rra[18].cdp_prep[0].unknown_datapoints = 0
rra[18].cdp_prep[1].value = NaN
rra[18].cdp_prep[1].unknown_datapoints = 0
rra[18].cdp_prep[2].value = NaN
rra[18].cdp_prep[2].unknown_datapoints = 0
rra[19].cf = "MAX"
rra[19].rows = 797
rra[19].pdp_per_row = 288
rra[19].xff = 5.0000000000e-01
rra[19].cdp_prep[0].value = 2.6520000000e+03
rra[19].cdp_prep[0].unknown_datapoints = 29
rra[19].cdp_prep[1].value = NaN
rra[19].cdp_prep[1].unknown_datapoints = 224
rra[19].cdp_prep[2].value = 3.1870000000e+03
rra[19].cdp_prep[2].unknown_datapoints = 171
rra[20].cf = "LAST"
rra[20].rows = 600
rra[20].pdp_per_row = 1
rra[20].xff = 5.0000000000e-01
rra[20].cdp_prep[0].value = NaN
rra[20].cdp_prep[0].unknown_datapoints = 0
rra[20].cdp_prep[1].value = NaN
rra[20].cdp_prep[1].unknown_datapoints = 0
rra[20].cdp_prep[2].value = NaN
rra[20].cdp_prep[2].unknown_datapoints = 0
rra[21].cf = "LAST"
rra[21].rows = 700
rra[21].pdp_per_row = 6
rra[21].xff = 5.0000000000e-01
rra[21].cdp_prep[0].value = 2.6520000000e+03
rra[21].cdp_prep[0].unknown_datapoints = 0
rra[21].cdp_prep[1].value = NaN
rra[21].cdp_prep[1].unknown_datapoints = 2
rra[21].cdp_prep[2].value = NaN
rra[21].cdp_prep[2].unknown_datapoints = 2
rra[22].cf = "LAST"
rra[22].rows = 775
rra[22].pdp_per_row = 24
rra[22].xff = 5.0000000000e-01
rra[22].cdp_prep[0].value = 2.6520000000e+03
rra[22].cdp_prep[0].unknown_datapoints = 0
rra[22].cdp_prep[1].value = NaN
rra[22].cdp_prep[1].unknown_datapoints = 8
rra[22].cdp_prep[2].value = NaN
rra[22].cdp_prep[2].unknown_datapoints = 8
rra[23].cf = "LAST"
rra[23].rows = 797
rra[23].pdp_per_row = 288
rra[23].xff = 5.0000000000e-01
rra[23].cdp_prep[0].value = 2.6520000000e+03
rra[23].cdp_prep[0].unknown_datapoints = 29
rra[23].cdp_prep[1].value = NaN
rra[23].cdp_prep[1].unknown_datapoints = 224
rra[23].cdp_prep[2].value = 3.1870000000e+03
rra[23].cdp_prep[2].unknown_datapoints = 171
Not NaN, but 0 (zero) values?: I added full path for sakes of being constistant.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It is clear, that one of the first steps is failing.
Which runtime do you have for running a single script? How many scripts do run for a single host? How many scripts of this kind are running in total for a single poller cycle?
Reinhard
xminos
Cacti User
Posts: 63
Joined: Wed Apr 26, 2006 8:10 am

Post by xminos »

gandalf wrote:It is clear, that one of the first steps is failing.
Which runtime do you have for running a single script? How many scripts do run for a single host? How many scripts of this kind are running in total for a single poller cycle?
Reinhard
Gandalf,

To simplify troubleshooting of this a few days ago I changed cacti to simply "cat" a file with the data output from the script. So basically there is *no* script. All cacti does today is "cat output.txt" and it fails.

Beyond this script I have about 7 single custom data input methods via scripts and those all work 100% of the time. The difference is this is my first script that pulls multiple data items at once.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please run

Code: Select all

cactid --verbosity=5 <host id> <host id>
where <host id> is replace by the id of the host the graph belongs to and post output. I want to see, whether same problem holds if only that host is polled (there have been issues in the past).
Next, try the same using cmd.php instead of cactid. Omit --verbosity as cmd.php does not support it.
Next one would be to cut out parameter by parameter from your "data file" and retry until the output: U goes away. This is to verify, that no "magic character" gives a problem.
Reinhard
xminos
Cacti User
Posts: 63
Joined: Wed Apr 26, 2006 8:10 am

Post by xminos »

I'm sure you'll see a few of the single data input methods I've created to ensure it works properly (which it does)

Code: Select all

[root@pdnsitools tle4729]# cactid --verbosity=5 356 356
CACTID: Using cactid config file [/etc/cactid.conf]
CACTID: DEBUG: MySQL Query ID '0': 'SELECT value FROM settings WHERE name = 'pat                                                                              h_webroot''
CACTID: DEBUG: MySQL Query ID '0': OK
CACTID: DEBUG: MySQL Query ID '1': 'SELECT value FROM settings WHERE name = 'pat                                                                              h_cactilog''
CACTID: DEBUG: MySQL Query ID '1': OK
CACTID: DEBUG: The path_php_server variable is /var/www/html/cacti/script_server                                                                              .php
CACTID: DEBUG: The path_cactilog variable is /var/www/html/cacti/log/cacti.log
CACTID: DEBUG: MySQL Query ID '2': 'SELECT value FROM settings WHERE name = 'log                                                                              _destination''
CACTID: DEBUG: MySQL Query ID '2': OK
CACTID: DEBUG: The log_destination variable is 1 (FILE)
CACTID: DEBUG: MySQL Query ID '3': 'SELECT value FROM settings WHERE name = 'pat                                                                              h_php_binary''
CACTID: DEBUG: MySQL Query ID '3': OK
CACTID: DEBUG: The path_php variable is /usr/bin/php
CACTID: DEBUG: MySQL Query ID '4': 'SELECT value FROM settings WHERE name = 'ava                                                                              ilability_method''
CACTID: DEBUG: MySQL Query ID '4': OK
CACTID: DEBUG: The availability_method variable is 2
CACTID: DEBUG: MySQL Query ID '5': 'SELECT value FROM settings WHERE name = 'pin                                                                              g_recovery_count''
CACTID: DEBUG: MySQL Query ID '5': OK
CACTID: DEBUG: The ping_recovery_count variable is 2
CACTID: DEBUG: MySQL Query ID '6': 'SELECT value FROM settings WHERE name = 'pin                                                                              g_failure_count''
CACTID: DEBUG: MySQL Query ID '6': OK
CACTID: DEBUG: The ping_failure_count variable is 1
CACTID: DEBUG: MySQL Query ID '7': 'SELECT value FROM settings WHERE name = 'pin                                                                              g_method''
CACTID: DEBUG: MySQL Query ID '7': OK
CACTID: DEBUG: The ping_method variable is 2
CACTID: DEBUG: MySQL Query ID '8': 'SELECT value FROM settings WHERE name = 'pin                                                                              g_retries''
CACTID: DEBUG: MySQL Query ID '8': OK
CACTID: DEBUG: The ping_retries variable is 1
CACTID: DEBUG: MySQL Query ID '9': 'SELECT value FROM settings WHERE name = 'pin                                                                              g_timeout''
CACTID: DEBUG: MySQL Query ID '9': OK
CACTID: DEBUG: The ping_timeout variable is 400
CACTID: DEBUG: MySQL Query ID '10': 'SELECT value FROM settings WHERE name = 'lo                                                                              g_perror''
CACTID: DEBUG: MySQL Query ID '10': OK
CACTID: DEBUG: The log_perror variable is 1
CACTID: DEBUG: MySQL Query ID '11': 'SELECT value FROM settings WHERE name = 'lo                                                                              g_pwarn''
CACTID: DEBUG: MySQL Query ID '11': OK
CACTID: DEBUG: The log_pwarn variable is 1
CACTID: DEBUG: MySQL Query ID '12': 'SELECT value FROM settings WHERE name = 'lo                                                                              g_pstats''
CACTID: DEBUG: MySQL Query ID '12': OK
CACTID: DEBUG: The log_pstats variable is 1
CACTID: DEBUG: MySQL Query ID '13': 'SELECT value FROM settings WHERE name = 'ma                                                                              x_threads''
CACTID: DEBUG: MySQL Query ID '13': OK
CACTID: DEBUG: The threads variable is 100
CACTID: DEBUG: MySQL Query ID '14': 'SELECT value FROM settings WHERE name = 'po                                                                              ller_interval''
CACTID: DEBUG: MySQL Query ID '14': OK
CACTID: DEBUG: The polling interval is the system default
CACTID: DEBUG: MySQL Query ID '15': 'SELECT value FROM settings WHERE name = 'co                                                                              ncurrent_processes''
CACTID: DEBUG: MySQL Query ID '15': OK
CACTID: DEBUG: The number of concurrent processes is 60
CACTID: DEBUG: MySQL Query ID '16': 'SELECT value FROM settings WHERE name = 'sc                                                                              ript_timeout''
CACTID: DEBUG: MySQL Query ID '16': OK
CACTID: DEBUG: The script timeout is 600
CACTID: DEBUG: MySQL Query ID '17': 'SELECT value FROM settings WHERE name = 'ph                                                                              p_servers''
CACTID: DEBUG: MySQL Query ID '17': OK
CACTID: DEBUG: The number of php script servers to run is 10
CACTID: DEBUG: MySQL Query ID '18': 'SELECT action FROM poller_item WHERE action                                                                              =2 AND host_id BETWEEN 356 AND 356 LIMIT 1'
CACTID: DEBUG: MySQL Query ID '18': OK
CACTID: DEBUG: StartHost='356', EndHost='356', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: DEBUG: MySQL Query ID '19': 'SELECT value FROM settings WHERE name = 'ma                                                                              x_get_size''
CACTID: DEBUG: MySQL Query ID '19': OK
CACTID: DEBUG: The Maximum SNMP OID Get Size is 60
CACTID: CACTID: Version 0.8.6i starting
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: CACTID: Initializing Net-SNMP API
CACTID: DEBUG: SNMP Header Version is 5.2.1.2
CACTID: DEBUG: SNMP Library Version is 5.2.1.2
CACTID: CACTID: Initializing PHP Script Server(s)
CACTID: DEBUG: MySQL Query ID '20': 'SELECT id FROM host WHERE disabled='' AND i                                                                              d BETWEEN 356 AND 356 ORDER BY id'
CACTID: DEBUG: MySQL Query ID '20': OK
CACTID: DEBUG: Initial Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: DEBUG: MySQL Query ID '21': 'SELECT action, hostname, snmp_community, sn                                                                              mp_version, snmp_username, snmp_password, rrd_name, rrd_path, arg1, arg2, arg3,                                                                               local_data_id, rrd_num, snmp_port, snmp_timeout FROM poller_item WHERE host_id=0                                                                               ORDER BY arg1'
CACTID: DEBUG: MySQL Query ID '21': OK
CACTID: Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 2
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: DEBUG: MySQL Query ID '22': 'SELECT id, hostname, snmp_community, snmp_username, snmp_password, snmp_version, snmp_port, snmp_timeout, status, status_event_count, status_fail_date, status_rec_date, status_last_error, min_time, max_time, cur_time, avg_time, total_polls, failed_polls, availability  FROM host WHERE id=356'
CACTID: DEBUG: MySQL Query ID '22': OK
CACTID: Host[356] SNMP Result: Host responded to SNMP
CACTID: DEBUG: MySQL Insert ID '0': 'update host set status='3', status_event_count='0', status_fail_date='0000-00-00 00:00:00', status_rec_date='2008-03-26 08:40:00', status_last_error='Host did not respond to SNMP', min_time='0.548840', max_time='3095.411060', cur_time='1.070980', avg_time='20.907805', total_polls='8386', failed_polls='1694', availability='79.7997' where id='356''
CACTID: DEBUG: MySQL Insert ID '0': OK
CACTID: DEBUG: MySQL Query ID '23': 'SELECT data_query_id, action, op, assert_value, arg1 FROM poller_reindex WHERE host_id=356'
CACTID: DEBUG: MySQL Query ID '23': OK
CACTID: DEBUG: MySQL Query ID '24': 'SELECT action, hostname, snmp_community, snmp_version, snmp_username, snmp_password, rrd_name, rrd_path, arg1, arg2, arg3, local_data_id, rrd_num, snmp_port, snmp_timeout FROM poller_item WHERE host_id=356 ORDER BY arg1'
CACTID: DEBUG: MySQL Query ID '24': OK
CACTID: Host[356] DEBUG: The POPEN returned the following File Descriptor 7
CACTID: Host[356] DS[12884] SCRIPT: /bin/cat /var/www/html/cacti/scripts/m320/OSSC_BGPPeers_10.22.3.43, output: 35
CACTID: Host[356] DEBUG: The POPEN returned the following File Descriptor 7
/bin/cat: /var/www/html/cacti/scripts/output2.txt_10.22.3.43: No such file or directory
CACTID: Host[356] ERROR: Empty result [10.22.3.43]: '/bin/cat /var/www/html/cacti/scripts/output2.txt_10.22.3.43'
CACTID: Host[356] DS[12883] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[356] DS[12883] SCRIPT: /bin/cat /var/www/html/cacti/scripts/output2.txt_10.22.3.43, output: U
CACTID: Host[356] DEBUG: The POPEN returned the following File Descriptor 7
sh: bin/cat: No such file or directory
CACTID: Host[356] ERROR: Empty result [10.22.3.43]: 'bin/cat /var/www/html/cacti/scripts/m320/OSSC_LogInt_10.22.3.43'
CACTID: Host[356] DS[12885] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[356] DS[12885] SCRIPT: bin/cat /var/www/html/cacti/scripts/m320/OSSC_LogInt_10.22.3.43, output: U
CACTID: DEBUG: MySQL Insert ID '1': 'INSERT INTO poller_output (local_data_id, rrd_name, time, output) VALUES (12884,'OSSC_BGPPeers','2008-04-18 15:14:26','35'),(12883,'M320_OSSC_test_s','2008-04-18 15:14:26','U'),(12885,'OSSC_LogInt','2008-04-18 15:14:26','U')'
CACTID: DEBUG: MySQL Insert ID '1': OK
CACTID: Host[356] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: MySQL Insert ID '2': 'replace into settings (name,value) values ('date',NOW())'
CACTID: DEBUG: MySQL Insert ID '2': OK
CACTID: DEBUG: MySQL Insert ID '3': 'insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())'
CACTID: DEBUG: MySQL Insert ID '3': OK
CACTID: DEBUG: Thread Cleanup Complete
CACTID: DEBUG: PHP Script Server Pipes Closed
CACTID: DEBUG: Allocated Variable Memory Freed
CACTID: CACTID: Net-SNMP API Shutdown Completed
CACTID: DEBUG: MYSQL Free & Close Completed
CACTID: Time: 9.2718 s, Threads: 100, Hosts: 2
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

CACTID: Host[356] DS[12884] SCRIPT: /bin/cat /var/www/html/cacti/scripts/m320/OSSC_BGPPeers_10.22.3.43, output: 35
CACTID: Host[356] DEBUG: The POPEN returned the following File Descriptor 7
/bin/cat: /var/www/html/cacti/scripts/output2.txt_10.22.3.43: No such file or directory
CACTID: Host[356] ERROR: Empty result [10.22.3.43]: '/bin/cat /var/www/html/cacti/scripts/output2.txt_10.22.3.43'
That's interesting.
While the first one is ok, cactid complains about /var/www/html/cacti/scripts/output2.txt_10.22.3.43 not being found. Please verify.
The last line now shows a verify strange error message, because [10.22.3.43] is printed. I'm not sure, if cacti parses output wrong. So please, as a try, rename the file to e.g. /var/www/html/cacti/scripts/output2.txt_example and retry
Reinhard
xminos
Cacti User
Posts: 63
Joined: Wed Apr 26, 2006 8:10 am

Post by xminos »

I renamed it output.txt

All the other graphs such as OSSC_BGPPeers_<IP> are my two tests with single ouputs to ensure I could cat file_<IP>. Those two graphs work fine with single output. It's the multi output from output.txt that fails.

Here's what you requested..
[tle4729@pdnsitools scripts]$ cactid --verbosity=5 356 356
CACTID: Using cactid config file [/etc/cactid.conf]
CACTID: DEBUG: MySQL Query ID '0': 'SELECT value FROM settings WHERE name = 'path_webroot''
CACTID: DEBUG: MySQL Query ID '0': OK
CACTID: DEBUG: MySQL Query ID '1': 'SELECT value FROM settings WHERE name = 'path_cactilog''
CACTID: DEBUG: MySQL Query ID '1': OK
CACTID: DEBUG: The path_php_server variable is /var/www/html/cacti/script_server.php
CACTID: DEBUG: The path_cactilog variable is /var/www/html/cacti/log/cacti.log
CACTID: DEBUG: MySQL Query ID '2': 'SELECT value FROM settings WHERE name = 'log_destination''
CACTID: DEBUG: MySQL Query ID '2': OK
CACTID: DEBUG: The log_destination variable is 1 (FILE)
CACTID: DEBUG: MySQL Query ID '3': 'SELECT value FROM settings WHERE name = 'path_php_binary''
CACTID: DEBUG: MySQL Query ID '3': OK
CACTID: DEBUG: The path_php variable is /usr/bin/php
CACTID: DEBUG: MySQL Query ID '4': 'SELECT value FROM settings WHERE name = 'availability_method''
CACTID: DEBUG: MySQL Query ID '4': OK
CACTID: DEBUG: The availability_method variable is 2
CACTID: DEBUG: MySQL Query ID '5': 'SELECT value FROM settings WHERE name = 'ping_recovery_count''
CACTID: DEBUG: MySQL Query ID '5': OK
CACTID: DEBUG: The ping_recovery_count variable is 2
CACTID: DEBUG: MySQL Query ID '6': 'SELECT value FROM settings WHERE name = 'ping_failure_count''
CACTID: DEBUG: MySQL Query ID '6': OK
CACTID: DEBUG: The ping_failure_count variable is 1
CACTID: DEBUG: MySQL Query ID '7': 'SELECT value FROM settings WHERE name = 'ping_method''
CACTID: DEBUG: MySQL Query ID '7': OK
CACTID: DEBUG: The ping_method variable is 2
CACTID: DEBUG: MySQL Query ID '8': 'SELECT value FROM settings WHERE name = 'ping_retries''
CACTID: DEBUG: MySQL Query ID '8': OK
CACTID: DEBUG: The ping_retries variable is 1
CACTID: DEBUG: MySQL Query ID '9': 'SELECT value FROM settings WHERE name = 'ping_timeout''
CACTID: DEBUG: MySQL Query ID '9': OK
CACTID: DEBUG: The ping_timeout variable is 400
CACTID: DEBUG: MySQL Query ID '10': 'SELECT value FROM settings WHERE name = 'log_perror''
CACTID: DEBUG: MySQL Query ID '10': OK
CACTID: DEBUG: The log_perror variable is 1
CACTID: DEBUG: MySQL Query ID '11': 'SELECT value FROM settings WHERE name = 'log_pwarn''
CACTID: DEBUG: MySQL Query ID '11': OK
CACTID: DEBUG: The log_pwarn variable is 1
CACTID: DEBUG: MySQL Query ID '12': 'SELECT value FROM settings WHERE name = 'log_pstats''
CACTID: DEBUG: MySQL Query ID '12': OK
CACTID: DEBUG: The log_pstats variable is 1
CACTID: DEBUG: MySQL Query ID '13': 'SELECT value FROM settings WHERE name = 'max_threads''
CACTID: DEBUG: MySQL Query ID '13': OK
CACTID: DEBUG: The threads variable is 100
CACTID: DEBUG: MySQL Query ID '14': 'SELECT value FROM settings WHERE name = 'poller_interval''
CACTID: DEBUG: MySQL Query ID '14': OK
CACTID: DEBUG: The polling interval is the system default
CACTID: DEBUG: MySQL Query ID '15': 'SELECT value FROM settings WHERE name = 'concurrent_processes''
CACTID: DEBUG: MySQL Query ID '15': OK
CACTID: DEBUG: The number of concurrent processes is 60
CACTID: DEBUG: MySQL Query ID '16': 'SELECT value FROM settings WHERE name = 'script_timeout''
CACTID: DEBUG: MySQL Query ID '16': OK
CACTID: DEBUG: The script timeout is 600
CACTID: DEBUG: MySQL Query ID '17': 'SELECT value FROM settings WHERE name = 'php_servers''
CACTID: DEBUG: MySQL Query ID '17': OK
CACTID: DEBUG: The number of php script servers to run is 10
CACTID: DEBUG: MySQL Query ID '18': 'SELECT action FROM poller_item WHERE action=2 AND host_id BETWEEN 356 AND 356 LIMIT 1'
CACTID: DEBUG: MySQL Query ID '18': OK
CACTID: DEBUG: StartHost='356', EndHost='356', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: DEBUG: MySQL Query ID '19': 'SELECT value FROM settings WHERE name = 'max_get_size''
CACTID: DEBUG: MySQL Query ID '19': OK
CACTID: DEBUG: The Maximum SNMP OID Get Size is 60
CACTID: CACTID: Version 0.8.6i starting
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: CACTID: Initializing Net-SNMP API
CACTID: DEBUG: SNMP Header Version is 5.2.1.2
CACTID: DEBUG: SNMP Library Version is 5.2.1.2
CACTID: CACTID: Initializing PHP Script Server(s)
CACTID: DEBUG: MySQL Query ID '20': 'SELECT id FROM host WHERE disabled='' AND id BETWEEN 356 AND 356 ORDER BY id'
CACTID: DEBUG: MySQL Query ID '20': OK
CACTID: DEBUG: Initial Value of Active Threads is 0
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: DEBUG: MySQL Query ID '21': 'SELECT action, hostname, snmp_community, snmp_version, snmp_username, snmp_password, rrd_name, rrd_path, arg1, arg2, arg3, local_data_id, rrd_num, snmp_port, snmp_timeout FROM poller_item WHERE host_id=0 ORDER BY arg1'
CACTID: DEBUG: MySQL Query ID '21': OK
CACTID: Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 2
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: DEBUG: MySQL Query ID '22': 'SELECT id, hostname, snmp_community, snmp_username, snmp_password, snmp_version, snmp_port, snmp_timeout, status, status_event_count, status_fail_date, status_rec_date, status_last_error, min_time, max_time, cur_time, avg_time, total_polls, failed_polls, availability FROM host WHERE id=356'
CACTID: DEBUG: MySQL Query ID '22': OK
CACTID: Host[356] SNMP Result: Host responded to SNMP
CACTID: DEBUG: MySQL Insert ID '0': 'update host set status='3', status_event_count='0', status_fail_date='0000-00-00 00:00:00', status_rec_date='2008-03-26 08:40:00', status_last_error='Host did not respond to SNMP', min_time='0.548840', max_time='3095.411060', cur_time='0.690940', avg_time='23.911977', total_polls='9479', failed_polls='1694', availability='82.1289' where id='356''
CACTID: DEBUG: MySQL Insert ID '0': OK
CACTID: DEBUG: MySQL Query ID '23': 'SELECT data_query_id, action, op, assert_value, arg1 FROM poller_reindex WHERE host_id=356'
CACTID: DEBUG: MySQL Query ID '23': OK
CACTID: DEBUG: MySQL Query ID '24': 'SELECT action, hostname, snmp_community, snmp_version, snmp_username, snmp_password, rrd_name, rrd_path, arg1, arg2, arg3, local_data_id, rrd_num, snmp_port, snmp_timeout FROM poller_item WHERE host_id=356 ORDER BY arg1'
CACTID: DEBUG: MySQL Query ID '24': OK
CACTID: Host[356] DEBUG: The POPEN returned the following File Descriptor 7
CACTID: Host[356] DS[12884] SCRIPT: /bin/cat /var/www/html/cacti/scripts/m320/OSSC_BGPPeers_10.22.3.43, output: 35
CACTID: Host[356] DEBUG: The POPEN returned the following File Descriptor 7
CACTID: Host[356] DS[12990] WARNING: Result from SCRIPT not valid. Partial Result: OSSC_LogInt:2380 OSS...
CACTID: Host[356] DS[12990] SCRIPT: /bin/cat /var/www/html/cacti/scripts/output.txt, output: U
CACTID: Host[356] DEBUG: The POPEN returned the following File Descriptor 7
/bin/cat: /var/www/html/cacti/scripts/output2.txt_10.22.3.43: No such file or directory
CACTID: Host[356] ERROR: Empty result [10.22.3.43]: '/bin/cat /var/www/html/cacti/scripts/output2.txt_10.22.3.43'
CACTID: Host[356] DS[12883] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[356] DS[12883] SCRIPT: /bin/cat /var/www/html/cacti/scripts/output2.txt_10.22.3.43, output: U
CACTID: Host[356] DEBUG: The POPEN returned the following File Descriptor 7
sh: bin/cat: No such file or directory
CACTID: Host[356] ERROR: Empty result [10.22.3.43]: 'bin/cat /var/www/html/cacti/scripts/m320/OSSC_LogInt_10.22.3.43'
CACTID: Host[356] DS[12885] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[356] DS[12885] SCRIPT: bin/cat /var/www/html/cacti/scripts/m320/OSSC_LogInt_10.22.3.43, output: U
CACTID: DEBUG: MySQL Insert ID '1': 'INSERT INTO poller_output (local_data_id, rrd_name, time, output) VALUES (12884,'OSSC_BGPPeers','2008-04-22 10:02:18','35'),(12990,'','2008-04-22 10:02:18','U'),(12883,'M320_OSSC_test_s','2008-04-22 10:02:18','U'),(12885,'OSSC_LogInt','2008-04-22 10:02:18','U')'
CACTID: DEBUG: MySQL Insert ID '1': OK
CACTID: Host[356] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: DEBUG: The Value of Active Threads is 0
CACTID: DEBUG: MySQL Insert ID '2': 'replace into settings (name,value) values ('date',NOW())'
CACTID: DEBUG: MySQL Insert ID '2': OK
CACTID: DEBUG: MySQL Insert ID '3': 'insert into poller_time (poller_id, start_time, end_time) values (0, NOW(), NOW())'
CACTID: DEBUG: MySQL Insert ID '3': OK
CACTID: DEBUG: Thread Cleanup Complete
CACTID: DEBUG: PHP Script Server Pipes Closed
CACTID: DEBUG: Allocated Variable Memory Freed
CACTID: CACTID: Net-SNMP API Shutdown Completed
CACTID: DEBUG: MYSQL Free & Close Completed
CACTID: Time: 9.1819 s, Threads: 100, Hosts: 2
As always thanks for your help Gandalf!

-Tim
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Ok. Now please try to truncate the output.txt file. Let's do it in halves until only a single output parm is left (if need be). No need to post the whole debug, only I need to know if ot starts to work at some time
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests