3 Replies Latest reply on Jun 29, 2017 11:40 AM by mesverrum

    Creating views using OrionSDK REST API's

    macharya

      Hi all

       

      This is the first time I am posting in this forum. Please accept apologies if I may have broken any community guidelines.

       

      I am a storage administrator and we use Nagios for many of our storage monitoring by creating custom checks. We are planing to move from Nagios to SRM. We are having challenges with efficiently moving all the checks from Nagios to SRM. with Linux/Unix script monitor/nagios script monitor, we were able to check the functionality of custom scripts. But, there are some limitations with these checks.

       

      we have around 200 file servers and there are about 10 custom checks per file server configured in current nagios infrastructure. In-order move them to SRM, we need to create views for each filer so that we can see the status of each custom check configured for the file server. Since there are 200 file servers, we need to manually create 200 views and when we add a new server, a new view to be created.

       

      We are looking for a way to automate this. Does OrionSDK has API's for creating views in SRM/SAM? If you have additional inputs/suggestion on this requirement, please do suggest.

       

      thanks

      Madhusudhana

        • Re: Creating views using OrionSDK REST API's
          mesverrum

          A couple points to correct, SRM is not the Solarwinds tool for monitoring linux script results, SAM is what you would use for that.  There is already a component available designed specifically for monitoring Nagios checks so that migration is typically pretty painless.

           

          Your understanding of how views work in Solarwinds is incorrect.  You do not have to manually build a view for each server, the tool will handle that for you for the most part.  You would create an application template with those 10 nagios component checks, then apply that template to each of the 200 servers (this operation can be performed in bulk and can be automated if you have the criteria figured out to get the servers into groups).  The Nagios checks will automatically use the default application template view, which is probably not terrible for what you are trying to display, but if you want to build a custom view for all servers that use the Nagios app template you can just hit customize and it will ask you if you want to customize the default app view or one specific to that template.  Then all 200 servers and any future servers with the same template assigned would automatically get this view associated to them.

            • Re: Creating views using OrionSDK REST API's
              macharya

              Probably i failed to failed to explain the requirement in better way.

               

              We are using SRM for monitoring NetApp file servers. We need to develop custom scripts to check few very specific components in the NetApp filer. This custom script check is configured in SAM. If there is automated way of build creation of templates and applying it on 200 NetApp filers, then its really good as this is what we are looking for. can you please provide some info on how and using what we can automate this?

                • Re: Creating views using OrionSDK REST API's
                  mesverrum

                  Create the template as per the normal process in SAM.  Make sure all the netapp servers are added to SAM.  Assign the template to all the netapp nodes.  If you arent familiar with those processes then you will probably want to check the getting started guides, New to Server & Application Monitor (SAM) ,  and videos for SAM, Server & Application Monitor (SAM) Training , as those are pretty much basic operations in the tool. 

                   

                  As far as automating it, you would just need to build a group in SAM and set up a dynamic rule that pulls in all your netapps, typically you could filter based on vendor or node names.  This will automatically add any server that matches your criteria to the group.  Then when you are in the SAM template management screen you assign your template to that Netapp group and that will automatically add the monitors to any server that gets added to the group in the future.