Spine correct values but unknown shows up in Cacti logs.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
kaf3773
Posts: 22
Joined: Sun Sep 09, 2012 8:48 pm

Spine correct values but unknown shows up in Cacti logs.

Post by kaf3773 »

I am running Cacti 0.8.8c.

When I run Spine from the command prompt it shows it is getting correct values. see below

Code: Select all

[cacti@cactirtm01 cacti]$ ./spine -V 3 -R 4470 4470
SPINE: Using spine config file [spine.conf]
SPINE: Version 0.8.8c starting
10/19/2017 08:57:14 PM - SPINE: Poller[0] NOTE: Spine will support multithread device polling.
10/19/2017 08:57:14 PM - SPINE: Poller[0] NOTE: Spine is behaving in a 0.8.7g+ manner
10/19/2017 08:57:14 PM - SPINE: Poller[0] Host[0] TH[1] Total Time: 0.0017 Seconds
10/19/2017 08:57:14 PM - SPINE: Poller[0] Host[4470] TH[1] NOTE: There are '9' Polling Items for this Host
10/19/2017 08:57:16 PM - SPINE: Poller[0] Host[4470] TH[1] DS[9110] SCRIPT: perl /var/www/html/cacti/scripts/itp_lsn_util.pl 192.168.1.12 asd-itp5, output: lsnin:3 lsnout:1
But in Cacti logs the unknown(U) shows up as output and therefore data does not show up in graph

Code: Select all

10/19/2017 08:55:36 PM - SPINE: Poller[0] Host[4470] TH[1] DS[9110] SCRIPT: perl /var/www/html/cacti/scripts/itp_lsn_util.pl 192.168.1.12 asd-itp5, output: U
10/19/2017 08:55:36 PM - SPINE: Poller[0] Host[4470] ERROR: Empty result [192.168.1.12]: 'perl /var/www/html/cacti/scripts/itp_lsn_util.pl 192.168.1.12 asd-itp5'
Help will be very much appreciated.

Thanks
kaf3773
Posts: 22
Joined: Sun Sep 09, 2012 8:48 pm

Re: Spine correct values but unknown shows up in Cacti logs.

Post by kaf3773 »

I eventually got a solution for this by doing this

Code: Select all

*/5 * * * * . /home/cacti/.bash_profile; /usr/bin/php /var/www/html/cacti/poller.php > /var/www/html/cacti/log/cacti.log 2>&1
Instead of the below

Code: Select all

*/5 * * * *  /usr/bin/php /var/www/html/cacti/poller.php > /var/www/html/cacti/log/cacti.log 2>&1
Hopefully this helps somebody.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest