Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jun 19, 2019 2:54 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject:
PostPosted: Sun Dec 30, 2001 11:40 pm 
Offline

Joined: Sat Dec 29, 2001 7:00 pm
Posts: 9
Rax, great tool first off, found it via freshmeat.net.

My question, I have all the local data input going fine, so apache, mem, cpu, proc etc - i want to extend this to another host i have. I have no problems with SNMP of course, so routers, switches and interfaces are all fine.

How do you think its best to proceed, in adding addtional linux hosts and getting all the data.

Your thoughts would be appreciated.

Cheers
Craig


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 30, 2001 11:46 pm 
Offline
Lead Developer

Joined: Sat Oct 13, 2001 7:00 pm
Posts: 2237
Location: Carlisle, PA
First off thanks; glad you find cacti useful. So I take it you want to gather system stats from other remote hosts? I'll assume you know how to create the data sources, but getting the data is the challenge no doubt.

I have done this a little myself using the net-snmp package. I know by default it includes MIB's to monitor basic aspects of a host (cpu, load avg, disk, etc). I also know that the functionality can be extended to running any command you want, but you'd have to consult net-snmp's docs for that.

Let me know if you have any further questions.

-Ian


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 31, 2001 12:00 am 
Offline

Joined: Sat Dec 29, 2001 7:00 pm
Posts: 9
Thanks for replying, yep its the system stats from other hosts that I was interested in.

Using SNMP/OID against the target host would be a method of doing it. Gathering some system details

I was thinking of running the perl scripts on the target host, and writing the rra database files back to the host running the cacti installation.

hmm .. want all the data gathering ability on the additional hosts, just dont want to run a mysql, apache, php, rrdtool etc,

Cheers anyhow
Craig


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 31, 2001 10:30 am 
Offline
Lead Developer

Joined: Sat Oct 13, 2001 7:00 pm
Posts: 2237
Location: Carlisle, PA
Yes that is quite understandable, I wouldn't want to run a web server on my firewall either! I am thinking that net-snmp may be your answer here.

Check your snmpd.conf, mine is in:

/etc/snmp/snmpd.conf

There is a lot of comments about how you can run just about any program and give it an OID.

Try doing an snmpwalk of:

.enterprises.ucdavis

To see some default entries for net-snmp. Good luck!

-Ian


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 31, 2001 10:08 pm 
Offline

Joined: Sat Dec 29, 2001 7:00 pm
Posts: 9
Thanks,

Found a few things out:

ucd-snmp version 4.2.1 << doesnt work well, for example, you setup a data source, and select data input type as Get SNMP Network Data, and the parse of the snmpget doesnt work, as can be seen.

Your sample get of logged in user on a host:
snmpget -O neEXbqfsStv localhost public host.hrSystem.hrSystemNumUsers.0

The result:
host.hrSystem.hrSystemNumUsers.0 = Gauge32: 3

the v: Print values only (not OID = value). Isnt working,

I upgraded to ucd-snmp v4.2.3 and it fixed the problem, as can be seen:

snmpget -O neEXbqfsStv localhost public host.hrSystem.hrSystemNumUsers.0

Output: correct 3 logged in users
3

Hope that helps anyone, gonna post a list of as many of the relevant OIDs

Craig


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 03, 2002 1:26 pm 
Offline

Joined: Sat Dec 29, 2001 7:00 pm
Posts: 9
OID's for creating additional data sources of linux hosts,

Data Source > Data input type > Get SNMP Data,

Logged in users,
host.hrSystem.hrSystemNumUsers.0

System Processors,
host.hrSystem.hrSystemProcesses.0

System load averages 1,
enterprises.ucdavis.laTable.laEntry.laLoad.1

System load averages 5,
enterprises.ucdavis.laTable.laEntry.laLoad.2

System load averages 15,
enterprises.ucdavis.laTable.laEntry.laLoad.3

Hope this is helpful

Craig


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group