It's been a long time since I worked on Solaris but there might even be a way to do it with dtrace. There was a link for doing something similar using lsof but that required a bit more work.
=G=
From: Deiss, Mark <user-aa18037b3fdc@xymon.invalid>
Sent: Friday, August 7, 2015 12:03 PM
To: user-2027539dd102@xymon.invalid; Galen Johnson
Cc: xymon
Subject: RE: [Xymon] File Handles
Have an external that uses "sar" to figure out the number of open file handles. It has stanzas for Linux and HPUX; if your Solaris box has sar then should be able to add a Solaris stanza.
Basically uses "sar -v 5 2" and processes the last line; 3rd field for linux, 8th field for hpux.
If you want the external, can send it to you off list. It may be malingering as a Big-Brother module on the Dell/Quest/Big-Brother/defunct-deadcat repository. You may also find other modules there that can be modified for your requirements.
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Nick Pettefar
Sent: Friday, August 07, 2015 11:28 AM
To: Galen Johnson
Cc: xymon; Nick Pettefar
Subject: Re: [Xymon] File Handles
Sorry, it will be most likely used under Solaris 10/11.
Regards,
Nick
On 7 August 2015 at 16:04, Galen Johnson <user-87f955643e3d@xymon.invalid> wrote:
You'll likely need to write your own test based on this (assuming this is linux):
http://unix.stackexchange.com/questions/66235/how-to-display-open-file
-descriptors-but-not-using-lsof-command
=G=
From: Xymon <xymon-bounces at xymon.com> on behalf of Nick Pettefar
<user-2027539dd102@xymon.invalid>
Sent: Friday, August 7, 2015 10:48 AM
To: xymon
Subject: [Xymon] File Handles
Hi, is there a way to monitor file handle usage - how many open files
against the maximum allowed, by any chance? - just had a request from
a user for this and couldn't find a reference in the documentation or
the Google thing.
Regards,
Nick