Results 1 to 3 of 3
  1. #1

    ConfigServer LoadAlert

    I'm trying to use a custom command in the configServer loadalert.txt file. the problem is that any command that I place inside the square brackets is simply not working.

    PHP Code:
    This is a multi-part message in MIME format.
    --------------[
    boundary]
    Content-Typetext/plain;
    Content-Transfer-Encoding7bit

    Time
    :                    [time]
    1 Min Load Avg:          [loadavg1]
    5 Min Load Avg:          [loadavg5]
    15 Min Load Avg:         [loadavg15]
    Running/Total Processes: [totprocs]

    --------------[
    boundary]
    Content-Typetext/plain;
    Content-Transfer-Encoding7bit
    Content
    -Dispositionattachment;
     
    filename="ps.txt"

    Output from ps:
    [
    top ---n 1]

    --------------[
    boundary]
    Content-Typetext/plain;
    Content-Transfer-Encoding7bit
    Content
    -Dispositionattachment;
     
    filename="vmstat.txt" 
    Any ideas how I can display the 'top -b -c -n 1' command inside the loadalert file to work?

  2. #2
    Join Date
    Feb 2004
    Location
    UK
    Posts
    1,429
    Hi

    If you do whereis top on the command line and use the full path to top. Maybe when its executed it cannot see the PATH

    /usr/bin/top -b -c -n 1 <-- for instance.

    Thanks

  3. #3
    Nope, it doesnt work.

    Someone must surely know how I can solve this?

Similar Threads

  1. Review configserver.com
    By DataArk in forum Managed Hosting and Services
    Replies: 8
    Last Post: 04-09-2010, 10:08 PM
  2. ConfigServer Explorer
    By ALEXEI_M in forum Hosting Security and Technology
    Replies: 7
    Last Post: 04-09-2010, 04:33 PM
  3. ConfigServer (Review)
    By zildjian2000 in forum Hosting Security and Technology
    Replies: 0
    Last Post: 04-03-2008, 07:30 PM
  4. ConfigServer.com review
    By BurakUeda in forum Hosting Software and Control Panels
    Replies: 5
    Last Post: 01-30-2007, 03:09 PM
  5. Configserver advice
    By mesobob in forum Hosting Security and Technology
    Replies: 6
    Last Post: 11-01-2006, 11:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •