You are not logged in.

#1 2005-07-14 13:23:45

sven
Member
Registered: 2005-02-01
Posts: 311

[SOLVED] how to use cacti and snmp

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.

Offline

#2 2005-07-14 14:05:10

sven
Member
Registered: 2005-02-01
Posts: 311

Re: [SOLVED] how to use cacti and snmp

what about kernel? Are some special options needed in order to get snmp to work?  Like support for hardware sensor chips.

Offline

#3 2005-07-14 18:46:10

sven
Member
Registered: 2005-02-01
Posts: 311

Re: [SOLVED] how to use cacti and snmp

I got some reading to do. I got a book about SNMP. It is this O'Reilly's one.

Offline

#4 2005-07-15 07:49:37

sven
Member
Registered: 2005-02-01
Posts: 311

Re: [SOLVED] how to use cacti and snmp

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

Offline

#5 2005-07-15 08:36:38

sven
Member
Registered: 2005-02-01
Posts: 311

Re: [SOLVED] how to use cacti and snmp

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 smile

cfgmaker --global 'WorkDir: /home/httpd/html/mrtg'  
          --global 'Options[_]: bits,growright' 
          --output /etc/mrtg.cfg    
           community-name@127.0.0.1

then called mrtg /etc/mrtg.cfg via shell script multiple times.

Offline

#6 2005-07-16 14:21:12

sven
Member
Registered: 2005-02-01
Posts: 311

Re: [SOLVED] how to use cacti and snmp

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.

Offline

#7 2005-07-16 14:25:16

sven
Member
Registered: 2005-02-01
Posts: 311

Re: [SOLVED] how to use cacti and snmp

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 smile 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".

Offline

Board footer

Powered by FluxBB