On Mon, Sep 12, 2005 at 02:38:58PM -0500, Tim Carr wrote:
>  - I've not had any PHP experience.  Does anyone have an example php
> script that would do something like that?
Look at the email.inc.php Instead of the mail command you could
use exec()

>  - I'm having trouble understanding how the existing PHP action scripts
> (i.e., email.inc.php) are getting their information about what is down.
> Is there some sort of documentation about that?
Hmm, that section needs some work!
Time to fire up vim.

Javier evilly uses extract() in that example.

The action function gets one parameter, which is an array of
arrays. The arrays are:
  $data['parameters'] = an array of the user and action parameters,
  defined in the gui
  $data['alarm'] = the usual alarm values
  $data['interface'] = the usual interface vaues

See
http://www.jffnms.org/docs/expanding.html#sec:commonparms
for that those values are.

>  
> Thanks,
> Tim Carr
> Buchanan Associates
>  

-- 
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE         Debian developer
csmall at : enc.com.au                      ieee.org           debian.org


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to