Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
System Alerts
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-10-24
07:56 PM
2011-10-24
07:56 PM
System Alerts
Alerts? I want to make a plug-in that interacts with the built in Frontview Alerts. Is there any Frontview classes, API's, or systems I could tap into to get access to the system alerts?
Thanks.
Thanks.
Message 1 of 3
Labels:
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-10-25
03:38 PM
2011-10-25
03:38 PM
Re: System Alerts
Ah... I figured it out. I wanted the 'send_email_alert()' method in 'functions'. I was also over-thinking how things work in Unix. I always forget that so much of Linux boils down to Cron jobs and chaining scripts instead of applications.
Eitherway, I still have to finished stubbing in my functionality and see if I can hook everything up successfully. Ideally the 'send alert' functionality wouldn't be so specific to e-mails. Does the ReadyNAS team ever accept diffs from the community about proposed rewrites to the Frontview?
I'll post back when I have something running...
Cheers.
-i
Eitherway, I still have to finished stubbing in my functionality and see if I can hook everything up successfully. Ideally the 'send alert' functionality wouldn't be so specific to e-mails. Does the ReadyNAS team ever accept diffs from the community about proposed rewrites to the Frontview?
I'll post back when I have something running...
Cheers.
-i
Message 2 of 3
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-10-25
11:37 PM
2011-10-25
11:37 PM
Re: System Alerts
Well... relatively productive day. I figured out all the Twitter stuff I needed too... I'm stuck with getting all the CPAN modules running on the ReadyNAS, but my script is running decently. Getting all the CPAN modules to build properly is the game plan for tomorrow. Building the 7 or so needed libraries by hand seems like a huge waste of time, but I don't know another way. The dev forums seem pretty dead right now.
For testing sake I made a fake bootstrap.sh script that simulates an alert message on the ReadyNAS. The bootstrap calls into my 'fake_functions' sh script that is supposed to emulate the real 'functions' script in Frontview. In the send_email_alert() method I'm going to add my perl script call with the e-mail body as the argument.
Here is a screenshot of my ReadyNAS's twitter feed after my perl script ran. Sadly the script is running in Perl on OSX, but hopefully by tomorrow I can do the same thing via the ReadyNAS.
-i
For testing sake I made a fake bootstrap.sh script that simulates an alert message on the ReadyNAS. The bootstrap calls into my 'fake_functions' sh script that is supposed to emulate the real 'functions' script in Frontview. In the send_email_alert() method I'm going to add my perl script call with the e-mail body as the argument.
Here is a screenshot of my ReadyNAS's twitter feed after my perl script ran. Sadly the script is running in Perl on OSX, but hopefully by tomorrow I can do the same thing via the ReadyNAS.
-i
Message 3 of 3