spine&cmd

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
chouyk
Posts: 2
Joined: Thu Jun 18, 2009 9:57 pm

spine&cmd

Post by chouyk »

These day I am exploring the spine.exe and cmd.php in cacti,but now I encounter a problem,this problem is why the spine can work faster than the cmd,and how the spine and cmd use the net-snmp?
If somebody can answer me,I am so obliged.
Pollux
Posts: 25
Joined: Tue Jun 16, 2009 3:34 pm

Post by Pollux »

Spine is written in C. lower level programming than php = much faster.

from what I've seen, they use net-snmp's programs: snmpwalk, snmpget, etc to poll data from any host:

try this on your command line: >snmpwalk -v 2 -c <communitystring> <host name or ip> syscontact

It will poll that host, with that version of snmp (2) and will ask for the contact parameter. This example is too simple, it actually polls tons of data regarding the interfaces, cpu, processes, memory, and formats it nicely in graphs so we can understand them better with rrdtool.


I'm not to familiar with cacti - net-snmp myself, but that's what I think I know
chouyk
Posts: 2
Joined: Thu Jun 18, 2009 9:57 pm

Thank you and another question.

Post by chouyk »

Pollux,thank you for your answer .Now I am polling with cmd.php,but I find that the cmd's speed is so slow,and the graph is not so nice as the spine's.I want to ask you if you know the spine.exe's source code,I want to analyse their code to find out the differences.
I am looking forward to your reply.
Thank you !
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests