Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon May 20, 2019 5:46 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: WARNING: Result from CMD not valid. Partial Result: U
PostPosted: Mon Feb 04, 2019 3:15 pm 
Offline

Joined: Mon Nov 16, 2015 3:48 pm
Posts: 6
I tried everything, I must be missing something.

I have just a simple script "cat filename" named tempmon_Adi.sh
script contents: /bin/cat /home/dan/temperatura_Adi

Running from the shell:
/bin/bash tempmon_Adi.sh
20.23

But when pooled from cacti, I always get WARNING: Result from CMD not valid. Partial Result: U
I tried running the cat command directly instead of the script, it's the same

Attachment:
File comment: data input
Capture.PNG
Capture.PNG [ 17.21 KiB | Viewed 137 times ]


What's wrong with my setup?

Thanks


Top
 Profile  
 
 Post subject: Re: WARNING: Result from CMD not valid. Partial Result: U
PostPosted: Tue Feb 05, 2019 1:20 pm 
Offline

Joined: Mon Nov 16, 2015 3:48 pm
Posts: 6
still no luck

05/02/2019 20:15:02 - POLLER: Poller[Main Poller] Device[4] Device[casa sanpetru] Graphs[Temperatura camere casa Sanpetru, Temperatura camere casa Sanpetru] DS[Temp.Adi] CMD: /bin/cat /home/dan/temperatura_Adi
05/02/2019 20:15:02 - POLLER: Poller[Main Poller] Device[4] Device[casa sanpetru] Graphs[Temperatura camere casa Sanpetru, Temperatura camere casa Sanpetru] DS[Temp.Adi] WARNING: Result from CMD not valid. Partial Result: U

I tested the command:
sudo -u www-data /bin/cat /home/dan/temperatura_Adi
20.22

so why won't it run under cacti?


Top
 Profile  
 
 Post subject: Re: WARNING: Result from CMD not valid. Partial Result: U
PostPosted: Tue Feb 05, 2019 1:40 pm 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 236
Location: Long Island, New York, USA
Perhaps your error is on the /bin/cat portion of the command line. What are the perms on that file?

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.e17
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.45-17.e17.remi
Maint @ 1.2
Monitor @ 2.3.4
Thold @ 1.0.4


Top
 Profile  
 
 Post subject: Re: WARNING: Result from CMD not valid. Partial Result: U
PostPosted: Tue Feb 05, 2019 2:16 pm 
Offline

Joined: Mon Nov 16, 2015 3:48 pm
Posts: 6
644, and it's readable, I tried sudo

But now it started to work. I think there was a problem caused by PHP 7.2
I applied a patch, and I see now it works. I can't put the finger on when I fixed it

05/02/2019 21:10:02 - POLLER: Poller[Main Poller] Device[4] Device[casa sanpetru] Graphs[Temperatura camere casa Sanpetru, Temperatura camere casa Sanpetru] DS[Temp.Adi] CMD: /bin/cat /home/dan/temperatura_Adi, output: 20.18

However I still have blank graphs, although the data is apparently being red


Top
 Profile  
 
 Post subject: Re: WARNING: Result from CMD not valid. Partial Result: U
PostPosted: Tue Feb 05, 2019 2:41 pm 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 236
Location: Long Island, New York, USA
Give it a few polls.

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.e17
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.45-17.e17.remi
Maint @ 1.2
Monitor @ 2.3.4
Thold @ 1.0.4


Top
 Profile  
 
 Post subject: Re: WARNING: Result from CMD not valid. Partial Result: U
PostPosted: Wed Feb 06, 2019 11:46 am 
Offline

Joined: Mon Nov 16, 2015 3:48 pm
Posts: 6
yeah, it started working

Somehow I think it's a timezone issue: rrd records seem to be +2h.
More exactly, lastupdate is +2h ahead


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users 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