This post is more than 5 years old
35 Posts
0
5122
April 4th, 2016 02:00
Is there a Report or Alert available that show failed Discovery Objects
Is there a Report or Alert available that show failed Discovery Objects. For Ex: Under Host Configuration Solution Pack if there are about 300 hosts discovered and 3 Hosts just failed discovery due to Authentication Issue. Will EMC SRM be able to track that so we know there is a data collection issue and work towards resolving the same. Thanks
No Events found!
Flo_csI
2 Intern
•
166 Posts
0
April 4th, 2016 02:00
I don't think there is.
Nevertheless there is contrib available here : https://github.com/bauagonzo/mnrdiscovery to test the devices accessibility from the CLI.
You can easily put it in a cronjob & wrap-up the CSV output to trigger an alert in SRM.
HTH.
Mahesh1111111
35 Posts
0
April 4th, 2016 06:00
Thanks Norton – Is there an opportunity to modify the report “Devices Not Collected for More than 2 Hours” to reflect last 1 day not discovered objects. Of course by creating a copy of this report and not modifying this report.
Because 2 hours seems to be on the lower side since there are Storage Arrays and other objects that may not complete the polling cycle every 2 hours or they may fail for one polling interval but could pickup eventually. Thanks
dnorton1
74 Posts
0
April 4th, 2016 06:00
Most asset-level reports (e.g. Explore -> Storage -> Storage Systems and Report Library -> Physical Host) show the Time Since Last Discovered. You can sort by that to see objects that haven't been discovered recently. There's also a report in Health -> Miscellaneous -> Devices Not Collected for More than 2 Hours.
We're also in the process of adding collection alerts to many of the SolutionPacks.
Mahesh1111111
35 Posts
0
April 4th, 2016 07:00
Hi - that was a good article, while i try to run the command I receive the error mentioned in the screenshot. Can you please help.
Flo_csI
2 Intern
•
166 Posts
0
April 4th, 2016 07:00
It works with ruby 2.0 & higher. I bet you are using 1.8 or 1.9.
If you don't want to bother with installing a newer version of ruby you can use http://jruby.org/ it also works well with the SRM JVM.
Let me know.
Mahesh1111111
35 Posts
0
April 4th, 2016 10:00
You were correct it was 1.8 version, i tried the jruby and now it gives me a different error:
iq_brent
48 Posts
0
April 4th, 2016 16:00
There is an alert in Alerting Called "Metric count alert" With Description of "If a collector stops producing metric, this can indicate a collection problem."
This is so misleading because only the SNMP-Collector and Health-Collector report the RawValueCount metric correctly. Also that metric is completely undocumented.
Is there a plan to have other collectors report the RawValueCount metric ? Is this a configuration I am missing?
If all collectors implemented the RawValueCount then this alarm would actually do what it says, and we would be able to investigate any sudden reductions in RawValueCount.
Flo_csI
2 Intern
•
166 Posts
0
April 5th, 2016 01:00
This is an error with the jruby.sh script.
Try to quote the path instead of EMC\ SRM.
If you want to use a single jar you can run : java -jar jruby.jar ~/dev/mnrdiscovery/mnrdiscovery.rb
PS: don't forget to install the dependency nokogiri with gem install nokogiri
HTH
Mahesh1111111
35 Posts
0
April 5th, 2016 04:00
Hi - I get a different error when try to use jruby.jar also was unable to find "nokogiri" under yum packages list:
Flo_csI
2 Intern
•
166 Posts
0
April 5th, 2016 05:00
Here is the steps you can use :
I think I will dockerize that ;-)
Mahesh1111111
35 Posts
0
April 12th, 2016 13:00
Finally I was able to get the Ruby V2.3 able to work on my Linux host, thank you so much.
DiegoFlores
6 Posts
0
March 14th, 2017 14:00
HI Mahesh1111.. , I tried your ruby script and I had some syntax errors . Have u a new version ?
Thanks in advance
Mahesh1111111
35 Posts
0
March 15th, 2017 05:00
Can you tell me what are the syntax errors you see?
DiegoFlores
6 Posts
0
March 16th, 2017 07:00
HI, Mahesh , I’m trying to run mnrdiscovery script and I have some error . After I read and I see that I need a new version of ruby. I have 1.8. I will install version 2.3 and try again
I will let you know
Thanks in advance
Diego
De : Mahesh1111111
Envoyé : 15 mars 2017 11:44
À : Flores, Diego Alfredo
Objet : Re: - Is there a Report or Alert available that show failed Discovery Objects
Courriel provenant de l’externe
ATTENTION, avant d’accéder à une pièce jointe ou à un lien de ce courriel, assurez-vous que celui-ci provient d’un tiers de confiance.
DECN
Is there a Report or Alert available that show failed Discovery Objects
reply from Mahesh1111111 in ViPR - View the full discussion
Mahesh1111111
35 Posts
0
December 20th, 2017 08:00
Hello and hope you'e doing well - your Ruby script was super helpful to identify the lit of failed discovery objects. I hoped EMC would provide a report directly in the console that reports the failed object. We recently upgraded to 4.1.1 but didn't see that feature.
Our Ruby script is failing since the upgrade - is there a newer version of the script available now or have you tested with this new version, below is the error I get:
/usr/local/bin/ruby /usr/local/scripts/mnrdiscovery.rb -h -u rubyuser -p
/usr/local/scripts/mnrdiscovery.rb:352:in `block in type_details': undefined method `[]' for nil:NilClass (NoMethodError)
from /usr/local/scripts/mnrdiscovery.rb:350:in `each'
from /usr/local/scripts/mnrdiscovery.rb:350:in `type_details'
from /usr/local/scripts/mnrdiscovery.rb:345:in `start'
from /usr/local/scripts/mnrdiscovery.rb:378:in `
'Your help is appreciated.