News:

We really need your input in this questionnaire

Main Menu
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

Topics - gdodd

#1
I am trying to write a discovery filter script for Windows services that start with a common name and are set to auto startup. I have experimented with different things all day with no luck.

Here is what I thought would work, but it does not

name = $1->get(0);
startup =  $1->get(4);
if (name like "3CX*" && startup == "Auto")
{
return true;
}
return false;

I was hoping $1 would return a row but seems it does not.

In the manual it says values are returned with ~~~ between them, but I am not sure how to read those in the script.

Any assistance would be appreciated.

Gary
#2
General Support / Windows event log synchronization
December 16, 2020, 08:23:18 PM
Is there any available information regarding "Windows event log synchronization, server side parsing and agent side filtering" from the 3.6 release notes? It sounds like it is different than the Parser Definition file.
#3
Feature Requests / Select Object on Object Details
September 16, 2019, 04:13:21 PM
When looking at the Alarm Browser, Summary Tables, and probably others, you can right click and choose Object Details. It would be helpful if the Object was selected in the Objects tree to easily identify which customer Container the Object is located.

#4
General Support / Schedule Maintenance with a script
October 20, 2018, 12:13:24 AM
Is there a way to schedule maintenance on a node from a script (or another automated way to schedule maintenance)?

I want to automate putting the node into maintenance when a process has finished and closed, reboot the node, and then come out of maintenance an hour later. I can do everything I want except get the node out of maintenance.

Thank you

Gary
#5
I thought in previous versions when you right clicked a node and scheduled maintenance, the tasks would show in the Scheduled Tasks tab. I am not seeing them there anymore. It would be helpful if they were listed.

Thank you,
Gary
#6
General Support / Schedule Node Restart
April 05, 2018, 07:55:48 PM
Is there a way to use Scheduled Tasks to schedule a reboot of a node that has the agent installed? I tried a script with $node -> agent.system.restart and just agent.system.restart which did not work. But that is the basic idea of what I want to do.

As an alternative, I was looking at scheduling a script to execute a command on the agent (Windows, so I would use shutdown.exe), but I do not see a way to accomplish this.

Finally, I think I could use Event Processing Policy, when device enters maintenance mode AND I have a unique identifier set (custom attribute) on the node I want to reboot, it will perform an action to restart the server. When node leaves maintenance, run a script to clear the unique identifier.

Those options are in order of what I think are the best ways to accomplish (if possible) what I want to do. Any suggestions on the first two or thoughts on the third one?

Thank you,

Gary
#7
Is there an option during a Windows agent silent install to set the "Download configuration file from management server on startup"?
#8
General Support / Agent Tunnel Port Configuration
January 25, 2018, 04:46:58 PM
Is there a way to change the Agent Tunnel Port from 4703 to port 80 or 443 for example? If not, I'd like to make a feature request to allow this. Use case, some of my clients have strict firewall rules and do not allow traffic out except on specific ports, with typical web ports (80/443) being allowed.

Thank you,
Gary
#9
General Support / DCI Custom Schedule
October 25, 2017, 09:58:54 PM
I have a custom schedule for one of my DCI's that monitors the number of files in a folder. An expected event runs at 3AM and puts a few thousand files in the folder that are processed and cleared out. I do not want to check during that hour.

This was working until I upgraded the server to 2.1.2.

Server 2.1.1 Agent 2.1.1 - Custom Schedule Working
Server 2.1.2 Agent 2.1.1 - Custom Schedule NOT working
Server 2.1.2 Agent 2.1.2 - Custom Schedule NOT working

I've attached a screenshot of my custom schedule.

Thank you,
Gary
#10
General Support / RabbitMQ Monitoring
September 07, 2017, 08:07:26 PM
Is anyone doing any monitoring of RabbitMQ? I don't know much about Rabbit but our developer department is asking. Looks like you can check a webpage to get the status...
#11
General Support / 2.1 Agent ServiceCheck.Custom
July 13, 2017, 04:47:57 PM
After upgrading agents from 2.0.7 to 2.1, my DCI ServiceCheck.Custom(127.0.0.1,8080) is no longer working. If I use the local IP address for the agent instead of the loopback, then it works.
I am deploying these through templates, so I need to use the loopback address or if there is a variable available for the IP address in the DCI.

I am guessing there is a configuration change (solution to my last two questions) but I cannot find what it is.

Thank you
#12
Just upgraded to version 2.1 from 2.07.

Regarding the "Windows" Template:

If I edit it, after restarting the Core service, the "Windows" template goes back to default and I lose my customization's
If I delete it, after restart, it comes back with the default settings.
#13
I am trying to upgrade from version 2.0.7 to 2.1. I am on Windows Server 2008 R2 with MSSQL. I have done the following steps:
1. nxdbmgr check (no errors)
2. run installer with /silent (no errors)
3. NetXMS Core starts (no errors)
4. NetXMS Management Console starts (no errors)

I run into an issue where I select to view alarms on a device and the table (in Management Console) is blank. If I look directly into the table, there are alarms that should be shown. The other odd thing is the Templates. I have a "Windows" template that I have added DCI's to and after the upgrade there is another "Windows" template which seems to be the default that would be installed with Core. So I end up with two "Windows" templates.

The following troubleshooting steps were done with the same result as the above:

1. Upgraded to 2.0.8 then to 2.1
2. Detached netxms_db, created a new db, performed upgrade, attached prior netxms_db and ran nxdbmgr.exe upgrade -t. I did not see any errors and it said it completed successfully.
3. Deleted all rows from "alarms" table prior to upgrade

Right now I am cloning my 2.0.7 environment so that I can work on the issue without impacting my production monitoring. I think my next step will be to export the database without collected data, initialize, import the database without collected data, then upgrade.

If there are any suggestions, please let me know. I'll update if I find anything.
#14
I'm looking for a good way to mute email notifications and still perform actions on the server.

Here is the situation: I have a large group of Windows servers that perform very similar functions. After a reboot, there are two of the same services on each server that do not start. I have an action in NetXMS that will start the service when it is down and that works. When I do monthly down time on the servers, I put them into maintenance mode, but then of course, the service restart actions do not process. I only put the servers into maintenance mode to mute the notifications, meaning, I don't care if there are alarms generated during the downtime as long as I don't receive email alerts.

1) I could just change the configuration to an invalid STMPServer. But I will lose alerts on servers not in maintenance
2) Create two Event Processing Policies for each service, one that starts the service and another that sends the email. Group the start and email policies together with a stop processing event in the middle of them
3) Get clever with scripting
4) ???

Thank you for any suggestions/assistance.
#15
I would like to be able to add comments to scheduled tasks. Ideally, they would show in a column on the Scheduled Tasks tab, but it would also be functional if they were only visible when editing the scheduled task. My need is to have a convenient way to document the what and why of the task.

Thank you
#16
I'm new to NetXMS and it is working well for our needs. I am tweaking our DCI's now and have a question.

I have Windows 2003, 2008, and 2012 servers. I have a template setup to add DCI's to the servers and that works fine. I am monitoring the windows firewall service and the name is different on 2003 ("SharedAccess") compared to 2008/2012 ("MpsSvc"). I would like to use the same template/DCI and detect if it is on 2003. I tried using an instance discovery script, but that did not work.

The script I used was:
if($node->sysDescription like "*2003*") {
$1 = "SharedAccess"
else $1 = "MpsSvc"
}
return true;

As an alternative, I tried to make separate templates with Auto apply rules. I tried this for the rule:
return $node->sysDescription like "*2003*";
and that is not working as I expect.

Any suggestions would be appreciated. Thank you.

Gary