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

#91
General Support / Re: interface id on state change
October 10, 2016, 12:35:18 PM
Many thanks for help with the script, i have tested it and i got it to work as intended and it is triggered as planed but $5 does not return anything so it fails.
If i change $5 to 1 manually as it is the iface i test on it works and the custom attribute is shown in the alert message.
#92
This is not the real file, i tested different scenarios and this test.exe is only a while loop so it stays active

[10-Oct-2016 11:01:16.251] [DEBUG] [session:0] Requesting parameter "test"
[10-Oct-2016 11:01:16.251] [DEBUG] H_ExternalParameter called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:16.251] [DEBUG] RunExternal called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:16.251] [DEBUG] RunExternal: command line is "c:\test.exe"
[10-Oct-2016 11:01:16.251] [DEBUG] RunExternal (shell exec): worker thread created
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal (shell exec): execution timeout
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal (shell exec): execution status 2
[10-Oct-2016 11:01:18.266] [DEBUG] [session:0] Requesting parameter "test"
[10-Oct-2016 11:01:18.266] [DEBUG] H_ExternalParameter called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal: command line is "c:\test.exe"
[10-Oct-2016 11:01:18.266] [DEBUG] RunExternal (shell exec): worker thread created
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal (shell exec): execution timeout
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal (shell exec): execution status 2
[10-Oct-2016 11:01:20.266] [DEBUG] [session:0] Requesting parameter "test"
[10-Oct-2016 11:01:20.266] [DEBUG] H_ExternalParameter called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal called for "test" "Sc:\test.exe"
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal: command line is "c:\test.exe"
[10-Oct-2016 11:01:20.266] [DEBUG] RunExternal (shell exec): worker thread created
[10-Oct-2016 11:01:22.282] [DEBUG] RunExternal (shell exec): execution timeout
[10-Oct-2016 11:01:22.282] [DEBUG] RunExternal (shell exec): execution status 2
#93
Hi,

I have set up one node to run a file via ExternalParameterShellExec on the agent but when it executes the file it runs it 3 times, any known related problems to this?
Searched the bugtracker but could not find any.

Tested both forced DCI poll and scheduled.

Agent version 2.0.5
Windows 2012 R2
#94
Quote from: mclifford on September 19, 2016, 11:16:49 PM
I am running agent version 2.05-x64 and I am getting a returned value of 0 for the following.

\PhysicalDisk(1 E:)\Avg. Disk sec/Read
\PhysicalDisk(1 E:)\Avg. Disk sec/Write
\PhysicalDisk(1 E:)\Disk Reads/sec
\PhysicalDisk(1 E:)\Disk Writes/sec

If you haven't verify in windows using performance monitor on that machine that there actually are other values then 0, the counters usually don't save average values indefinitely hence returning 0 on low activity.
#95
General Support / interface id on state change
September 16, 2016, 01:00:13 PM
Hi,

I am monitoring all the ports on our switches to see if and when hardware is added or removed via the state change of the interface.
These are named after the portnumber so the alarm state for example "Interface "33" unexpectedly changed state..."

What is the best and most correct way to add alias to ports since i want to add room/local network alias to the interface port so i know where or who it is.
Change object name does not work since it updates when polling back to port number, change port name on the switch does not work it wont send that when snmp is polling.
Now i am looking into the custom attribute to set that and if you can use data from these in the alarm message, still trying to find info about how custom attributes are used though.

Any pointers would be appreciated.
#96
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.
#97
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
#98
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.
#99
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=
#100
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=
#101
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
#102
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.
#103
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.
#104
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?
#105
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.