ESXi

 View Only
  • 1.  vSphere Alarms for NFS Datastore

    Posted Sep 12, 2014 04:13 PM

    So I would like to create an Alarm that is an event (not state) that will trigger when a NFS datastore is disconnected.  I found the "Lost connection to NFS server" trigger, but it doesn't seem to work at all.  Also, I would like to only fire the action when the host is not in Maintenance Mode, because that would be very annoying to get a call-out because a host was rebooted for patches and generated "NFS Datastore Disconnected" type alarm.



  • 2.  RE: vSphere Alarms for NFS Datastore
    Best Answer

    Posted Sep 12, 2014 05:13 PM

    use the esx.problem.storage.apd.* triggers

    when NFS disconnects you will get APD messages in the vmkernel.log file on the host



  • 3.  RE: vSphere Alarms for NFS Datastore

    Posted Sep 12, 2014 05:17 PM

    That's sweet!  Wish there was a document somewhere that detailed all those little goodies...



  • 4.  RE: vSphere Alarms for NFS Datastore

    Posted Sep 12, 2014 05:26 PM

    Actually, I got my information via this blog post due to the NFS APD bug affecting vSphere 5.5:

    http://www.virtuallyghetto.com/2014/04/how-to-create-vcenter-alarm-to-alert-on-esxi-5-5u1-nfs-apd-issue.html

    It details instructions for creating an alarm.  Mine is a bit different because I added a check for ...apd.exit so the alarm would return to Green.



  • 5.  RE: vSphere Alarms for NFS Datastore

    Posted Sep 12, 2014 06:07 PM

    It looks like for reference, one has to dig through the /var/log/vobd.log for the specific VOB to watch for.  Such as:

    2014-09-12T18:03:52.482Z: [APDCorrelator] 80896847968us: [vob.storage.apd.start] Device or filesystem with identifier [1b09c9f2-98386c11] has entered the All Paths Down state.

    2014-09-12T18:03:52.482Z: [APDCorrelator] 80896848649us: [esx.problem.storage.apd.start] Device or filesystem with identifier [1b09c9f2-98386c11] has entered the All Paths Down state.

    2014-09-12T18:04:04.506Z: [APDCorrelator] 80908872064us: [vob.storage.apd.start] Device or filesystem with identifier [b1d404c3-e892086b] has entered the All Paths Down state.

    2014-09-12T18:04:04.506Z: [APDCorrelator] 80908872761us: [esx.problem.storage.apd.start] Device or filesystem with identifier [b1d404c3-e892086b] has entered the All Paths Down state.

    Inside the brackets is the VOB entry to trigger on, which means jsut about anything could be made into an alarm, which is awesome!