Page 1 of 1
Nagios XI File Monitoring Plugin
Posted: Mon Jan 28, 2019 2:42 pm
by madhu2852
Hi Team,
I've got some files and folders located on a Network Share(for ex: DFS,NFS) and we wanted to check the age of the file inside a folder located on the share and alert us.
I've searched nagios forums for the plugins but i couldn't find any which will meet my requirement.
Please point me out to plugins that are available for this requirement.
Reagrds,
Madhu.
Re: Nagios XI File Monitoring Plugin
Posted: Tue Jan 29, 2019 2:21 pm
by lmiltchev
There are some 3rd party plugins for monitoring file age, and nfs mounts on the Nagios Exchange:
https://exchange.nagios.org/index.php?o ... rd=fileage
https://exchange.nagios.org/directory/P ... System/NFS
They may or may not work for you. You will have to test the plugins from the command line to make sure they work as per your requirements. Once you verify that, you could create a new command and service in Nagios XI by following the steps, outlined in the document below:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: Nagios XI File Monitoring Plugin
Posted: Sun Feb 03, 2019 7:54 pm
by madhu2852
Does nagios have any supported plugins for this ?
Re: Nagios XI File Monitoring Plugin
Posted: Mon Feb 04, 2019 10:38 am
by lmiltchev
You could use
NCPA, which is our official cross-platform agent.
Keep in mind that regardless of what agent/plugin you are going to be using, the shared drives need to be mounted on a "system" level in order for the agent/plugin to be able to monitor them. If they are mounted only when a user logs in, then this is not going to work.
Re: Nagios XI File Monitoring Plugin
Posted: Mon Feb 04, 2019 11:02 am
by madhu2852
Thanks for your response. But I do not see any documentation to monitor file age and size using NCPA . Could you please post couple of examples which monitors file age and size using NCAP ?
Re: Nagios XI File Monitoring Plugin
Posted: Mon Feb 04, 2019 1:18 pm
by lmiltchev
My bad - I was wrong about this. You can monitor NFS with NCPA but you can only see the disk space... If you wanted to monitor the file age and size, you would still need to use a 3rd party plugin. Sorry about that! If you had a powershell script that you could use to get the info, you could call it via NCPA though.
Re: Nagios XI File Monitoring Plugin
Posted: Mon Feb 04, 2019 5:34 pm
by madhu2852
Why don't you accept this as a feature and develop some plugins for this . This might help me as well others who are using nagiosxi.
Its just a thought though

.
Thanks for all your help!
Re: Nagios XI File Monitoring Plugin
Posted: Mon Feb 04, 2019 6:01 pm
by lmiltchev
Feel free to file a feature request (enhancement) here:
https://github.com/NagiosEnterprises/ncpa/issues
If you wish, I can file one on your behalf. Thank you!
Re: Nagios XI File Monitoring Plugin
Posted: Mon Feb 04, 2019 9:25 pm
by madhu2852
Please file it on my behalf . Thank you for your support.
Re: Nagios XI File Monitoring Plugin
Posted: Tue Feb 05, 2019 10:53 am
by lmiltchev