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. nxalarm does not receive info about source node

nxalarm does not receive info about source node

Scheduled Pinned Locked Moved Support
7 Posts 3 Posters 39.8k 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
    MarkusW
    wrote on last edited by
    #1

    First of all, thank you for a great piece of software!

    I have a problem with the nxalarm tool. It does list the active alarms, but all macros for displaying information about the source node expand to the empty string. I have tried it with 1.0.12 as well as older versions, and the result is the same.

    Example:

    A simple test setup with an active alarm with the alarm string "Alarm is active".

    markus@ubuntu:~$ nxalarm localhost list -u admin -P xxxx -o "%a:%n %m"
    : Alarm is active
    
    1 active alarms
    markus@ubuntu:~$
    

    Is this a bug, or am I doing something wrong?

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      It's a bug. I'll made a patch and post it here.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • M
        M
        MarkusW
        wrote on last edited by
        #3

        Awesome, thanks!

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Hi!

          I've made a fix for nxalarm. Unfortunately it involves changing server code, so I create a new maintenance release 1.0.13 which includes this change as well as few other fixes.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • K
            K
            KjellO
            wrote on last edited by
            #5

            Yes, node info is now displayed! But "Helpdesk state as number" and "Helpdesk state as text" just shows as 0 and IGNORED (expected Acknowledged or Outstanding). Any quick fix available for this? Otherwise, we'll wait for the stable 1.1 branch and hope it works there  🙂

            Best regards,
            Kjell

            nxalarm -u <user> -P <pass> -o "%h %H" <server> list
            0 IGNORED
            0 IGNORED
            0 IGNORED
            0 IGNORED

            4 active alarms

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #6

              Hi!

              Helpdesk state is not an alarm state you see in console. It is special field not visible in console intended for help desk system integration. And alarm state you are interested in is missing from nxalarm 😞 I'll add it in next 1.1.x release, and I can create a patched version of nxalarm 1.0.13 if you need.

              Best regards,
              Victor

              1 Reply Last reply
              0
              • K
                K
                KjellO
                wrote on last edited by
                #7

                I see, then I misunderstood the purpose of Helpdesk state.

                It would be nice to have the Acked/Outstanding info, so thanks for adding it in the next release. It would be very helpful to have it in the 1.0.13 too, but it's really up to you if you create a patch for it or not.

                Many thanks,
                Kjell

                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