Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
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 (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Node-RED
  4. Node-red and Check_mk

Node-red and Check_mk

Scheduled Pinned Locked Moved Node-RED
1 Posts 1 Posters 1.1k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Arun Dev
    wrote on last edited by
    #1

    Hi,

    i'm struggling with the communication between node-red and check_mk. The idea was to trigger an event (in check_mk) through a namped_pipe provided by checkmk. Therefore you can write a text message (e.g. '<78>Dec 18 10:40:00 myserver123 MyApplication: It happened again.') locally to the named pipe to trigger an event.

    Now everything should work in a node. The node should check the string for various test criteria and then write the string on the named pipe.

    To transfer the string to the named pipe i used these code-lines:

    var fs = require('fs');
    var writableStream = fs.createWriteStream('/opt/omd/sites/monitoring/tmp/run/mkeventd/events');
    writableStream.write(Msg);
    

    Now the Problem:

    If i declare the string within the js-file (which i need to create a node) and then transfer it to writableStream.write(); everything works fine and an event in checkmk gets triggered.

    But if im defining a string outside the node (like in an inject-node; msg.payload) and then using it in my node... the triggering fails.

    Here are some Variantes i tried without any success.

    //Var1
    var Msg2 = msg.payload;
    .
    .
    writableStream.write(Msg2);
    
    //Var2
    
    writableStream.write(msg.payload);
    
    //Var3
    
    var Msg2 = msg.payload;
    Msg2 = Msg2.toString();
    writableStream.write(Msg2);
    

    Any advices will be taken with much gratitude :)

    regards

    Arun

    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


    15

    Online

    12.0k

    Users

    11.2k

    Topics

    113.4k

    Posts


    Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • MySensors
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular