Spine command line arguments

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

Moderators: Developers, Moderators

Post Reply
User avatar
jt555
Cacti User
Posts: 56
Joined: Sat Nov 17, 2007 3:37 pm
Location: Atlanta, Ga

Spine command line arguments

Post by jt555 »

Upgraded from 0.8.7e to 1.1.37. Worked fine after a few tweaks.
except cmd.php collects fine but spine does not.

Running poller.php from cmd line shows that the spine command line is using snmptrap for its config file:

Code: Select all

[CMD: /usr/local/spine/bin/spine, ARGS:  -C /bin/snmptrap --poller=1 --first=0 --last=1 --mibs]
Of course this does not work and results in this error:

Code: Select all

 SPINE: Poller[1] FATAL: Connection Failed, Error:'1045', Message:'Access denied for user 'cactiuser'@'localhost' (using password: YES)' (Spine init)
If I run it manually with he correct path to spine.conf after the -C arg it works fine.

My question is: Where is this set? How do I change how cacti builds the spine command line?
User avatar
jt555
Cacti User
Posts: 56
Joined: Sat Nov 17, 2007 3:37 pm
Location: Atlanta, Ga

Re: Spine command line arguments

Post by jt555 »

figured it out 1 minute after posting:

updated the setting in the db:

Code: Select all

update settings set value = '/usr/local/spine/etc/spine.conf' where name = 'path_spine_config';
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Spine command line arguments

Post by netniV »

You could just have used the settings page to do this too within cacti ;-)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
jt555
Cacti User
Posts: 56
Joined: Sat Nov 17, 2007 3:37 pm
Location: Atlanta, Ga

Re: Spine command line arguments

Post by jt555 »

JFC, i didn't see that. wanted it to be more complicated i guess.
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Spine command line arguments

Post by netniV »

Funny what your eyes can miss. At least it's resolved and both ways are known now :)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
jt555
Cacti User
Posts: 56
Joined: Sat Nov 17, 2007 3:37 pm
Location: Atlanta, Ga

Re: Spine command line arguments

Post by jt555 »

I'd bet money that the setting was not there until i fixed it....
netniV
Cacti Guru User
Posts: 3440
Joined: Sun Aug 27, 2017 12:05 am

Re: Spine command line arguments

Post by netniV »

I'm pretty sure it is. The reason I know is that I spent a lot of time looking at how that code works when I re-wrote the installer for 1.2. But just to appease your conscience, this is what it looks like on a 1.1.37 system where I have never used spine, it's always right below the spine path:

Image
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
kimreddy
Posts: 1
Joined: Wed Sep 01, 2021 6:14 am

Re: Spine command line arguments

Post by kimreddy »

need help ,

I am not able to update the poller to spine on Gui from cmd.php. I installed spine related configs post installation on cacti.
I did all the installation of spine correct without seeing a error on command line.
I have added right path to Alternate poller path but action failed.

"
Sorry, we could not process your last action.
Some settings not saved. Check messages below. Check red fields for errors.
The file highlighted does not exist. Please enter a valid file name.
"
and I dont get to change the Poller Type : spine . As the drop down doesn't show that spine option exist.

On Cli this is the error i get

]# /opt/spine/bin/spine -R -S -V 3
SPINE: Using spine config file [/etc/spine.conf]
FATAL: Connection Failed, Error:'1045', Message:'Access denied for user 'admin'@'localhost' (using password: YES)'

Need help
Attachments
pict.PNG
pict.PNG (43.02 KiB) Viewed 2065 times
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests