Plug in for folder check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tchandra
Posts: 38
Joined: Fri Oct 18, 2019 5:53 am

Plug in for folder check

Post by tchandra »

Team,

Require plug in to check folder in a path for windows server.
please suggest on this. Thanks in Advance
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Plug in for folder check

Post 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?
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
tchandra
Posts: 38
Joined: Fri Oct 18, 2019 5:53 am

Re: Plug in for folder check

Post 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
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Plug in for folder check

Post 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.
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked