Page 3 of 3

Re: How to monitor fileshare on NAS server

Posted: Fri Apr 16, 2021 4:39 pm
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

Re: How to monitor fileshare on NAS server

Posted: Mon Apr 19, 2021 7:21 am
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]#

Re: How to monitor fileshare on NAS server

Posted: Mon Apr 19, 2021 1:16 pm
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