Page 1 of 1
Check for file in directory and process in memory
Posted: Tue Feb 05, 2013 12:00 pm
by priht
Hello,
I would like to do the following using Nagios:
- check whether a file exists in a particular directory, on a remote server
- check whether a particular process (eg, rsync) is running in memory on that server
How would you do that in Nagios?
Many thanks.
priht
Re: Check for file in directory and process in memory
Posted: Tue Feb 05, 2013 1:54 pm
by slansing
For simple process checking I would recommend check_procs which comes standard with any nagios installation, here is the manpage for it's requirements:
http://nagiosplugins.org/man/check_procs
For file checking I would recommend this very simple plugin found on our exchange site:
http://exchange.nagios.org/directory/Pl ... nt/details
Have you set up service's and command definitions before and understand how to do so?
Re: Check for file in directory and process in memory
Posted: Wed Feb 06, 2013 5:10 am
by priht
Hi,
thanks for you reply.
Have you set up service's and command definitions before and understand how to do so?
No I haven't. A colleague of mine has shown me the object directory, but that's about it.
Re: Check for file in directory and process in memory
Posted: Wed Feb 06, 2013 10:44 am
by abrist
You may want to look over the
core documentationto get a better understanding of the nagios ecosystem.