Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Replacing custom solution (elasticsearch and riemann) with NetXMS

Replacing custom solution (elasticsearch and riemann) with NetXMS

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 9.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    M
    mgiammarco
    wrote on last edited by
    #1

    Hello,
    I have (like many) a complex situation to monitor with information scattered in:

    • syslog
    • snmp
    • graphite/collectd sensors

    I was building a custom solution with elasticsearch, riemann, influxdb and so on
    But looking for a snmp input solution I have found NetXMS and now I am rebuilding my monitoring on it.
    But now I have several questions (yes I am reading and reading and reading docs):

    • I am trying syslog parsing and my (simple) regular expression does not work. How can I debug it? Is there a way to try it on already received syslog messages? I cannot reproduce easily the syslog message to test
    • when I receive a syslog line "backup finished" I must check if time is above 8.00 (slow backup), how can I do it?
    • suppose I need to test that backup are executed, so I need to check that a syslog "finished backup" is present at least once a day, can I do it with repeatCount?

    Thanks in advance for any help!
    Mario

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      Hi!

      1. as discussed in another thread, under linux logger utility could be helpful to generate syslog messages
      2. A matched syslog line generates an event, so we have to do the logic in Event Processing Policy (EPP). There you have filtering script - if it's not empty, event will be processed further only if that script returns true. You can just take current time in that script and check it:
      now = localtime();
      return (now->hour >= 8);
      
      1. I am not exactly sure how to use the repeatCount in syslog processing, but anyway reaction to syslog only happens when a new syslog message is received. Here we need something in another place that would be executed regularly, event if there will be no syslog messages from a given node. A possible approach could be:
      • when you receive backup successful message, store current unixtime in custom attribute of the node. You can do this in filter script in EPP:
      $node->setCustomAttribute("lastBackupTime", time());
      
      • create a DCI with origin "Internal" and parameter "Dummy".
      • in transformation script add the following:
      return time() - $node->getCustomAttribute("lastBackupTime");
      

      as the result this DCI will have time in seconds since last backup.

      • add threshold so that an event will be generated when time since last backup is too big.
      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups