WARNING: Result from CMD not valid. (But Graphing Works)

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
djamp42
Posts: 5
Joined: Fri Apr 24, 2015 11:28 am

WARNING: Result from CMD not valid. (But Graphing Works)

Post by djamp42 »

I cannot for the life of me figure out why it's giving me this error. All the graphing works fine, but i still see this error in the log. Any ideas why? This is a pretty new install, Cacti Version 0.8.8b.

I created a graph and it's receiving all 4 values. So i guess it's technically not a problem. Just wondering if this is a bug, or something i could have done differently.

Code: Select all

04/24/2015 12:29:05 PM - CMDPHP: Poller[0] Host[0] DS[273] CMD: perl /usr/share/cacti/site/scripts/ubr10k-cablemodem-count-upstream5-0-0_0.pl, output: Total:11 Reg:10 Unreg:1 Wideband:9
04/24/2015 12:29:05 PM - CMDPHP: Poller[0] Host[0] DS[273] WARNING: Result from CMD not valid. Partial Result: Total:11 Reg:10 Un
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: WARNING: Result from CMD not valid. (But Graphing Works)

Post by BSOD2600 »

Turn up the logging level and look if the 'rrdtool update' command correctly is mapping all 4 of those fields for Host[0].

How are you returning those values in the perl script?
djamp42
Posts: 5
Joined: Fri Apr 24, 2015 11:28 am

Re: WARNING: Result from CMD not valid. (But Graphing Works)

Post by djamp42 »

Here it is,

Code: Select all

04/24/2015 02:09:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/cm-5_0_0-u0_273.rrd --template Total:Registered:Unregistered:Wideband 1429898945:11:10:1:9
04/24/2015 02:09:06 PM - POLLER: Poller[0] Parsed MULTI output field 'Wideband:9' [map Wideband->Wideband]
04/24/2015 02:09:06 PM - POLLER: Poller[0] Parsed MULTI output field 'Unreg:1' [map Unreg->Unregistered]
04/24/2015 02:09:06 PM - POLLER: Poller[0] Parsed MULTI output field 'Reg:10' [map Reg->Registered]
04/24/2015 02:09:06 PM - POLLER: Poller[0] Parsed MULTI output field 'Total:11' [map Total->Total]
04/24/2015 02:09:06 PM - CMDPHP: Poller[0] Host[0] DS[273] CMD: perl /usr/share/cacti/site/scripts/ubr10k-cablemodem-count-upstream5-0-0_0.pl, output: Total:11 Reg:10 Unreg:1 Wideband:9
04/24/2015 02:09:06 PM - CMDPHP: Poller[0] Host[0] DS[273] WARNING: Result from CMD not valid. Partial Result: Total:11 Reg:10 Un 
original script.

Code: Select all

perl ubr10k-cablemodem-count-upstream5-0-0_0.pl
Total:11  Reg:10  Unreg:1   Wideband:9 
Output of new Script re-ordered output

Code: Select all

perl ubr10k-cablemodem-count-upstream5-0-0_0.pl
Total:11  Reg:10  Wideband:9   Unreg:1
Now it's telling me it's failing at Wi

Code: Select all

WARNING: Result from CMD not valid. Partial Result: Total:11 Reg:10 Wi 
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: WARNING: Result from CMD not valid. (But Graphing Works)

Post by BSOD2600 »

Weird. It does appear its all working correctly. A rrdtool fetch http://docs.cacti.net/manual:088:4_help ... le_numbers shows data for all 4 inputs?

Mind upgrading to 0.8.8c, to check if its already been fixed?
djamp42
Posts: 5
Joined: Fri Apr 24, 2015 11:28 am

Re: WARNING: Result from CMD not valid. (But Graphing Works)

Post by djamp42 »

Okay i upgraded to 0.8.8c Still did not help, but I fixed it. The script i had was outputting extra white spaces between the fields. I adjusted the script to delete any extra white spaces. This caused the error to go away.

However when i tried to use spine with the extra white spaces it totally failed. Looks like they both are working fine now.

Thanks for the help!
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests