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.
Mount Point Monitoring
-
s.diwakar1
- Posts: 44
- Joined: Thu Feb 27, 2020 9:45 am
Mount Point Monitoring
Thanks & Regards,
Diwakar Sharma
Diwakar Sharma
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Mount Point Monitoring
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:
So as the nagios user run:
The output generated from this should help determine exactly what the issue is. Please paste the entire output here.
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...Code: Select all
mountAs 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
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)."
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
Diwakar Sharma
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Mount Point Monitoring
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
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?"
I can't understand "what is the output like 10 times in a row, or 20 times?"
Thanks & Regards,
Diwakar Sharma
Diwakar Sharma
-
s.diwakar1
- Posts: 44
- Joined: Thu Feb 27, 2020 9:45 am
Re: Mount Point Monitoring
can anyone help me out to resolve this issue?
Thanks & Regards,
Diwakar Sharma
Diwakar Sharma
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Mount Point Monitoring
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
You probably could modify the plugin somehow to get around this, or contact the authorXXX:/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)