Mohammed1984 Trusted Contributor.
Trusted Contributor.
545 views

NNMi how to set up email notifications for specific sites at a specific time?

NNMi how to set up email notifications for specific sites at a specific time?

We use Lifecycle State depending script.

P.S. Sorry for my English.

0 Likes
3 Replies
Highlighted
Vincent_M_NNM Acclaimed Contributor.
Acclaimed Contributor.

Re: NNMi how to set up email notifications for specific sites at a specific time?

Hello Mohammed

Thanks for posting,

Please check the following information:

https://softwaresupport.softwaregrp.com/group/softwaresupport/search-result/-/facetsearch/document/KM1154783

https://softwaresupport.softwaregrp.com/group/softwaresupport/search-result/-/facetsearch/document/KM793321

Those may help you to create a notifications for the incidents.

Ps: Do not worry about your english.

Regards,

Vincent Montenegro Mena
Customer Support Engineer

If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.
Mohammed1984 Trusted Contributor.
Trusted Contributor.

Re: NNMi how to set up email notifications for specific sites at a specific time?

We set up notifications, but it would be desirable from some nodes not to receive notifications in a non-working time.

0 Likes
Mohammed1984 Trusted Contributor.
Trusted Contributor.

Re: NNMi how to set up email notifications for specific sites at a specific time?

# check day time branch
sub checkDayTimeBranchWork ($$) {
  my @split_originOccurrenceTime = split(" ", $originOccurrenceTime);
  my @work_day = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri');
  my $day = $split_originOccurrenceTime[0]; 
  my $hour = substr ($split_originOccurrenceTime[3], 0, 2);
  my @split_managementAddress = split ('[/.-]', $managementAddress);
  my $three_octet = $split_managementAddress[2];

  # check day and time
  if (grep (/^$day$/, @work_day)) {
    if ($hour >= 6 and $hour <= 15){  
      return 1;
    } else {
      # if date and time - not woriking, (check is brahch?)
      if ($three_octet >= XX and $three_octet <= XX){
        return 0;
      } else {
        return 1;
      }
    }
  }
}

# Die run if day and time not business hour for branches
if (!checkDayTimeBranchWork($managementAddress, $originOccurrenceTime)){
  die "Die run if day and time not business hour for branches\n";
}
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.