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

Directory Tree

check_nutanix.pl/check_ssh_nutanix_cluster.pl

Rating
3 votes
Favoured:
0
Current Version
1.1
Last Release Date
2021-06-21
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Hits
12427
Files:
FileDescription
check_nutanix.plcheck_nutanix.pl
check_ssh_nutanix_cluster.plcheck_ssh_nutanix_cluster.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.libnet-openssh-perl

Change in 1.1 :
check_nutanix.pl :
- New features to adapt to new Nutanix MIB
- Bug fix for syntax error at ./check_nutanix.pl line 98, near "clusterIOBandwidth"

check_ssh_nutanix_cluster.pl :
- Cleanup of host key to avoid annoying error of
- Cleanup of .libnet-openssh-perl socket file to avoid filling of inodes.
Remark : don't forget to monitor the use of inodes on Linux servers !!!
Reviews (3)
Just add a "," at the end of the line, then the plugin works as a charm!
byant01n3, March 22, 2020
1 of 1 people found this review helpful
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
0 of 1 people found this review helpful
getting this error:
syntax error at ./check_nutanix.pl line 98, near "clusterIOBandwidth"