| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hello, After some googeling, and reading the very nice article on AFP548. I made the following plist, in order to be able to start MRTG on the right interval. I also made a small bash script to start the mrtg program, with the right config file. plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.hdl.mrtg.periodic-5min</string> <key>OnDemand</key> <false/> <key>Program</key> <string>/opt/local/bin/mrtg</string> <key>ProgramArguments</key> <array> <string>/Library/WebServer/Documents/mrtg/mrtg.cfg</string> </array> <key>RunAtLoad</key> <true/> <key>ServiceDescription</key> <string>Starting MRTG on an interval of 5 mins</string> <key>StartCalendarInterval</key> <dict> <key>Minute</key> <integer>5</integer> </dict> </dict> </plist> bash script: #!/bin/bash # Script to start mrtg /opt/local/bin/mrtg "/Library/WebServer/Documents/mrtg/mrtg.cfg" Can some of you tell me what I did wrong? It is just not working right. Every time I call the webpage generated from MRTG, it states that in that minute the las run was: Excerpt: The statistics were last updated Tuesday, 8 November 2005 at 7:44, It is now 7:44....... So I'm wandering what did I do wrong? Thanks in advance --- Arnold Nefkens Nefkens Advies de Bongerd 13 4213 CW Dalem Apple Certified Desktop Technician Apple Certified Portable Technician Apple Certified Helpdesk Specialist Apple Certified Technical Coordinator Apple Certified System Administrator Confidentiality Warning ________________________ This e-mail message contains confidential information which is intended for the use of the person to whom it is addressed. If you received it in error,please notify the sender and delete the material from any computer. Any disclosure, re-transmission, dissemination or any other use of this information is strictly prohibited. |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macos-x-server/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.