Home Directory Plugins Software check_nutanix.pl/check_ssh_nutanix_cluster.pl

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

check_nutanix.pl/check_ssh_nutanix_cluster.pl

Rating
2 votes
Favoured:
0
Current Version
1.0
Last Release Date
2017-05-06
Compatible With
  • Nagios 3.x
Hits
6272
Files:
FileDescription
check_nutanix.plcheck_nutanix.pl
check_ssh_nutanix_cluster.plcheck_ssh_nutanix_cluster.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check Nutanix Cluster Software by SNMP and SSH
1- check_nutanix.pl can monitors many aspects of Nutanix Cluster (Controllers, Hypervisors, Cluster, Disks, VMs, ...)
Requires le Nutanix MIB locally installed
For syntax, check_nutanix.pl --help

2- check_ssh_nutanix_cluster.pl can monitors
a- services on CVMs using 'cluster status' command
b- last alerts using 'ncli alerts ls' command
It requires Net::OpenSSH and Date::Parse perl modules.
For syntax, check_ssh_nutanix_cluster.pl --help
Reviews (2)
byant01n3, March 22, 2020
Dears,

That is almost half year, when this plugin is in production monitoring.
Yesterday, monitoring server was found died... halted because ... inodes finished.

# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
13912080 13912080 0 100% /
tmpfs 1005525 1 1005524 1% /dev/shm
/dev/sda1 128016 62 127954 1% /boot

yep, that is 13,912,080 millions of inodes used

The problem found:
plugin invokes libnet-openssh-perl library which created files in uesr's (nagos) home directory, which created file for each performed check:

# ls -la /home/nagios/
drwx------ 2 nagios nagios 853970944 Mar 22 12:26 .libnet-openssh-perl

it took some time to count:

.libnet-openssh-perl]# time find . | wc -l
13741298

real 1m55.035s
user 0m8.142s
sys 0m14.129s
.libnet-openssh-perl]# time /bin/ls -f | wc -l
13741299

real 0m36.880s
user 0m5.900s
sys 0m8.820s
[root@chq1nms1 .libnet-openssh-perl]#


Fixing:

# rm -rf .libnet-openssh-perl

# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup-lv_root
13912080 172097 13739983 2% /
tmpfs 1005525 1 1005524 1% /dev/shm
/dev/sda1 128016 62 127954 1% /boot

Keep in mind (after integrating).

Plugin itself is excellent!

BR to developer and to users,

/A


P.S. after 30 min after fix:

.libnet-openssh-perl]# time /bin/ls -f | wc -l
2008

real 1m34.013s
user 0m0.004s
sys 0m3.130s
byscheived@gtc.edu, November 21, 2019
getting this error:
syntax error at ./check_nutanix.pl line 98, near "clusterIOBandwidth"