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

#16
General Support / Re: Monitor internet up/down
June 06, 2016, 12:54:50 PM
Hi There

Thanx for the info.  I actually did it the exact way as you suggested.  Funny thing you would not believe how unstable 8.8.8.8 is. Node actually goes down alot with my internet still working. 

Regards
#17
General Support / Re: Netxms macro for instance??
May 30, 2016, 01:30:03 PM
Hi Victor

That was it.  I left out the instance in thresholds.  I initially thought that it would use the instance name in the parameter description.

But all is good now.

Thanx again for your speedy replies

Regards
#18
General Support / Re: Netxms macro for instance??
May 27, 2016, 12:45:26 PM
Hi Victor

For testing i only entered %6 in my e-mail alert.  And event is related to threshold.  I double checked.

What i have also noticed was that when i use the DC_SERVICE_NOT_RUNNING event and i use the alarm text in the e-mail (%A). It still does not include the instance in the mail.
#19
General Support / Netxms macro for instance??
May 27, 2016, 09:20:16 AM
Hi There

I want to include the instance in my e-mail notifications.  I use %6 but does not seem to work.

What is the correct macro for the instance?

Regards
#20
General Support / Monitor internet up/down
May 23, 2016, 10:34:19 AM
Good day

I am trying to figure out a way to monitor if my internet is down or up.

I would like to configure notifications that notifies me when for what ever reason my internet goes down and then online again.

Regards
#21
Hi There

I want to configure one e-mail notification and one event processing policy that when any node goes down (listed in the source objects), it mails me. 

Can anyone assist please.
Regards
#22
Thanx for the speedy reply.

I actually found what my issue was. i was using the gmtime function and just changed to localtime and it works 100% now :)

I used basics here but nonetheless it works  :D

day = localtime($1)->mday;

mon = localtime($1)->mon+1;

year = localtime($1)->year;

hour = localtime($1)->hour;

min = localtime($1)->min;

return day."-".mon."-".year."/".hour.":".min;


I could have just added a variable t = ($1) to make it even easier.

Thanx for the advice and putting me in the right direction.
#23
General Support / UNIX timestamp 2 hours out of sync
January 19, 2016, 10:19:31 AM
Hi There

I have been struggling with the UNIX timestamp conversion a while now.  I finally got it working but now for whatever reason the time stamp DCI value netxms pulls is 2 hours behind exactly.

I did a online converter of the timestamp as well and i get the same results.

More info:
I poll dci value using File.Time.Modify parameter.  I then use a script to convert from UNIX time. However, DCI value being polled is 2 hours behind the actual value.

Please assist.

Regards
#24
General Support / Re: unsigned int64 bit data polling
January 14, 2016, 04:48:57 PM
Hi Victor

Thanx so much for your help.  It put me in the right direction.

My script i compiled was:
t = ($1);
day = gmtime(t)->mday;
mon = gmtime(t)->mon+1;
year = gmtime(t)->year;
hour = gmtime(t)->hour;
min = gmtime(t)->min;
return day."-".mon."-".year."/".hour.":".min;

This gave me an output in the following date format:
14-1-2016/14:29
DD-M-YYY/HH:MM

I also struggled a bit but remembered to capture string data and not int.

I find this helpful for monitoring last modified date and time (which is highly important in my company for some files).

Just wanted to say thanx to Victor.  Really appreciate your help.

Regards
Duane

#25
General Support / Re: unsigned int64 bit data polling
January 13, 2016, 11:54:46 AM
Hi Victor

I am fairly new to NetXMS scripting.  I actually got this far as to use the gmtime function gmtime()->mday to get the day only.

How can i use the gmtime function to extract the DD-MM-YYYY and maybe HH-SS if possible? Like 12-01-2016 14:30

Regards
#26
General Support / Re: unsigned int64 bit data polling
December 16, 2015, 06:04:00 PM
Thanx Victor

Much Appreciate it.

By files age do you mean the date stamp on file when last modified?

I will try the script and see how it goes.

Thanx alot!!
#27
General Support / Re: unsigned int64 bit data polling
November 24, 2015, 11:00:38 AM
I found that it polls UNIX time.

How can i convert this once polled?

#28
General Support / unsigned int64 bit data polling
November 24, 2015, 08:36:18 AM
Good day

I am busy setting up File.Time.Access / Change / Modify parameters. 

I don not understand the Int64 bit type.  Is the data in milliseconds? When i convert it, the data set is wrong in days or hours.

My server's date is correct tho as i thought it could be NTP or system date.

Thanx
#29
Hi There

When i run /usr/bin/nxdbmgr init /usr/share/netxms/sql/dbinit_mysql.sql to initialize the db i get the error:

Unable to load and initialize database driver "/usr/lib/libnxddr_mysql.sql"

When i browse to the location, no such driver exists.

When i run: apt-get install netms-server-mysql i get error:

Also i get error: netxms-server-mysql : Depends on : netxms-server (= 2.0-M2) but 2.0-RC is to be installed

My sources.list file has: deb://packages.netxms.org/debian wheezy beta