I am totally new to this and snmp config seems hard - how to start up with these? I have cacti successfully installed but no graphs are drawn when I click on Graphs tab. I would like to see memory usage, processes, users and then networking stuff (like bytes in/out) in nice graphs.
what about kernel? Are some special options needed in order to get snmp to work? Like support for hardware sensor chips.
I got some reading to do. I got a book about SNMP. It is this O'Reilly's one.
One FreeBSD guy has done good job in writing a hands-on tutorial on how to use rrdtool and snmp. I followed it but on update part I am having a problem - rrdupdate sometiems seems to succeed and when I immediately insert the command again, I am gettng this error:
ERROR: not a simple integer: ' 784506436'
Has it something to do with datatypes? How could I change rr database datatype?
Also the generated png image doesn't have any line drawn on it
I tried now different approach - I set up mrtg for the eth0 that I set up using that guide. At least this is a start - it worked
cfgmaker --global 'WorkDir: /home/httpd/html/mrtg' --global 'Options[_]: bits,growright' --output /etc/mrtg.cfg firstname.lastname@example.org
then called mrtg /etc/mrtg.cfg via shell script multiple times.
I got it all solved now - cacti works. I recompiled php with snmp support, activated the snmp.so. Then activated graphs in cacti and set up cron job properly. Also started snmp daemon (with settings from that FreeBSD tutorial) - now graphs are updated like they should.
If it is of use to someone - I found some information on how to make lm_sensors and harddisks smart information visible via cacti: http://www.wlug.org.nz/Cacti
EDIT: that was not that useful - it was for an older version of cacti. It is easier to make script by oneself. BTW - there was a good walkthrough for cacti in its manual. The manual just started the way those dry how-tos usually start It is here.
EDIT: I spotted one probelm in cacti! rrd databases are not always generated by cacti in data source generation. It better to turn on the "data source debug mode" and get the needed shell ommand lines from "Data Source Debug".