I've got a question about a nagios plugin to check the time of a file how long it has been in a folder.
Now the server where i need to test on, is a remote server.
So I've looked for a plugin and I've found one, but it won't work... can someone help me or give me a better plugin?
This is the code i use:
Code: Select all
$USER1$/check_fileages_remote -e ssh -H $ARG1$ -p $ARG2$ -m 1 -w 1 -c 2http://exchange.nagios.org/directory/Pl ... es/details
And this is what you get when you open the help:
so i need to connect to a remote host which is secured with a password and login.check_fileages_remote v$Revision: 0.1 $ (nagios-plugins 1.4.14)
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 2006 tamas hetenyi
Usage: check_fileages_remote -e -H -p -m [-w ] [-c ] [-t ] [-v verbose]
Checks the amount of files older than specified on remote system over SSH or RSH
-e (--shell) = ssh or rsh (required)
-H (--hostname) = remote server name (required)-p (--pattern) = Directory pattern for find command
-m (--minutes) = Fileage in minutes
-w (--warning) = Number of files older than -m minutes to generate warning alert
-c (--critical) = Number of files older than -m minutes to generate critical alert ( w < c )
-t (--timeout) = Plugin timeout in seconds (default = 15)
-h (--help)
-V (--version)
-v (--verbose) = debugging output
when i test it, i get an result, but it isn't right...
does anyone know what i'm doing wrong?
thanks
Brownie