Mount Point Monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
s.diwakar1
Posts: 44
Joined: Thu Feb 27, 2020 9:45 am

Mount Point Monitoring

Post by s.diwakar1 »

I am using the Nagios Core 4.4.3

We are monitoring the Mount Points using the Script: "./check_mount.sh"
https://exchange.nagios.org/directory/P ... is/details

One Mount Point is giving the Continuous Alerts: "WARNING - /backup is mounted several times! (2)"

There is no issue with the server.

Kindly suggest.
Thanks & Regards,
Diwakar Sharma
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Mount Point Monitoring

Post by Box293 »

Same response as your other post:

You are going to need to run the command that the plugin runs manually when the issues is occurring. The command in the plugin is:

Code: Select all

MOUNTED=`mount | grep "$MOUNT" | grep -c "$FS "`            # execute the command to check the mount...
So as the nagios user run:

Code: Select all

mount
The output generated from this should help determine exactly what the issue is. Please paste the entire output here.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
s.diwakar1
Posts: 44
Joined: Thu Feb 27, 2020 9:45 am

Re: Mount Point Monitoring

Post by s.diwakar1 »

Here is the output of command that you shared:

XXX:/export/common/util on /util type nfs4 (rw,bg,hard,nointr,rsize=131072,wsize=131072,proto=tcp,addr=xxx,clientaddr=xxx)
XXX:/backup on /backup type nfs (ro,addr=xxx)
XXX:/export/common/backup on /zfstst type nfs4 (rw,bg,hard,nointr,rsize=131072,wsize=131072,proto=tcp,addr=xxx,clientaddr=xxx)

The issue is still going on.

There is no issue at the server end. Mount Point "/backup" is mounted only one time. But it is generating continuous alert "Mounted several times(2)."
Thanks & Regards,
Diwakar Sharma
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Mount Point Monitoring

Post by Box293 »

So what is the output like 10 times in a row, or 20 times?. We need to nail down any sort of pattern.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
s.diwakar1
Posts: 44
Joined: Thu Feb 27, 2020 9:45 am

Re: Mount Point Monitoring

Post by s.diwakar1 »

can you please explain in detail the meaning of your last reply??

I can't understand "what is the output like 10 times in a row, or 20 times?"
Thanks & Regards,
Diwakar Sharma
s.diwakar1
Posts: 44
Joined: Thu Feb 27, 2020 9:45 am

Re: Mount Point Monitoring

Post by s.diwakar1 »

can anyone help me out to resolve this issue?
Thanks & Regards,
Diwakar Sharma
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Mount Point Monitoring

Post by scottwilkerson »

The problem is, this plugin is written in such a way, that it is just greps the output of mount for what you are passing, and if you pass /backup it is finding multiple matches
XXX:/backup on /backup type nfs (ro,addr=xxx)
XXX:/export/common/backup on /zfstst type nfs4 (rw,bg,hard,nointr,rsize=131072,wsize=131072,proto=tcp,addr=xxx,clientaddr=xxx)
You probably could modify the plugin somehow to get around this, or contact the author
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked