Distributed collection of data

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
eljuanchete
Posts: 4
Joined: Mon Jan 12, 2004 5:50 am

Distributed collection of data

Post by eljuanchete »

Hello, I am just a newbie to cacti and I really like it. However, my goal is to have a distributed system where my servers (both Linux and Windows machines) send to Cacti the data, and later create the graphs. I have been searching for it, but couldn´t find a packed solution. I have found a way to do it but it takes me to a dead link http://www.raxnet.net/board/viewtopic.php?t=499 Does anybody have a copy of this script that you can send me? Or, can you tell me how to do it? I'd prefer not to dig into programming a whole new server cause I am not a great programmer.
eljuanchete
Posts: 4
Joined: Mon Jan 12, 2004 5:50 am

Post by eljuanchete »

Sorry, forgot to mention, that I am running RedHat 9.0 and the latest cacti, and that I don´t want to use SNMP to collect statistics. I am just planning to use scripts on the servers that will send the data to the Cacti server.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

No such distributed solution currently exists that I know of. I have been throwing some ideas around with another user of Cacti about how this could be implimented very easily using MySQL. We were basically talking about each remote poller doing it's own thing and reporting back to the main Cacti box using MySQL. It would require modifications to the pollers on both ends, but shouldn't be too difficult.

So in short, this is definitely planned, but there is no current distributed solution for Cacti that I know of.

-Ian
deijlite
Posts: 1
Joined: Wed Jan 21, 2004 2:40 am

Do it via SSH???

Post by deijlite »

Hello,

I am a new user to cacti, but an experienced admin. From what I can see, this is being planned but does not yet exist. I am looking to get aroud the problem by creating the scripts that I require (Apache stats, MySQL stats, Traffic stats, disk, load, etc...) on each box that I want to monitor. Some of the scripts will have to be executed with 'sudo'. I am then going to create a "cacti" user on each of the remote boxes. I will then create a public SSH key for the cacti user on the monitoring box and copy it to all the remote hosts' cacti user. This will allow the monitoring cacti user to execute scripts remotely on the remote hosts as the cacti user via SSH. This is all theory of course. Perhaps a more experienced user can tell me if I am wasting my time or if it is plausible.

Cheers.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

This would definitely work, however each check would require the overhead of an SSH login. Another approach is that net-snmp provides a cool feature that allows you to execute commands remotely and monitor the result using SNMP. To do this you just need to add a line to your snmpd.conf. For instance, I am monitoring NAT connections on my firewall using the following line:

Code: Select all

exec connection_table_size /usr/bin/connectionTableSize
Now you can graph the result of this command using the following OID:

Code: Select all

.1.3.6.1.4.1.2021.8.1.101.1
Just increment the last octet for each additional "exec" line in your snmpd.conf.

-Ian
moonman
Cacti User
Posts: 101
Joined: Sat Sep 06, 2003 10:25 am

what about

Post by moonman »

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests