Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Templates, scripts for templates, scripts and requests for templates.
Moderators: Developers , Moderators
GrandMasterLee
Posts: 17 Joined: Tue Jul 23, 2002 5:53 pm
Contact:
Post
by GrandMasterLee » Wed Jul 24, 2002 9:51 pm
Here is the open-files script I hacked out for cacti. It could be trimmed down a bit, but I just took load_avg.pl and now I've got max-files.pl
Code: Select all
#!/usr/bin/perl
#This is max-files.pl
#get load avg for 5;15;30 min
$avg = `cat /proc/sys/fs/file-nr`;
$avg =~ s/.*://;
chomp $avg;
$avg =~ s/\t/ /g;
print $avg;
TIA.
--The GrandMaster
dbenders
Posts: 28 Joined: Mon Oct 14, 2002 2:02 pm
Location: Santiago, CHILE
Post
by dbenders » Tue Nov 05, 2002 11:59 pm
Hi, can you please explain what is the output?
current open files?
ablyler
Posts: 40 Joined: Tue Mar 19, 2002 7:00 pm
Location: Ann Arbor, MI
Contact:
Post
by ablyler » Sat Nov 09, 2002 1:26 pm
It is the number of files that are currenly opened by the IO of the kernel. This comes in to play in very large enviroments, but is also very cool just to look at.
dbenders
Posts: 28 Joined: Mon Oct 14, 2002 2:02 pm
Location: Santiago, CHILE
Post
by dbenders » Sun Nov 10, 2002 8:43 pm
I have some linux boxes, is there a SNMP OID to get that info?
Users browsing this forum: No registered users and 6 guests