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

#1
I have an instance of Netxms I haven't logged into for a while and am getting an error trying to check the database with nxdbmgr check.

It shows the error Unable to load and initialize database driver "pgsql.ddr"

Version is 4.4.3 Build 4.4-658-ga8dfd8111f

How can I fix this?
#2
General Support / SMTP Driver Error
August 07, 2022, 02:04:17 AM
I am trying to configure eMail notifications. I have an SMTP server set up that does not require authentication. I have attached a screenshot of the error. My configuration for the driver is:

Server=XX.XX.XX.XX
RetryCount=1
Port=25
FromName=NOC
FromAddr=<my email address>
MailEncoding=utf8
IsHTML=no

How can I troubleshoot this?
#3
Thank you very much for this. I must be missing something very basic. It looks as though the $node variable is not defined in the hook. I am getting the error: "Error 14 in line 12: Function or operation argument is not an object" just trying to execute this script within Hook::ConfigurationPoll


/* Available global variables:
*  $object - current object, one of 'NetObj' subclasses
*  $node - current object if it is 'Node' class
*
* Expected return value:
*  none - returned value is ignored
*/

sub main()
{
  trace(1,"hook executed for ".$node->ipAddr);
}
#4
General Support / Interface expected state in template
October 27, 2021, 06:11:35 AM
Where can I script the expected state of interfaces when a template is applied to node? The purpose is to ignore all interfaces except for the one I'm interested in.

Thanks in advance
#5
I tried this too and still no joy.

return ($node.productName ~= "ePMP3000 (FCC)") ? true : false;
#6
I have added this to the Auto Apply filter and it still doesn't apply the template to the nodes. What am I missing?

return $node.productName like "ePMP3000 (FCC)";

#7
Got it! I just need to reference $node->productName in the Rule.
#8
I can see the vendor and product name in the general tab of an added node. How can I use this information automatic apply rules for a template? I have scoured the MIBs can not seem to find it.