How to monitor fileshare on NAS server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: How to monitor fileshare on NAS server

Post by benjaminsmith »

Hello Amit,
\
However, steps that are share for updating the Nagios configuration is getting wipe out after every nagios service r
The directions on that page are for Nagios. Are you creating these commands using the CCM in Nagiso XI, that's the way you'll want to set this up. You cannot directly edit the configuration files in Nagiso XI (unless they are placed in the static directory).

When you invoke the disk option using the plugin, what results are you getting. Can you post the full output to the thread? I do not have a similar device to test the command against.

Code: Select all

 /usr/local/bin/nagios-unity -H <ip address> -u $_<user name> -p  <password> disk -v
I
Thanks,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Amit_Alone
Posts: 89
Joined: Fri May 08, 2020 11:47 am

Re: How to monitor fileshare on NAS server

Post by Amit_Alone »

I will try to implement shared command from Nagios CCM GUI as suggested.

However, as requested below is the o/p of the requested command. Didn't observed any o/p of that command with -v

Code: Select all

[root@avgdlnxvp126 bin]# nagios-unity -H 10.***.***.** -u nagiosmon -p ********** disk -v
Usage:
    nagios-unity -H <HOST> -u <USERNAME> -p <PASSWORD> [--cacert <CACERT>]  <OBJECT>
    nagios-unity -h | --help
    nagios-unity --version
[root@avgdlnxvp126 bin]# nagios-unity -H 10.***.***.** -u nagiosmon -p ********** disk
DISK OK: Total Disks #25, Failed Disks: [], Hot spares: 0, Unbounded: 0 |
[root@avgdlnxvp126 bin]#
[root@avgdlnxvp126 bin]# nagios-unity -H 10.***.***.** -u nagiosmon -p ********** disk --verbose
Usage:
    nagios-unity -H <HOST> -u <USERNAME> -p <PASSWORD> [--cacert <CACERT>]  <OBJECT>
    nagios-unity -h | --help
    nagios-unity --version
[root@avgdlnxvp126 bin]#
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: How to monitor fileshare on NAS server

Post by benjaminsmith »

Hi,
I will try to implement shared command from Nagios CCM GUI as suggested
Sounds good, let me know if that resolves the issue setting up the checks.

The command returned successfully, so that's likely why the -v option did not return additional debug info.
[root@avgdlnxvp126 bin]# nagios-unity -H 10.***.***.** -u nagiosmon -p ********** disk
DISK OK: Total Disks #25, Failed Disks: [], Hot spares: 0, Unbounded: 0 |
The plugin doesn't provide everything available from the API, but has the following commands.
battery
dae
disk
dpe
ethernet_port
fan
fc_port
io_module
lcc
lun
memory_module
pool
power_supply
sas_port
sp
ssc
ssd
system
array_hardwar
I would recommend testing these out directly on the CLI to see if they are going to meet your requirements. Unfortunately, the plugin documentation does not provide more details about each option.

--Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

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