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 - MarcusH

#106
General Support / http header response
September 06, 2016, 06:12:39 PM
HI,

I am looking to setup a DCI that collect a specific http header response key from one of our servers, don't know if i am missing something obvious.
The service checks i have looked at checks http respons and gives return value 0 for ok but i want the actual response value from the header is there any built in solution for this?

In my specific case i have an url that with GET gives a json with lots of data but all i want is the count in the queue in question and that is sent via a header key named Total-Count


Edit:

Manage to solve it by making a small console program that return wanted header and then using ExternalParameterShellExec on the agent.
Though nice if there is some more elegant way of doing it without externals.
#107
General Support / Re: Unstable XMPP
August 31, 2016, 10:52:38 AM
Now the connection has failed completely without it even trying to reconnect only thing in the log is:

XMPPMessageSender: XMPP connection unavailable, will retry in 30 seconds

No other xmpp connection entries at all
been like this since yesterday
#108
Feature Requests / dashboard elements
August 29, 2016, 10:25:57 AM
A name column under dashboard elements would be very helpful when you have a lot of the same type.
#109
General Support / Re: Unstable XMPP
August 17, 2016, 02:41:04 PM
Got one now with longer delay and is has some problems in the log, still same around 2min delay before first try though.
From what i can see it delays 30min after reconnect to send the message.

[17-Aug-2016 09:52:03.780] [DEBUG] *actions* Sending XMPP message to
...
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: SENT: <message to="" type="chat"><body>
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: Unrecoverable TLS error, 5.
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: Closing socket.
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: disconnected
[17-Aug-2016 09:54:39.081] [DEBUG] XMPP: Stopping event loop.
[17-Aug-2016 09:54:39.081] [DEBUG] XMPPMessageSender: XMPP connection unavailable, will retry in 30 seconds
...
[17-Aug-2016 09:55:09.157] [DEBUG] XMPP: sock_connect to
[17-Aug-2016 09:55:09.157] [DEBUG] XMPP: attempting to connect to
[17-Aug-2016 09:55:09.191] [DEBUG] XMPP: connection successful
...
[17-Aug-2016 09:55:09.702] [DEBUG] XMPP: Session establishment successful.
[17-Aug-2016 09:55:09.702] [DEBUG] XMPP: connected
...
[17-Aug-2016 10:25:26.610] [DEBUG] XMPP: SENT: <message to=
#110
General Support / Re: Unstable XMPP
August 17, 2016, 09:46:21 AM
Enabled mail action to the same events for some reference in the log and when action are triggered the smtp action is directly after so no delay at all there, the xmpp on the other hand is sent minutes later with no error or other xmpp related line in between in the log.

[16-Aug-2016 20:06:06.741] [DEBUG] *actions* Executing action 1 (XMPP Marcus) of type XMPP MESSAGE
[16-Aug-2016 20:06:06.741] [DEBUG] *actions* Sending XMPP message to
[16-Aug-2016 20:06:06.741] [DEBUG] *actions* Executing action 2 (Mail Marcus) of type SEND EMAIL
[16-Aug-2016 20:06:06.741] [DEBUG] *actions* Sending mail to
[16-Aug-2016 20:06:06.741] [DEBUG] SMTP(0000000018D41A10): new envelope, rcpt
[16-Aug-2016 20:06:06.910] [DEBUG] SMTP(0000000018D41A10): mail sent successfully
...
[16-Aug-2016 20:08:55.799] [DEBUG] XMPP: SENT: <message to=
#111
General Support / Unstable XMPP
August 15, 2016, 04:49:52 PM
Hi,

I have setup our events so they use XMPP since that is by far the best way for me now, especially now with server and clients that support carbon so the events pop up with history on all my connected devices that way i will not miss the events.

The problem though is that XMPP from netxms seems very unstable, any reason why it does not send the message as soon as the event is triggered?
It can be anything from a few minutes to the latest i had now was 44min before the msg was sent.

Running version 2.0.5
#112
Thanks did not think of that, still would be nice to know if you can get earlier DCI data in script.
We have a wall of screens showing dashboards and what we want to be shown there changes and starting to get more advanced.
#113
Hi,

We have a few DCI that collect values and even though graphs give a fairly good representation would i like to have one DCI with changes.
Example, DCI A collects value once every day and was 100 yesterday and 150 today, DCI B will then save/show the change in value from the day before and show +50

Is this possible in some clever way using scripts?
Like can you get earlier data from other DCI, or do you haft to have one DCI with todays value, another with yesterdays and a third with the change value of the two?

Just started looking into scripting since i have mainly used only agent or SNMP DCI before.
#114
General Support / dashboard
April 21, 2016, 11:10:22 AM
Is it possible in any way to dynamically update the min/max values of gauges in the dashboard with data from DCI?
#115
General Support / Dashboard theme
May 04, 2015, 10:09:54 AM
Is it possible with current settings to make dashboard black themed?
Have a 40 inch monitor running 24/7 with performance monitoring and that thing gives me a sunburn also black background with bright text is more easily visible from distance.

I tried the chart color settings but can only change the gauges background and title not status indicators also no control off the gauge dial background and legend text color in gauges.
#116
General Support / DCI Template
March 04, 2015, 10:19:25 AM
Is there any way to update a template already applied so all nodes using that templates are updated and not getting duplicate DCI?
#117
General Support / Re: DBQuery error
February 18, 2015, 10:02:28 AM
That worked but seems like some earlier version pushed install with -D 0 on the service though so the debuglevel config did not work at first but uninstalled and installed new and now it works.

Now to the main problem it seems like it ignores the database setting no entry in debug log about this, all i get is:
[INFO ] Subagent "dbquery.nsm" loaded successfully

Then nothing until it tries query and get:
[DEBUG] [session:0] Requesting table "DB.Query(db1,"select Count(*) from ***")"
[DEBUG] DBQUERY: H_DirectQueryTable: no connection handle for database db1

EDIT:

Problem solved i have missed "*DBQUERY" in the config above Database
#118
General Support / DBQuery error
February 17, 2015, 03:41:48 PM
Hi,

I have searched all the corners i can find for an answer but to no avail so i will ask here and i am sorry if this is answered elsewhere.

I am trying to add a dbquery that just simply count lines in a table, the agent is configured for dbquery using mssql.ddr.
The account and query is working so thats not a problem but i can not get the agent to connect to sql server.

In the config i have:

SubAgent = dbquery.nsm
Database = id=db1;driver=mssql.ddr;server=***;dbname=***;login=***;password=***
Query = query1:db1:30:select count(*) from ***

The log says only: [INFO ] Subagent "dbquery.nsm" loaded successfully
No entry what so ever about any error or connection for the query

So my question is how and where can i find more detail log on what the agent and subagents are doing so i can find a source for the problem, when i try to manually query via netxms management console i get "Cannot get current parameter value: Communication failure".

Tried both DB.Query() and DB.QueryResult() same problem.

I tried agent 1.2.16 and 2.0-M2