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.
spine&cmd
Moderators: Developers, Moderators
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
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
Thank you and another question.
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 !
I am looking forward to your reply.
Thank you !
Who is online
Users browsing this forum: No registered users and 3 guests