Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - gammy69er

#1
Just as a Bit of Info for nayone working with SNMP Monitoring - May count as Different Topic - But this was where I found the Idea for my fix.

Just had this issue - Had a Site move from Ubiquiti Airmax gear to Unifi - IP range remained, but Devices were changed.  Some of them picked up old IP's, but as they already had a device in XMS previously - that device was updated with the new info - so Templates etc remained.

The problem for me is that while my template was searching for the OID - I had been returning null on it - therefor it was just skipping the check... basically (from what I understand).  Changing to False has fixed that.

However the code later has another "if-else" with a false - so not quite sure whats going on here... It certainly picks up the Positive, but doesn't appear to drop the negative.  But haven't touched this in months - so not the biggest autority on all this.

Heres some code for a look over (Regarding Ubiquiti Airmax 2ghz devices - this is the edited version with the airMaxFrequency - now returning false...)  Hope this helps a fellow forum trawler.


oid_airMaxFrequency = ".1.3.6.1.4.1.41112.1.4.1.1.4.1";
oid_airMaxSSID = ".1.3.6.1.4.1.41112.1.4.5.1.2.1";

querySNMP = CreateSNMPTransport($node);
if (querySNMP == null)
return null;

airMaxFrequency = SNMPGetValue(querySNMP, oid_airMaxFrequency);
if (airMaxFrequency == null)
return false;

/* airMaxSSID = SNMPGetValue(querySNMP, oid_airMaxSSID); */
/* if (airMaxSSID ~= "HQBH") */
/* return false; */

if (airMaxFrequency == "2412" || airMaxFrequency == "2417" || airMaxFrequency == "2422" || airMaxFrequency == "2427" || airMaxFrequency == "2432" || airMaxFrequency == "2437" || airMaxFrequency == "2442" || airMaxFrequency == "2447" || airMaxFrequency == "2452" || airMaxFrequency == "2457" || airMaxFrequency == "2462" || airMaxFrequency == "2467" || airMaxFrequency == "2472") {
return true;
} else {
return false;
}
#2
General Support / Log Source Filter broken?
January 21, 2021, 10:59:28 PM
Have been trying to get back into building our monitoring NXMS... now have hit a bit of a road block.

Am getting info into logs - but appears I can only filter by Time and Date, and some others I am not yet interested in - while a filter that requres the selection of an object fails to place the object as a filter.

Am Primarily doing SNMP monitoring, and am at the stage where i am trying to sort out what gets logged and what doesn't, but not being able to see whats happening over time with a praticular device is a big issue.

Have tried Logging into console as system, and Running as admin, but have not been able to use Source or Zone Filters.  Just checked and Event object selection actually works.

Currently on Version 3.7.95 - if anyone has some info as to how to make these work - would be appreciated.
#3
General / Re: Automated alarm termination
January 21, 2021, 10:24:19 PM
Very Limited Knowledge here - but I was doing Similar adjustments Yesterday (although not time)

Configuarion - Event Processing Policy (in the Desktop Client) - Appears there is an Alarm timeout option under "Action - Alarm" - so if you find the right event being triggered, you should be able to set.  You may need to run these changes as system also - i really don't know yet (also, don't forget to save after the change)

Again, very fresh here - so backup and note changes - so you can revert if required...

Good Luck
#4
Feature Requests / Password Custom Attribute
August 12, 2020, 01:21:11 AM
Although i am trying to get away from this - with Radius - I have some nodes that I require to use tools that call a standardised user/password.

It have - for my initial Build - added these to custom attributes.

Although everone in my organisation knows these passwords - it would be nice if we also had an option to use obsucred "Password" style fields, just in case someone gains some kind of access they shouldn't

I know about the SSH Fields that have this - but have been informed that these fields are not call-able from external tools (no macro to call the password field)
In saying that - the bulk of this is that I prefer external Putty (and I know about the internal ssh tool) - but there will be a number of useful aspects to this for us moving forward with additional toos as they come to use.

Any questions/Comments - let us know.
#5
Feature Requests / Per Session Password access
August 12, 2020, 01:13:56 AM
Have had a look through the forums and surprisingly not found anything pertaining to this that i can see.

Am looking to use the password of the active user for tools.  Active user is radius auth.

I see there is currently no way to use a password unless manually entered (via input fields or in custom attributes). 
Custom attributes no good as changes on a pre user basis - and I see no per user attributes.  Also Plain text - not ideal
Input fields - Clunky - have to enter every time.

Is there any way that the Password entered at login could be saved to a callable field (like input feilds are) that can be called globally.
If not - can there be an option to activate an Input field for a global password at login (this would need to be resettable in the session also - as you may get it wrong, or would need to call radius again to auth - so as you know you have the right one)

Either way - I would presume that if required these fields could be encrypted until used - making them no less secure that input fields as it stands.

Any help appreciated - if more info required - let me know.

Cheers
#6
General Support / Re: Per User Tool Authentication
August 12, 2020, 01:01:35 AM
Hey Guys - Cheers for the Current Replies.

Quote from: Filipp Sudanov on August 10, 2020, 05:10:05 PM
Hi!

There is no such thing in netxms - we do no cache the password entered by user so we do not have it anywhere after user logs in. And it seems to be not good idea from security viewpoint to keep any passwords plaintext and enter them somewhere.

Filipp - TY for the Info.  The current issue faced is that with trying to automate the tools as it stands - the only way is Clear text Custom Attributes - which is obviously no good, or manual entry every time - which takes up 2-10 seconds every connect to type/find password.  This adds up over a day/week/month/year and am just looking to increase productivity and reporting with XMS.
The thought I had was that if the obscured field used to login was held in memory (an possibly encrypted) - then a call could be made to that whenever it was required

Quote from: Staj on August 11, 2020, 09:36:49 AM
Is PowerShell an option in your environment?

Staj. Powershell is available I suppose - as to whether it's and option or not would come down to what Powershell would be used for.  If you have an Idea - I am all ears.  Would be happy to run external script if it means that overall (for everyone else not using in this way) XMS is a little more robust and secure.

In the meantime - I have a couple of Ideas for what XMS could do to lessen my issue - so might just put in a feature request and see where it gets to.

Cheers
#7
General Support / Per User Tool Authentication
August 10, 2020, 08:09:19 AM
Hey Peeps.

Looking for a way to have it so as my tools will be able to pull access details from current user session.

Am looking to use RADIUS to auth all techs - and then have that same RADIUS server give them access to the managed Devices.

Can populate tools with a %U for the unique username - however can see no way to use the password from the current session in a tool (as a macro or otherwise)

Can add Custom Attributes to the Nodes/Templates and use those - but as using radius - will be a per user password.

Is there any way to pull and assign the current session's password to a required tool - or is there a place where I can put per user attributes to pull from with an object Tool macro/script

I found the info about Input fields - but this will not do.  I am not at all adverse to the team having to do a password change in XMS and RADIUS (if they want) - but having to enter the password every time is no good)

Any Script examples or ideas of where to go appreciated.  If no such thing is available - I'll put in a request

Cheers in advance