Open Files script won't work.

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

Moderators: Developers, Moderators

Post Reply
GrandMasterLee
Posts: 17
Joined: Tue Jul 23, 2002 5:53 pm
Contact:

Open Files script won't work.

Post by GrandMasterLee »

I've modified the loadavg.pl script to be a max-files script for linux. The script outputs numbers, but does not populate graphs, and does not show that it's outputting numbers in "data source configuration".

I'm using 0.6.8.

Code: Select all

perl /web/1.3/htdocs/cacti/scripts/max-files.pl
/usr/bin/rrdtool update /web/1.3/htdocs/cacti/rra/sys_open_files.rrd --template fdmax:fdfree:fdalloc N:U:U:U
I want it to show the output of /proc/sys/fs/file-nr which is 3 variables:

Code: Select all

allocated descriptors, free descriptors, maximum allocatable descriptors
400    200    8192
Here is the RRD source that gets built as well:

Code: Select all

/usr/bin/rrdtool create \
/web/1.3/htdocs/cacti/rra/sys_open_files.rrd \
--step 300 \
DS:fdmax:GAUGE:600:0:50000 \
DS:fdfree:GAUGE:600:0:50000 \
DS:fdalloc:GAUGE:600:0:50000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
Any help would be appreciated.
--The GrandMaster
GrandMasterLee
Posts: 17
Joined: Tue Jul 23, 2002 5:53 pm
Contact:

Woops..I think I fixed it.

Post by GrandMasterLee »

Sorry for the traffic. I noticed that there were no spaces in my defintion,
i.e. where loadavg.pl has output and types are specified as <1min> <5min> <10min>, I had <fdalloc><fdfree><fdmax>, but should've been <fdalloc> <fdfree> <fdmax>. I'll post my script in the scripts forum. Any suggestions are welcome though.

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

Post by raX »

No problem... glad you got your problem fixed though. I really can't wait to "re-think" multi-data source per script support. It seems too be easy to break in my mind. I haven't thought of a comparible solution (that is still as powerful) yet though.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests