Nagios XI File Monitoring Plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Nagios XI File Monitoring Plugin

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI File Monitoring Plugin

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: Nagios XI File Monitoring Plugin

Post by madhu2852 »

Does nagios have any supported plugins for this ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI File Monitoring Plugin

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: Nagios XI File Monitoring Plugin

Post 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 ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI File Monitoring Plugin

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: Nagios XI File Monitoring Plugin

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI File Monitoring Plugin

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: Nagios XI File Monitoring Plugin

Post by madhu2852 »

Please file it on my behalf . Thank you for your support.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI File Monitoring Plugin

Post by lmiltchev »

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked