Spine on FreeBSD 8.2 [RESOLVED]

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
vlassic
Posts: 12
Joined: Thu Nov 10, 2011 2:38 pm

Spine on FreeBSD 8.2 [RESOLVED]

Post by vlassic »

I'm having trouble with spine on FreeBSD 8.2. It seems to not want to poll my PFSense box but it polls everything else just fine. Everything works fine if I use cmd.php.

Here's what I'm running:
Cacti 0.8.7h (From BSD Ports)
Spine 0.8.7g_3 (From BSD Ports, pulled in this version for some reason)
PIA 3.0
Settings 0.71
Monitor 1.3
THold 0.4.9

Is this a problem with the older version of Spine? I tried compiling Spine 0.8.7h and using but it wouldn't poll any of my hosts.

Thanks.
Last edited by vlassic on Sat Nov 26, 2011 8:26 pm, edited 1 time in total.
User avatar
vlassic
Posts: 12
Joined: Thu Nov 10, 2011 2:38 pm

Re: Spine on FreeBSD 8.2

Post by vlassic »

..And now my cacti installation is locking up, and the only way to fix it is to restart apache. I think I'm going to start over and use cacti-0.8.7g because it seems to be working better with spine 0.8.7g on my virtual machine for testing.
User avatar
vlassic
Posts: 12
Joined: Thu Nov 10, 2011 2:38 pm

Re: Spine on FreeBSD 8.2

Post by vlassic »

Update:

I manually installed and configured Cacti 0.8.7h, PA 3.0, and compiled spine 0.8.7h. I figured out that spine.conf has to be in the same directory as the spine executable.

I still ran into the same problem when I added my PFSense box. It instantly said 'down' instead of 'unknown' in the devices right after I added it. the lock up mentioned above happens when I try to add the PFSense box to the tree. What am I missing here?

Thanks.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Spine on FreeBSD 8.2

Post by TheWitness »

Are you sure you have a complete install. We are doing locking around the tree, table locking, now and it would appear that something is now quite right during that device add. What process are you using to add the host to the tree?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
vlassic
Posts: 12
Joined: Thu Nov 10, 2011 2:38 pm

Re: Spine on FreeBSD 8.2

Post by vlassic »

TheWitness wrote:Are you sure you have a complete install. We are doing locking around the tree, table locking, now and it would appear that something is now quite right during that device add. What process are you using to add the host to the tree?

TheWitness
I'm not sure what you mean by a complete install. My last attempt was installed with the official tarballs from cacti.net.

When I add a device to the tree, I just select it in the device list and use the Add to Tree option in the drop down list. It freezes after it asks which tree/leaf I want to place the device on.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Spine on FreeBSD 8.2

Post by TheWitness »

Ok, in the Apache's php.ini file, increase the "memory_limit" to something like 512M, then restart Apache. See if that helps.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
vlassic
Posts: 12
Joined: Thu Nov 10, 2011 2:38 pm

Re: Spine on FreeBSD 8.2

Post by vlassic »

TheWitness wrote:Ok, in the Apache's php.ini file, increase the "memory_limit" to something like 512M, then restart Apache. See if that helps.
Thanks for the response.

I have changed memory_limit from 128M to 512M.

Cacti still freezes up and spine still isn't polling my PFSense box.

Any other suggestions?
User avatar
vlassic
Posts: 12
Joined: Thu Nov 10, 2011 2:38 pm

Re: Spine on FreeBSD 8.2

Post by vlassic »

Update:

I tried again without plugin architecture and it no longer locks up where I was saying it was.

The problem still exists where my PFSense box reads down when using spine.
User avatar
vlassic
Posts: 12
Joined: Thu Nov 10, 2011 2:38 pm

Re: Spine on FreeBSD 8.2

Post by vlassic »

Okay, I feel stupid. I was setting the host down detection to Ping and SNMP with ICMP Ping. I guess it's a known issue with ICMP ping and php not being able to do so when it isn't running as root. For some reason setting the host down detection to ICMP ping works with cmd.php and not with spine.

So now I'm going to rebuild with PA 3.0 and see if all my issues are gone.
User avatar
vlassic
Posts: 12
Joined: Thu Nov 10, 2011 2:38 pm

Re: Spine on FreeBSD 8.2

Post by vlassic »

...and chmod +s /usr/local/spine/bin/spine appears to have fixed the ICMP issue.

EDIT: Sorry for post whoring.

Setting the suid bit on the spine executable seems to have broken the perl scripts for the local machine:

Code: Select all

 ERROR: Empty result [127.0.0.1]: 'perl /usr/local/share/cacti/scripts/unix_processes.pl' 
So I guess I'll just use SNMP and TCP/UDP ping for host down detection. I don't like things running as root unless they absolutely have to anyways.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Spine on FreeBSD 8.2

Post by TheWitness »

change the data input method to use the full path to perl and try again.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Spine on FreeBSD 8.2

Post by TheWitness »

However, make sure you apply the updated lib/utility.php from SVN before doing that. Critical step.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
vlassic
Posts: 12
Joined: Thu Nov 10, 2011 2:38 pm

Re: Spine on FreeBSD 8.2

Post by vlassic »

I'll try it next time I have the chance. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests