Page 1 of 1
Plug in for folder check
Posted: Mon Dec 21, 2020 10:52 pm
by tchandra
Team,
Require plug in to check folder in a path for windows server.
please suggest on this. Thanks in Advance
Re: Plug in for folder check
Posted: Tue Dec 22, 2020 1:00 pm
by dchurch
1. What is your server topology like?
2. Is this folder part of a Windows shared folder? Can you mount it somewhere? Is it mounted somewhere on the Nagios XI server?
3. Are you using
NCPA to run any checks on the Windows server already?
4. What are you checking about the folder?
5. What are the requirements for monitoring the server itself: If the server is down do you want a notification? Are there already notifications in place for this?
Re: Plug in for folder check
Posted: Tue Dec 29, 2020 9:46 pm
by tchandra
Hi Dchurch,
Thanks for your response.
1. What is your server topology like?
It is a application server, and which process the transaction logs
2. Is this folder part of a Windows shared folder? Can you mount it somewhere? Is it mounted somewhere on the Nagios XI server?
yes..the folder is part of windows server and folder mounted in same server to one of the disk and its not mounted in nagios server
3. Are you using NCPA to run any checks on the Windows server already?
we are using check_file plug in to check the files in folder at particular time. but this time we want to check the folder in shared path.
4. What are you checking about the folder?
we have a path in server, at some point of time files processed in a folder and archived in sometime.if files doesn't processed in that folder
nagios has to trigger alert like files not processed in folder
5. What are the requirements for monitoring the server itself: If the server is down do you want a notification? Are there already notifications in place for this?
we have already placed all services in monitoring for that server.
Thanks in advance for for your reply.
Regards,
Chandra
Re: Plug in for folder check
Posted: Wed Dec 30, 2020 2:02 pm
by dchurch
tchandra wrote:we have a path in server, at some point of time files processed in a folder and archived in sometime.if files doesn't processed in that folder
nagios has to trigger alert like files not processed in folder
Unfortunately NCPA doesn't have a way to do this out of the box. You might find a plugin on the
Exchange to check file count, sizes, etc. If you can, then you could add that to NCPA's plugins directory, and perform your check that way.
This can be done with NRPE, however. Here's an example folder file count check using
check_nrpe:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -c check_files -a path='D:\\import\\faxin' pattern=*.* 'warning=count>100' 'critical=count>150'
Here's how to get started with NRPE in Windows. Keep in mind that this is a third-party program and support will be limited on these forums.
See also this forum post for someone with a similar monitoring task.