Check_esx_host_vmfs plugin issue while monitoring ESXi DS


 
Thread Tools Search this Thread
Operating Systems Linux Check_esx_host_vmfs plugin issue while monitoring ESXi DS
# 1  
Old 03-05-2013
Check_esx_host_vmfs plugin issue while monitoring ESXi DS

Hello,

I setup a check_esx_host_vmfs plugin for monitoring datastore status on ESXi server. But on configuring this plugin, this is working fine but it displays "WARNING" status on UI of Nagios every time.
Currently my datastore size is 926.50 GB and right now free space available is 570.60 GB but still it showing warning on UI.

In command.cfg i mentioned the below one for this plugin.

PHP Code:
define command{
        
command_name check_esx_host_vmfs
        command_line $USER1
$/check_esx3 -H $HOSTADDRESS$ -u $USER11$ -p $USER12$ -l vmfs -w $ARG2$ -c $ARG3$

In my services.cfg file i defined the below lines to check the status of datastore using the above mentioned command.

PHP Code:
# check for datasource usage
define service{
        use                            
generic-service
        action_url                     
/nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$' onMouseOver='showGraphPopup(this)' onMouseOut='hi                                       deGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$
        
host_name                      ESXiserver
        service_description            ESXi Datasource Usage
        is_volatile                    0
        check_period                   24x7
        max_check_attempts             3
        normal_check_interval          3
        retry_check_interval           1
        contact_groups                 vmwareadmins
        notification_interval          120
        notification_period            24x7
        notification_options           u
,c,r
        check_command                  check_esx_host_vmfs
!90!98
      

Warning message is 90% and Critical is 98%, but right now its 61% but shows a warning on Nagios UI.

Is i am define something wrong here to setup this plugin or this is a bug in this.
# 2  
Old 03-05-2013
Attached is the screenshot of Nagios UI having warning displaying.
Check_esx_host_vmfs plugin issue while monitoring ESXi DS-esxi_datastorepng
# 3  
Old 03-06-2013
Hello,

After googling for this issue and found that the check_esx3 script is throwing WARNING and CRITICAL status if we use %age for datastore [w 90% and c 95%].
This works fine if we set triggers in MBs [Total size/trigger%][ -w 853862 -c 901299]

PHP Code:
/usr/lib64/nagios/plugins/c;901H 104.10.50.218 -u admin -p password1234 -l vmfs -o used -w 853862 -c 901299
CHECK_ESX3 OK 
Storages datastore1=364443 MB (38.41%) | datastore1=364443MB;853862;901299[/code
PHP Code:
# /usr/lib64/nagios/plugins/check_esx3 -H 104.10.50.218 -u admin -p password1234 -l vmfs -o used
CHECK_ESX3 OK Storages datastore1=364443 MB (38.41%) | datastore1=364443MB;; 

To set the trigger we have to define the -w and -c as per the disk capacity on each esx hosts.

Detail is given on this link
[URL="http://exchange.nagios.org/directory/Plugins/Operating-Systems/*-Virtual-Environments/VMWare/Vmware-ESX-%26-VM-host/details"]

Better to fix this script to use %age instead of MBs
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Solaris 11.4 on ESXi 6.5 suddenly boot-looping

Tl;dr Solaris 11.4 won't boot on 2 machines because of what I believe is network issues. Need to know where I can find more info to troubleshoot. I have two Solaris 11.4 systems running on VMware ESXi 6.5u2, which have suddenly (and seemingly for no reason) started boot-looping. Both of... (2 Replies)
Discussion started by: rking267
2 Replies

2. Web Development

Website RTO. What monitoring can I setup and how to track issue?

Hello, I have installed a WordPress theme on Cantos and brought up a website on AWS. I have added that website on Cloudflare. While I was working on webpage development, I noticed that sometimes website is unreachable. In 8 hours, I noticed it 2-3 times and after few seconds, it would come back... (1 Reply)
Discussion started by: solaris_1977
1 Replies

3. SCO

Install SCO 5.0.7 on ESXi 6.0

Hi All, Can any one Explain Me Step by Step installing SCO 5.0.7v in ESXi 6.0 ?? When i was trying to install its is not booting into operating systems !! showing an error no operating systems in media !! Thanks in Advance!! Please take some time in helping me !! Kanthi Kiran K (3 Replies)
Discussion started by: Kanthi Kiran
3 Replies

4. Red Hat

Esxi INTEL cpu vs esxi AMD cpu

Hi i have 2 esxi. one is amd based cpu and the other is intel based cpu. i have a redhat linux machine that was created in amd cpu esxi, now i need to migrate it (powered off) to INTEL based esxi. will the redhat machine will be OK with that? Thanks (2 Replies)
Discussion started by: guy3145
2 Replies

5. Shell Programming and Scripting

Install vib on 200 esxi hosts

how do I remote install a vib on 200 esxi hosts ? I need to ssh into the host run this command esxcli software vib install -v /tmp/vib --no-sig-check (1 Reply)
Discussion started by: tdubb123
1 Replies

6. Hardware

HP ML150G6 and hp esxi 5 (version 1.1)

hi I have found a note about compatibility of HP ML150g6 and hp esxi 5: "(1) Not supported by the HP ESXi Offline Bundle for VMware ESXi 5.0 version 1.0" But HP ESXi Offline Bundle for VMware ESXi 5.0 version 1.1 exists: HP ESXi Offline Bundle Is it (version 1.1) compatible with HP... (0 Replies)
Discussion started by: dailyadm
0 Replies

7. Solaris

Monitoring issue

can any one help me in this issue iscsiadm: ISCSI_AUTH_GET failed, errno: 5 Monitored File: /var/adm/messages (1 Reply)
Discussion started by: saripudi1985
1 Replies

8. Shell Programming and Scripting

Snmp Process Monitoring Issue

Can someone please explain to me how come snmpwalk doesn't always find a running process that's on a remote server? I prefer to use snmp to monitor processes remotely because this doesn't require me to put a script on that remote box. but the problem is, there are times that my snmp command... (2 Replies)
Discussion started by: SkySmart
2 Replies

9. Shell Programming and Scripting

Monitoring script issue

I written following script to monitor two log files. First piece of code working fine, but piece is failing with followin error. $ sh Log_Monitoring.sh Database failed to written 4 Database failed to written expr: syntax error ================= clear sh=`date | awk '{print $4}' | cut... (2 Replies)
Discussion started by: paventhan
2 Replies

10. UNIX for Dummies Questions & Answers

issue with installing ADT plugin to eclipse

Hi all, I have installed android SDK in my ubuntu machine and tried to install ADT plugin to eclipse by following the instructions given in the official website. Since I was unable to add the site: dl-ssl.google.com/android/eclipse to that install software dialog box in eclipse, I manually... (0 Replies)
Discussion started by: saranya43
0 Replies
Login or Register to Ask a Question