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 - Victor Kirhenshtein

#6166
General Support / Re: Service UP/Down and emails
January 11, 2011, 11:19:47 PM
Because you are monitoring services using DCIs, you will not get service down events in case of entire node down, because there will be no new values for DCI, and therefore no events will be triggered. Btw, it is not recommened to use SYS_xxx events in thresholds - they are generated by server in various situations, and you can get unexpected results. SYS_SERVICE_DOWN and SYS_SERVICE_UP generated by server during status poll of network services. Until you are not using network service objects, you are fine, but if you eventually configure some, you will get unexpected events. Better approach is to create your own events.

Best regards,
Victor
#6167
Hi!

Try to use GetSituationAttrubute(s, "status") instead of s->status - there was a bug report that latter method of accessing situation's attributes still not working, although I was thinking that I have fixed it for 1.0.8 - I still didn't check that myself (see this: https://www.netxms.org/forum/configuration/logwatch-function/msg4934/#msg4934).

Best regards,
Victor
#6168
General Support / Re: SNMP Traps handling
January 11, 2011, 11:02:29 PM
Did you try console programs as well (something very simple like cmd /c echo test > c:\test.txt)?
#6169
As you are running Windows 2008 R2, it is 64 bit. Are you running 1.0.4 agent? If yes, it is 32 bit, and it may cause some problem (although it shouldn't). In this case, could you please try to replace agent with x64 version (it will be agent version 1.1.0, but it is compatible with 1.0.x servers).

Best regards,
Victor
#6170
General Support / Re: Node down help
January 11, 2011, 10:34:08 PM
Hi!

How many nodes you are monitoring? Could you please check status of pollers and queue sizes at the moment when node in question is down, but not detected yet (by running nxadm -i and then giving commands "show pollers" and "show queues")?

Best regards,
Victor
#6171
General Support / Re: Map/Service Question
January 11, 2011, 03:26:06 PM
Quote from: EvilClown on January 11, 2011, 03:07:34 PM
1. Is it possible to manually connect servers in the map (Layer 2 and 3)?

Yes, if you are talking about custom maps. You can select two objects, and press Ctrl+Alt+C (or select Map -> Create link between objects menu) - this will create labeled link.

Quote from: EvilClown on January 11, 2011, 03:07:34 PM
2. How to integrate external service checks?

By using agent's external paremets. One example is here: https://www.netxms.org/forum/configuration/how-to-countgraphcheck-tcp-connection-states-table-with-netxms/. But this is only for creating new DCIs,  it has no relation to network service objects.

Best regards,
Victor
#6172
Teper' ponjal. S temi object toolami, kotorie est' sejchas, sdelat' normal'no ne poluchitsja - tol'ko esli sdelat' tool tipa "command", kotorij vizivaet nxevent dlja generacii special'nogo eventa, kotorij triggerit server action. Ja v sledujuschem relize dobavlju esche odin tip toola, eto neslozno.
#6173
Eto znachit chto v event processing policy ostalas' ssilka na ob'ekt, kotorogo bol'she ne suschestvuet. ID etogo ob'ekta 36. Poprobujte zapustit' nxdbmgr check pri ostanovlennom servere - on dolzen ubrat' reference na ob'ekt, a potom prover'te event processing policy - v kakom-to pravile budet nehvatat' source ob'ekta skoree vsego.
#6174
Hi!

Agent uses Windows API call GetTempPath to obtain directory for temporary files. It works as following (quote from MSDN):

The GetTempPath function checks for the existence of environment variables in the following order and uses the first path found:

   1. The path specified by the TMP environment variable.
   2. The path specified by the TEMP environment variable.
   3. The path specified by the USERPROFILE environment variable.
   4. The Windows directory.

Note that the function does not verify that the path exists, nor does it test to see if the current process has any kind of access rights to the path.

Could you please check values of mentioned environment variables and access rights for appropriate directories? Also, do you run agent under local system account?

Best regards,
Victor
#6175
General Support / Re: SNMP Traps handling
January 08, 2011, 07:00:24 PM
Quote from: calin.sarac on January 08, 2011, 09:44:48 AM
One question please, as long as  I was not able to execute comands or scripts from Actions section in your program could be there any connection with the present situation ?  I tried a simple command like "cmd.exe /C "mplay32"" and even it seems that is fine is not working.I tried to put the same command in a bat file and add that bat file in actions and still not working even if everything is fine (I read all your post on the forum regarding this subject and follow the recomandations).

If you are running NetXMS server as a Windows service, you will not see any GUI for the programs started by the server. If you really wish to see GUI program started by the server, you should turn on "Allow service to interact with desktop" in NetXMS Core service properties. For simple tests, I recommend you to start simple program or bat file which writes something to some file, and check content of that file.

Best regards,
Victor
#6176
General Support / Re: SNMP Traps handling
January 08, 2011, 06:52:35 PM
Hi!

As I can see from your config, you extract only one varbind from SNMP trap - with OID .1.3.6.1.4.1.2509.8.21.2.2.1.7. Value of this varbind will become event's parameter number 2, as you can see from column "No." in trap configuration's "Parameter buindings" list. But, in your event configuration and event processing policy you refer to parameter number 3 (by using macro %3 and variable $3 in script), which will always be empty string, because you don't extract anything else from trap. If you change $3 in your script to $2, it should start working.

Also, why you are using syslog parser? Do you receive anything via syslog as well?

Best regards,
Victor
#6177
Hi!

I don't understand what is the problem with Config::print. It uses wide character version of printf, so UNICODE build should print all characters correctly. Or you have problems with ANSI build?

Function StrStrip removes leading and trailing spaces and tabs from given string. It works in both ANSI and UNICODE builds. What exact problem you have?

Best regards,
Victor
#6178
General Support / Re: SNMP Traps handling
January 07, 2011, 12:12:08 PM
Could you please send me screenshots of your trap configuration, event configuration, rule in event processing policy, and record in SNMP trap log?

Best regards,
Victor
#6179
General Support / Re: SNMP Traps handling
January 06, 2011, 10:03:22 PM
Hi!

Yes, * character means "everything" - you need this if your message contains string ALARMA and not equals to it. About syntax - did you enter script exactly as I write it, with semicolon at the end? Otherwise it will fail with syntax error.

Best regards,
Victor
#6180
Dobrij den'!

Da, nado sozdat' action s tipom "Execute command on management server", i v komandnoj stroke ukazat' nxsnmpset s parametrami. Dlja togo, chtobi podstavit' adres hosta, na kotorom proizoshlo sobitie, mozno ispol'zovat' makros %a. Naprimer, chtobi perezagruzit' Nortel Passport switch, nado zapisat' 2 v .1.3.6.1.4.1.2272.1.1.8.0. Chtobi sdelat' action RestartNortelSwitch, nado ukazat' takuju komandnuju stroku:

nxsnmpset -t INTEGER %a .1.3.6.1.4.1.2272.1.1.8.0 2