Page 1 of 1
Which script can help me monitor the Map Network Drive ?
Posted: Wed Sep 09, 2015 4:37 am
by wangyu
Sometimes the Map Network Drive was cut off from the server ?
Which script can help me monitor the Map Network Drive ?
The version of nagios server is 3.5.0
Re: Which script can help me monitor the Map Network Drive ?
Posted: Wed Sep 09, 2015 2:05 pm
by tmcdonald
I'm not entirely sure what you are asking. Do you just want to see if a network-attached drive is available? If so you should be able to use check_disk or check_disk_smb depending on how it is set up.
http://nagios-plugins.org/doc/man/check_disk.html
http://nagios-plugins.org/doc/man/check_disk_smb.html
Re: Which script can help me monitor the Map Network Drive ?
Posted: Thu Sep 10, 2015 2:25 am
by wangyu
The picture 64 show the Map Network Drive.
The picture 65 show the config of Map Network Drive in services.cfg.
The picture 66 show the status of the Y Drive .
So what's the problem with my configuration in services.cfg ?
How can I solve this problem to monitor the Y Drive ?
Re: Which script can help me monitor the Map Network Drive ?
Posted: Thu Sep 10, 2015 2:52 pm
by tmcdonald
Are your C:\ and E:\ services set up the same, except using different letters?
Re: Which script can help me monitor the Map Network Drive ?
Posted: Thu Sep 10, 2015 3:08 pm
by tgriep
Everything I found says that you can not check mapped network drives using the NSClient software. It is a limitation of the NSClient software.
The suggestions that tmcdonald said in the earlier post would be a few ways to do this.
Re: Which script can help me monitor the Map Network Drive ?
Posted: Thu Sep 10, 2015 7:56 pm
by Box293
To provide some additional insight, this network drive will be shared from a specific server. You should monitor the free space of the drive from the server that hosts this share.
Re: Which script can help me monitor the Map Network Drive ?
Posted: Sun Sep 13, 2015 10:28 pm
by wangyu
The real I want to monitor is the network driver whether mount on other servers .
Could any method solve this problem ?
Re: Which script can help me monitor the Map Network Drive ?
Posted: Mon Sep 14, 2015 12:54 am
by Box293
wangyu wrote:network driver whether mount on other servers
Can you be a bit more specific? Elaborate more about it, give us a detailed example.
A network drive is only mapped when a user logs onto a server. Unless you have your server always logged on, the drive will not be mapped after a server reboot or when a user logs out.
NSClient++ runs as the local service, you could configure the service to run as a specific user, that may work.
Re: Which script can help me monitor the Map Network Drive ?
Posted: Tue Sep 15, 2015 1:53 am
by wangyu
Box293, you said right
##########################################################################################################
A network drive is only mapped when a user logs onto a server. Unless you have your server always logged on, the drive will not be mapped after a server reboot or when a user logs out.
NSClient++ runs as the local service, you could configure the service to run as a specific user, that may work.
##########################################################################################################
I agree with you.
The AP server I monitor is product environment.
The user I log on is devadmin .
You said configure the service to run as a specific user, that may work.
Then I choose the log on as "devadmin" ,please see the picture 16.
After I do this operation,the status of Y drive is continue Unknown,please see the picture 17.
Re: Which script can help me monitor the Map Network Drive ?
Posted: Tue Sep 15, 2015 2:00 am
by Box293
I've never tried what you said and I based on your tests I think you need to ask this question in the NSClient++ forums:
https://forums.nsclient.org/