Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-4723

$PID empty in Apache agent check

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • CE-22.5
    • Unix Agent
    • None

    Description

      Unless you add something like

      use English qw( -no_match_vars );
      

      the variable $PID will be empty. Use $$ instead, like:

              # write file
              $tmpfile = "$CACHEFILE.TMP.$$";
              open (OUTFILE, ">$tmpfile")
                      or die "File open failure: $tmpfile\n";
              print OUTFILE @data;
              close OUTFILE;
              rename ( $tmpfile, $CACHEFILE );
      

       

      Attachments

        Activity

          People

            sid3windr Tom Laermans
            markruys Mark Ruys
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: