jailed cacti

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
crim
Posts: 2
Joined: Sat Apr 08, 2006 7:40 am
Location: POLAND

jailed cacti

Post by crim »

Hello,
I'm using FreeBSD 6.0 with few jails. One of them contain production site.
It occurred that I need to provide some statistical data.
in the host environment I do not want to install any www server or php and mysql (tools necessary for cacti to work) so for security reasons I’ve installed cacti on one of my jails, but what I would like to do is to gather data from my host environment (load, processes, disk usage, ...).
I suppose that I should create and update rrd file in my host environment and place it at the accessible for jail, area of hard drive and then somehow configure cacti to use this, say "external" rrd. The thing is, I was unable to properly fill rrd using snmp...
Currently cacti works fine, but it gathers data only within one jail what is not very useful situation, because it does no bring any real information’s about situation of entire server
Can anybody tell me how am I supposed to configure it?



crim
FreeBSD - The power to serve.
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

If you are ok with installing net-snmp / ucd-snmp on the host system that you could set up cacti in a jail to query the "localhost" via snmp and then use the SNMP templates to set up your graphs. (I would recommend this method). If you are really concerned about security, use SNMP v3.

If that won't work than you need to set up some cron job script (pick your poision, perl, tck/tl, bash...) to run in the host environment that either directly creates the RRD files, or places the information in the cacti jail so you can create queries that read the information and graph it.
Dave
crim
Posts: 2
Joined: Sat Apr 08, 2006 7:40 am
Location: POLAND

Post by crim »

hi,
so, as i understand you suggest me to install snmp server in the host environment and to query from inside jail via built in cacti procedures?
is there any how which deals with similar problem?
FreeBSD - The power to serve.
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

Yeah. That's basically what I'm suggesting.

If you search the forums / documentation you should be able to find plenty of help installing / configuring snmp.
Cacti Manual

You can also search the Information / HowTo's section for availiable guides.
Dave
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests