Configure NTFS mount points disk space monitoring
-
keerthiprashanths
- Posts: 50
- Joined: Mon Jul 24, 2017 8:44 am
Configure NTFS mount points disk space monitoring
Hi Team,
We would like to Configure NTFS mount points disk space monitoring when mount point paths have special characters in them.
Please provide us a document or solution for the same.
We would like to Configure NTFS mount points disk space monitoring when mount point paths have special characters in them.
Please provide us a document or solution for the same.
Re: Configure NTFS mount points disk space monitoring
When an option for a plugin has a special character in it, usually encapsulating the option in either single quotes or double quotes usually fixes the issue.
Try placing the mount name between the quotes and see if that works for you.
If not, can you post what the name of the mount is?
Try placing the mount name between the quotes and see if that works for you.
If not, can you post what the name of the mount is?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
keerthiprashanths
- Posts: 50
- Joined: Mon Jul 24, 2017 8:44 am
Re: Configure NTFS mount points disk space monitoring
There are 2 scenarios:-
1) -a Drive= 'F:\3PAR_Citrix_SystemDB' MinCritFree=15% MinWarnFree=20% :- The output is correct after running this command.
2) -a Drive= 'C:\#_Exc_Data_#\DB01_Log' MinCritFree=15% MinWarnFree=20% :- There is blank output. We tried this with double quotes and single quotes and without quotes also but no luck.
Please suggest what needs to be done.
1) -a Drive= 'F:\3PAR_Citrix_SystemDB' MinCritFree=15% MinWarnFree=20% :- The output is correct after running this command.
2) -a Drive= 'C:\#_Exc_Data_#\DB01_Log' MinCritFree=15% MinWarnFree=20% :- There is blank output. We tried this with double quotes and single quotes and without quotes also but no luck.
Please suggest what needs to be done.
You do not have the required permissions to view the files attached to this post.
-
bolson
Re: Configure NTFS mount points disk space monitoring
Try running this from the command line of your nagios server escaping the special characters with the unix escape character "\"
-a Drive= 'C:\\#_Exc_Data_\#\DB01_Log' MinCritFree=15% MinWarnFree=20% And see if it returns correct data or a different error message.
-a Drive= 'C:\\#_Exc_Data_\#\DB01_Log' MinCritFree=15% MinWarnFree=20% And see if it returns correct data or a different error message.
-
keerthiprashanths
- Posts: 50
- Joined: Mon Jul 24, 2017 8:44 am
Re: Configure NTFS mount points disk space monitoring
We tried as per the command that you have provided but still the same issue.
Screenshot attached.
Please suggest us on the same.
Screenshot attached.
Please suggest us on the same.
You do not have the required permissions to view the files attached to this post.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Configure NTFS mount points disk space monitoring
That looks to me like you are running it from the run option in the XI UI, which is unreliable. Are you actually running that directly from the command line?
I assume you are using NSClient. Can you attach your nsclient.ini?
I assume you are using NSClient. Can you attach your nsclient.ini?
-
keerthiprashanths
- Posts: 50
- Joined: Mon Jul 24, 2017 8:44 am
Re: Configure NTFS mount points disk space monitoring
We have tried to implement the command from CLI but we are getting the same error.
Please find the response from CLI and attached the nsclient.ini file of target server .
Please find the response from CLI and attached the nsclient.ini file of target server .
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Configure NTFS mount points disk space monitoring
I'm not 100% sure, this will fix it but if we are escaping the # with a \ you should have 3 \\\ after C: because the standard in the check has 2 \\
I have a feeling that it may be because of the # special char and the best way around this would be to add the check directly to the nsclient.ini file as a custom check and yyou can put all of the directives right in the ini file and restart NSClient++, then just call the custom check name
I have a feeling that it may be because of the # special char and the best way around this would be to add the check directly to the nsclient.ini file as a custom check and yyou can put all of the directives right in the ini file and restart NSClient++, then just call the custom check name
-
keerthiprashanths
- Posts: 50
- Joined: Mon Jul 24, 2017 8:44 am
Re: Configure NTFS mount points disk space monitoring
Hello Team,
We have tried that but its still the same issue.
We have tried that but its still the same issue.
-
kyang
Re: Configure NTFS mount points disk space monitoring
Have you tried this?I have a feeling that it may be because of the # special char and the best way around this would be to add the check directly to the nsclient.ini file as a custom check and you can put all of the directives right in the ini file and restart NSClient++, then just call the custom check name