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

#1
Hi all,

I read in another topic that someone was able to compile the netxms agen on a raspberry i tried but failed. as the other topic is closed i am creating a new one.
Here are the steps i took:

1) Download Netxms Full Source from netxms site: https://www.netxms.org/download ( netxms-1.2.14.tar.gz )
2) Extract on computer en transfer to Raspbian using SFTP
   a) put the sources in /tmp/netxms
3) Open ssh to Raspberry
4) sudo apt-get update
5) sudo apt-get upgrade
6) sudo apt-get install libssl-dev
7) go to /tmp/netxms
8) sudo sh configure --with-agent --libdir=/usr/lib --disable-iconv (This runs without any error)
9) sudo make
Getting alot of the following errors
Quote
sender.cpp:253:80: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:253:80: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:283:102: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:283:102: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:306:102: warning: use of 'h' length modifier with 's' type character [-Wformat]
sender.cpp:306:102: warning: use of 'h' length modifier with 's' type character [-Wformat]
Quote
drbd.cpp:189:66: warning: use of 'h' length modifier with 'c' type character [-Wformat]
  CXX    linux_la-hddinfo.lo
  CXX    linux_la-iostat.lo
iostat.cpp: In function 'void ParseIoStat(char*)':
iostat.cpp:118:127: warning: use of 'h' length modifier with 's' type character [-Wformat]
  CXX    linux_la-linux.lo
  CXX    linux_la-net.lo
net.cpp: In function 'LONG H_NetIfList(const char*, const char*, StringList*)':
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]
net.cpp:413:28: warning: use of 'h' length modifier with 's' type character [-Wformat]

at the end i get this:
Quote
../../../tools/create_ssa_list.sh "" > static_subagents.cpp
/bin/bash: ../../../tools/create_ssa_list.sh: Permission denied
make[4]: *** [static_subagents.cpp] Error 126
make[4]: Leaving directory `/tmp/netxms/src/agent/core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/netxms/src/agent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/netxms/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/netxms'
make: *** [all] Error 2
10) sudo make install
11) cp contrib/nxagent.conf-dist /etc/nxagentd.conf
12) sudo /usr/local/bin/nxagentd –d

So after this i looked in the usr/local/bin but there is no nxagentd



am i missing something or did i forget something?

any info, tips or help is welcome :)

grtz,

Michiel
#2
General Support / Check File Version
September 27, 2013, 01:15:36 PM
Hi all,

I am going crazy on this. I want to get netxms agent collect the version of a file on a windows box:
this is the wmi query i use: WMI.Query(root\CIMV2,"SELECT Version FROM CIM_Datafile where name = 'C:\\Program Files\\Test Product\Product.exe'",Version)

but when i check the log file on the agent i get internal error.
So my questions are:

1) Is this the best way to get the file version or are there better options in netxms?
2) What is wrong

any info is welcome. thx in advance