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

#31
Before trying to use my script with NetXMS I was making use the scheduler services of the underlying operating system. It works but has major disadvantage of keeping things in sync. You end up with different program having different schedules to test the results of the program that run before them.  Because there is no formal relation between the different programs there is no central place to see which program depends on which. Over time when one changes the schedule of one program it can easily break the whole chain. My idea was to use a single program to set the schedule and test the result, however it's now clear that NetXMS expects results to be readily available for its DCIs.

A scheduler within NetXMS for long running tasks can be a solution. At the moment I thing I'll revert to using the Windows scheduler and (search to see how I can) modify the script to push an event to NetXMS informing it of success or failure of the script.

Regards,
Dan
#32
Victor,

The program I wrote does take some time to run as connecting to the mail server, fetching and moving mails takes time.
From what you're saying I should avoid using such actions as they impair performance and accuracy.
Is there a (recommended) way of achieving long during external tests in NetXMS?

Regards,
Dan

#33
Hi Victor,

I had no ExecTimeout parameter in my agent config (therefore it defaulted to 2000), After adding it I've set it to 10000.
I've increased the server's AgentCommandTimeout from 5000 to 11000.

In the agent log I can see now the external action is being called only once, problem solved. Thank you Victor.

I wonder however why NetXMS calls the external action multiple times when it timeouts, I would rather expect to find no value is returned.
Could you clarify this?

Regards,
Dan
#34
Hi Victor,

This is what I get for the Agent log in debug level 4:

[23-Feb-2012 15:57:01] H_ExternalParameter called for "Company.ParameterChecker" "S"C:\Program Files\...\Check.cmd""
[23-Feb-2012 15:57:01] H_ExternalParameter: command line is ""C:\Program Files\...\Check.cmd""
[23-Feb-2012 15:57:01] H_ExternalParameter (shell exec): worker thread created
[23-Feb-2012 15:57:03] H_ExternalParameter (shell exec): execution status 2
[23-Feb-2012 15:57:03] H_ExternalParameter called for "Company.ParameterChecker" "S"C:\Program Files\...\Check.cmd""
[23-Feb-2012 15:57:03] H_ExternalParameter: command line is ""C:\Program Files\...\Check.cmd""
[23-Feb-2012 15:57:03] H_ExternalParameter (shell exec): worker thread created
[23-Feb-2012 15:57:05] H_ExternalParameter (shell exec): execution status 2
[23-Feb-2012 15:57:05] H_ExternalParameter called for "Company.ParameterChecker" "S"C:\Program Files\...\Check.cmd""
[23-Feb-2012 15:57:05] H_ExternalParameter: command line is ""C:\Program Files\...\Check.cmd""
[23-Feb-2012 15:57:05] H_ExternalParameter (shell exec): worker thread created
[23-Feb-2012 15:57:06] H_ExternalParameter/POpenWorker: worker thread pipe read result: 0000000001397230
[23-Feb-2012 15:57:06] H_ExternalParameter/POpenWorker: worker thread pipe read result: 00000000012876B0
[23-Feb-2012 15:57:06] H_ExternalParameter/POpenWorker: worker thread pipe read result: 000000000128AC10
[23-Feb-2012 15:57:06] H_ExternalParameter (shell exec): execution status 0

Can you deduce the cause of the cmd being called 3 times?

Regards,
Dan
#35
Hi Victor,

In the old console using "Show History" I see there's a single value per day. Time stamp is always 5:30:02-06. This is as should I presume.
(By the way, is the history functionality present in the new console interface?)
Is there a log where the execution of external DCI's can be traced?

Regards,
Dan
#36
General Support / ExternalParameter DCI triggering issue
February 20, 2012, 01:06:03 PM
Hi,

I wrote a program to processes mail messages after fetching them from a mail server. It follows the Nagios plugin conventions.

In nxagentd.conf I've add the following to the #ExternalParameter section:
ExternalParameterShellExec = company.ParameterChecker:"C:\Program Files\...\Check.cmd"

Check.cmd :
@echo off
"C:\Program Files\...\text.exe" > NUL
@echo %ERRORLEVEL%

The DCI uses this Data Parameters and has a Custom Schedule: 30 5 * * *

The above should cause the DCI to run ONCE A DAY at 5:30 am, however it get triggers twice, both at the same second. My programs expects to find mails and once they've been processed it moves them to another folder. As it's being called a second time there're no mails to be found and it returns an error.

I cannot find any error message neither in the core nor the agent logs.

Any idea what is going wrong here?

Regards,
Dan
#37
General Support / Re: Up-to-date central documentation
February 18, 2012, 03:29:01 PM
Hi Victor,

Wonderful news, Thank you Alex & Victor!
(btw, the NetXMS logo in the top left corner is missing. Don't forget to add a link to the new wiki from the documentation page of the main site. )

Regards,
Dan
#38
Announcements / Re: NetXMS 1.1.10 released
February 15, 2012, 06:00:17 PM
Hi Alex,

here are my findings:

1) netxmsd started with full path to netxmsd.conf (e.g. "netxmsd -c c:\netxms\etc\netxmsd.conf", not something like "netxmsd -c ..\etc\netxmsd.conf")
C:\Program Files\NetXMS\bin\netxmsd.exe" --config "C:\Program Files\NetXMS\etc\netxmsd.conf" -d
=> OK


2) "JavaPath" parameter in netmxsd.conf should point to java executable (e.g. "JavaPath=C:\Java\jdk1.6.0_17.x86\bin\java.exe")
was:
JavaPath=/usr/jre/bin/java
now:
JavaPath = "C:\Program Files (x86)\Java\jre6\bin\java.exe"


3) "JDBCDriver" should be set to appropriate driver (e.g. "JDBCDriver=org.postgresql.Driver"). Currently supported: org.postgresql.Driver, com.ibm.db2.jcc.DB2Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, com.mysql.jdbc.Driver and oracle.jdbc.OracleDriver.
JDBCDriver= com.microsoft.sqlserver.jdbc.SQLServerDriver
=> OK


4) "JDBCUrl" is set to proper jdbc connection string (e.g. "JDBCUrl=jdbc:postgresql://localhost/netxms")
JDBCUrl=jdbc:microsoft:sqlserver://localhost:1433/netxms_db
=> I think this is not right, I'm using odbc to connect with the database, 1433 port is used for a mssql tcp/ip connection. Telnet test confirms this as connection to this port fails...


5) "report-generator.jar" is in directory specified by "JavaLibraryDirectory" parameter. Default location (for windows build) is "c:\netxms\lib\java\"
JavaLibraryDirectory = "C:\Program Files\NetXMS\lib\java"
=> the only file in this directory is the "report-generator.jar". Should there be anything else in there?

Regards,
Dan
#39
Announcements / Re: NetXMS 1.1.10 released
February 14, 2012, 12:21:46 PM
Hi,

You made me curious, how do I make the new web interface work? Platform is Windows 2008, at the moment web interface is provided by NetXMS service.

Regards,
Dan
#40
General Support / Re: Business Services Explanation
February 14, 2012, 10:04:26 AM
Thank you Victor. I guess it should be considered then as "work in progress".
Looking forward to seeing how it unveil.

Regards,
Dan
#41
General Support / Up-to-date central documentation
February 13, 2012, 03:01:39 PM
Hi,

I would like to join others in asking for a more up-to-date central documentation.
I'm fully aware it takes a lot of effort to make and keep documentation up to date, however going through the current outdated PDF documentation to only find it's not there and then having to go through the forum is not efficient, to say the least.
I started using NetXMS because it had the right features with a really useful GUI AND it had documentation. I'm using it because it's a wonderful product with support that some other commercial companies can only envy but I find myself loosing valuable time each time I need to add something to it because of lacking documentation. I really believe good documentation will help others discover and adopt this product.

I think wiki could be the right way to go. It's made for the purpose of knowledge share and the community can even help maintain and enhance it.
For those who prefer off-line documentation, tools exist to save it to an offline format.

Regards,

Dan
#42
General Support / Business Services Explanation
February 13, 2012, 02:38:01 PM
Hi,

Would it be possible to shed more light on Business Services. An example would be much appreciated.

Regards
Dan


#43
Feature Requests / Automatic Agent Upgrade
February 13, 2012, 02:34:49 PM
Hi,

Updating NetXMS Agents should be made simpler.

The Package manager is a central Agent depository, however installation still requires a lot of manual work. Having different operating system with different CPU architectures I have to maintain a list of which Agent variation is needed to which server. I then need to select nodes with common characteristics to update their agent. It would be so much easier if one could select the nodes to upgrade and let the software handle the upgrade.

Regards,

Dan
#44
Announcements / Re: NetXMS 1.1.10 released
February 13, 2012, 02:25:06 PM
Hi,

Upgraded today to 1.1.10. Everything seems to work fine.  :D

Some things I've noticed that may be done for next version:
- Windows service description is missing for the 3 NetXMS services. Trivial but would look better.
- Copyright in Alarm Notifier may be update to 2012
- Reports is still not working for me: Execute works, however when I try to render the result to PDF I receive the following error:
   'Rendering report' has encountered a problem. Cannot render report xxx job y: Input/Output error

Regards,

Dan
#45
General Support / Re: Error upgrading to 1.1.9
January 26, 2012, 05:18:47 PM
Hi Victor,

I think I'll wait for the next release. Thanks for clarifying.

Regards,

Dan