Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-5351

send-event.pl changes system hostname on Solaris systems

    XMLWordPrintable

    Details

      Description

      The send-event.pl utility recently changed as follows:

      -chomp (my $hostname = `hostname`);
      +chomp (my $hostname = `hostname -f`);

      The hostname(1) utility on Solaris does not take any switches; it assumes that anything in its argv[0] must be a new hostname, so if you run the above on a Solaris system, the hostname gets changed to "-f".

      This is bad and should be changed back or, at least, avoided if we detect that we're on a SunOS-flavor system.

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              jeffg Jeff Gehlbach
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: