Read text file and count matched items
-
@tomaskir said in Read text file and count matched items:
You can actually get per-ssid client-count on MikroTik.
Check out the .1.3.6.1.4.1.14988.1.1.1.3.1.6 tree.
(each SSID has its own instance, and then client count as value)Hi Tomas, thanks for replying. This OID does not work when the APs are centrally managed, only on standalone access points. I will try to track down the documentation for nxapush and give it a try. Thanks.
-
Hello,
I am having trouble getting the push DCIs to receive values. I followed these steps so far.
- Set your DCI’s origin to Push Agent and configure other properties as usual, excluding polling interval which is meaningless in case of pushed data.
- Create separate user account or pick an existing one and give “Push Data” access right on the DCI owning node to that user.
- Use nxapush utility for pushing data.
I have tried nxapush with and without the user account I created, e.g.:
./nxapush param1=5and
./nxapush -u user -P password param1=5but I do not get any data in NetXMS. I have used tcpdump on the agent and server machines (both Ubuntu) and can see the data bent sent and received by the OS. I have also tried the same commands using nxapush on the NetXMS server too.
If I run nxapush with -vv I get only one line out saying 'Connected to NetXMS agent' and that is all (was expecting a full debug).
I guess I'm missing something but I cannot work out what. Can anyone give me some guidance, please?
Thanks in advance,
P -
-
Thanks for replying. I have tried now with -o using DCI ID and node ID but neither is working still.
-
-
I am using the paramater not description so should be good there. Can you confirm which ID the object ID is, please? Is it the ID of the DCI?
-
-
I have spun up another box in case there was a problem with something on it and can now get data from, for example,
nxapush param1=4Still cannot get anything using -o to push on behalf of another node. I can work around this but it would nice if I could work it as it would keep a cleaner config.
Thanks for your help.
-
Check your "CheckTrustedNodes" server config variable (set it to 0 and restart server).
I have a feeling we are running into an issue with security here. -
Genius! Thank you. Tested that and it all started working. Switched CheckTrustedNodes back to 1 and added Trusted Nodes to the node containing the DCI and that is working now too. It seems slightly strange, however, that to use the -o option to send a value for the node doing the actual sending requires it to list itself in Trusted Nodes.
Thanks again

P
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