check if spoole directoty is epmty
Giles Coochey
GilesC at CarmenMedia.com
Tue Nov 14 12:21:53 CET 2006
>
> Hello,
>
> i try to check printer and mail spooldirectories.
> My idea = if the directories are empty printig and mailing is working.
>
> The problem is how to check if a directory is empty.
>
> I found the plugin file_age but that seemsto need a named
> file or am I wrong with this?
>
>
> Thanks for hints.
>
Why not check the output of:
ls -1 | wc -l
Should return number of files in a folder.
Thanks
Giles
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list