Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: streamlined formatting

...

  • Update the crontab to run the default reports every day for the last 1 day and every week for the last week.  Below is the crontab entries required.
  • To edit the crontab, use the command "crontab -e"

    Code Block
    ######################################################

...

  • 
    # Opmantek Config

...

  • 
    ######################################################

...

  • 
    # Run opReports Batch 

...

  • 
    0 0 * * * /usr/local/opmantek/bin/opReports-daily.sh

...

  • 
    0 0 * * Sun /usr/local/opmantek/bin/opReports-weekly.sh
    
    
    

Alternate Installation Directory

opReports can be installed into another directory if required, e.g. /opt/opmantek, the same process applies, but a few files will need to be changed.

...

Edit the Apache include file, which if already copied to /etc/httpd/conf.d will be /etc/httpd/conf.d/01opmantek.conf and change the following lines to the new installation location:

Code Block
Alias /opmantek/ "/usr/local/opmantek/htdocs/"

...


ScriptAlias /cgi-omk/ "/usr/local/opmantek/cgi-bin/"

...


<Directory "/usr/local/opmantek/cgi-bin"> 

Edit the crontab and use the locations of the two shell scripts, e.g.

Code Block
0 0 * * * /opt/opmantek/bin/opReports-daily.sh

...


0 0 * * Sun /opt/opmantek/bin/opReports-weekly.sh

 

Edit each of the opReports shell scripts and update the following line

...

There are many configuration options in opReports, but the only one which must be updated to make everything work is the configuration for "report_server_prefix", this allows the emailed reports to point to the correct web server to load their configurations, this entry is in the opReports.nmis file and should be updated to be the public web prefix of the server, which the people receiving the emails would use to access the server (this might be the portal address).

Code Block
'report_server_prefix' => 'http://nmis.domain.com',

Access opReports Web Page

...

Often patches will be released for opReports, the following are commands to install a patch, unless other instructions are specifically provided.

Code Block
unalias cp

...


cd ~

...


tar xvf ~/opReports-<version>.tar.gz

...


cd opmantek/

...


cp -r * /usr/local/opmantek/

...


/usr/local/opmantek/bin/opfixperms.pl

...


/usr/local/opmantek/bin/opupdateconfig.pl /usr/local/opmantek/install/opReports.nmis /usr/local/opmantek/conf/opReports.nmis