Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Feb 23, 2019 12:18 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: cacti / unbound / Result from CMD not valid. Partial Result
PostPosted: Sun Dec 16, 2018 9:19 am 
Offline

Joined: Sun Dec 16, 2018 8:40 am
Posts: 1
The latest release of unbound (1.8.3) contain the instructions to use the unbound statistics in cacti.
I've successfully managed to get the data into seven files, updated every five minutes, using cron.

I've imported the unbound template, using the command:
sudo php /usr/share/cacti/cli/import_template.php --filename="/home/pi/unbound/unbound-1.8.3/contrib/unbound-cacti/Host template (all in one)/cacti_host_template_unbound_dns.xml" --with-template-rras
This appears to be successful, the template is available in the cacti interface
I've created a graph, using the command:
sudo php /usr/share/cacti/cli/add_graphs.php --host-id=1 --graph-type=cg --graph-template-id=35
This appears to be successful, the graph is visible on the graphs tab of the cacti web site.
However …
The available data never appears in the graph.
all logs except cacti.log are empty. The cacti log contains two entries, repeated every 5 minutes:
CMDPHP: Poller[0] Host[1] DS[29] WARNING: Result from CMD not valid. Partial Result: U
SYSTEM STATS: Time:0.4753 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5

Running the command sudo php /usr/share/cacti/site/cmd.php doesn't provide any aditional info, output:
CMDPHP: Poller[0] Host[1] DS[29] WARNING: Result from CMD not valid. Partial Result: U
CMDPHP: Poller[0] Time: 0.1108 s, Theads: N/A, Hosts: 1


Duckduckgo doesn't provide any help to solve this problem.
Anybody???
Thanks for your time and effort


Top
 Profile  
 
 Post subject: Re: cacti / unbound / Result from CMD not valid. Partial Res
PostPosted: Tue Dec 18, 2018 8:09 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2082
This is going to be file permissions. You've run the import as root which means any files created will be as root.

Running CMD.PHP directly is not advised because that is run by poller.php itself.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 1 guest


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