Jump to content

Nagios like plugin infrastructure


Recommended Posts

I monitor my infrastructure using Nagios running on multiple Linux servers.  I'm switching over to using Pulseway.

There are a lot of things that Nagios does that Pulseway does not, so I'm looking to implement some of the important things using plugins.

For starters, I'm planning on checking HTTP (speed of response, size of response, does the response contain key information).  I want to expand to other network service checks (DNS, SMTP, IMAP) to ensure my infrastructure is always available.

I am going to have multiple host and service checks run through the PluginDataCheck method of the ClientPlugin.

I'm concerned that I might need to make these checks run concurrently so that I don't block the PluginDataCheck method and make it take a long time.  They are network service checks, so if there are problems some could take up to their timeout (like 30 seconds).  Is this a valid concern?  Is there a certain amount of time that PluginDataCheck needs to run in before it times out?

My next concern was organization and notifications. If multiple checks fail, I'd like to get multiple notifications.  This is currently limited to 1 per plugin.

I was thinking that I could use the Cloud API to create a service for every check that I run.  That way each one could send it's own notifications and I could also organize the checks into groups instead of having them related to the system that's doing the monitoring.  Would that be an abuse of the Cloud API?

 

Link to post
Share on other sites
  • Administrators

Hi Brian,

Welcome to the Pulseway community and Merry Christmas :lol:.

The 'PluginDataCheck' method will be invoked from a background thread so it will not influence other Pulseway internal monitors and it will never timeout. Plugins are not limited to 1 active notification per instance, there is an overload to the SendNotificationToAllDevices method which accepts a boolean flag that controls whether the notification can recur or not.

In regards to the Cloud/REST APIs, you wouldn't be 'abusing' the system. You are free to use all exposed methods in our APIs to your own liking, we enforce our rate limits on the server side but they are really high and configured to only trigger when something is definitely wrong in an implementation (I.e. infinite loop of repeating notifications).

-Paul

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By OnsiteITservices
      Using USB external hard drive as backup devices and each drive can be recognized if manually added to the notifications/storage screen but I need to know if there is a way to set this to be automatic when the drive is replaced either daily or weekly.  Also, where would this be set globally for are servers being monitored. Currently have 8.6.8.
       
      Thank you,
      Todd Kollars
      Onsite IT Services
    • By Canadian Dental Services
      Hi all,
      I recently did a clean upgrade to Windows 10 on 2 WKSTs previously running Windows 7 with Pulseway installed.  I am now at a loss as to how to re-add these units to my Pulseway instance.
      I see they are still showing up in the “Deployment Successful” tab under “Discovery & Deployment”.
      Is there a way to re-add these units without manually installing the Pulseway app on these WKSTs?
    • By RingTailedLemur7
      Hello, I have a question about the Pulseway app. When the pc is on all of the commands work great and are perfect for managing the pc. But I am attempting to turn on my pc when I am away from my home and then be able to fully control it like I was there. The issue is how the wake up command from sleep or from powered down will not work even when on my home network. How can I fix this. Also a side question, is there a way I would be able to see a live view of the screen or does it only allow screenshots of the screen. Thanks
    • By DQuiram
      We reinstalled Pulseway on a re-imaged system and after the install we noticed issues. In the patch mgmt section, the status was "assign failed" in red. We rebooted the system and then the service was not starting. We checked the service, it was set to start automatically and in the event log it was generating this error: "Service cannot be started.  The handle is invalid"  We removed the system from Pulseway, uninstalled, and reinstalled. Service is starting normally, but still getting the same issue of the patch policy failing to assign. I tried moving the system to another group that did not have a patch policy at all and got the same result. 
    • By Brant
      I've implemented a script that retrieves and stores the Windows Build Version number to a custom field in the system overview.   It works fine on MOST systems.  However, there are a small number systems that are unable to run the script.  The error message displayed includes: Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
      I used the "Insert Output Variable Code" in the script and verified that it includes the inserted text "Start-Process -FilePath "$env:PWY_HOME\CLI.exe" -ArgumentList ("setVariable  .....".
      For some reason, a few systems do not seem to have the environment variable PWY_HOME set.
      It appears that these systems are using the Enable PowerShell User Impersonation option under Pulseway Manger > Settings > Runtime.
      What is the easiest way to make sure that all of my systems have the PWY_HOME variable set so that any future scripts will not fail because of a missing environment variable?
      Thanks,
      Brant
×
×
  • Create New...