Automatic Groups of Servers
-
Hello,
How would I automatically create groups/views of servers/nodes? For example: a view where I can see all the servers that are in maintenance mode.
I'm guessing it may have something to do with the auto apply rules, but I'm not 100% sure.
Thank you.
-
-
Any ideas how I would do that for servers in maintenance mode, and servers with a "problem" of some sort?
-
For systems with a certain status the following should work:
if ( $node->status == 4 ) return true; return false;See https://wiki.netxms.org/wiki/NXSL:NetObj for possible status values (the above is for "Critical").
I couldn't actually see any way to get the actual Maintenance status, yet for all I recall NXSL does allow you to set/unset maintenance status on a node, so I would expect there to be a way to query the current status. However, the above $node->status does not give you that, e.g. it returned "Normal" on a node that was in Normal state when I put it into maintenance mode.Also keep in mind that this won't exactly give you a live view either. These rules are only applied when a configuration poll runs against a system, so there could be quite a delay.
For that, maybe a Dashboard with a Status Map would be more suitable. You can select which severity you want to see. Grouping is available per container, but if you have lots of Critical systems. I am not sure about the refresh here - I can't configure it. But it seems to "flicker" all the time, so that seems more live?
That map doesn't have an option for "Maintenance" though. -
Maybe this could be added then? And thanks for the info on the node status. I would just put that as an auto apply rule to the container, right?
Also, just to make sure, nodes can be in multiple folders at once, right?
-
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