|
|
| Author |
Message |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Fri Jul 13, 2007 9:51 am Post subject: Monitor hack and better weathermap tab |
|
|
I needed to change the Monitor plugin just a bit for my employer, so here is the code - in case anyone would like it. I have included a screenshot as well. I also fixed my weathermap tab, so it matches the others. That is also attached.
The changes to monitor are three columns in the host table of the database.
- monitor_location (physical location of the device).
- monitor_purpose (the purpose, or applications running on the device).
- monitor_priority (the importance of the device).
Also, the view has changed to accommodate the idea of 'priority'.
Whole idea here was that manager types could quickly look at a page and know what servers in our data center were down in case of an outage, so we could get the 'high priority' ones back up quickly.
May not be useful to most, but maybe someone can use the code.
WARNING: I did not integrate this functionality into the existing code in a 'view' or something - like I have seen. In interest of time, I just gutted the code and modified what I needed.
Feel free to use it as you will.
-chadd
| Description: |
| Screenshot of the hacked plugin. |
|
| Filesize: |
82.23 KB |
| Viewed: |
1466 Time(s) |

|
| Description: |
|
| Filesize: |
1.97 KB |
| Viewed: |
1466 Time(s) |

|
| Description: |
| The hacked monitor plugin |
|
 Download |
| Filename: |
monitor.zip |
| Filesize: |
33.38 KB |
| Downloaded: |
97 Time(s) |
|
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Mon Jul 16, 2007 7:59 am Post subject: |
|
|
| found a bug.. Line number 179 of monitor.php needs an '$x++;'.
|
|
| Back to top |
|
 |
mcutting Cacti Guru User
Joined: 16 Oct 2006 Posts: 1007
|
Posted: Tue Jul 17, 2007 4:02 am Post subject: |
|
|
| Chadd - nice changes. have you had a look at the modified monitor plugin over on cactiusers.org ? Would be great if you could merge your changes into this one (I ask, because I'm using this modified version).
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2248 Location: United Kingdom
|
Posted: Tue Jul 17, 2007 5:28 am Post subject: |
|
|
| What is actually different about the weathermap tab?
|
|
| Back to top |
|
 |
mcutting Cacti Guru User
Joined: 16 Oct 2006 Posts: 1007
|
Posted: Tue Jul 17, 2007 5:35 am Post subject: |
|
|
| I thought the same thing...
|
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Tue Jul 17, 2007 11:42 am Post subject: |
|
|
The weathermap tab which came with the plugin had some kind of transparency problem, that made the 'transparent' part look bad in IE6. I personally don't use Windows myself , but everyone else in my company does - so I noticed. Maybe this was fix a while back and I never got the new image... Either way, that was the problem.
As far as merging the changes I made into the one that is currently on the cactiuser.org forums - I will make an attempt if I get the time. I am very busy right now, which is why I didn't do it like that in the first place. Thanks for you comments.
-chadd.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2248 Location: United Kingdom
|
Posted: Tue Jul 17, 2007 12:41 pm Post subject: |
|
|
| chadd wrote: | The weathermap tab which came with the plugin had some kind of transparency problem, that made the 'transparent' part look bad in IE6. I personally don't use Windows myself , but everyone else in my company does - so I noticed. Maybe this was fix a while back and I never got the new image... Either way, that was the problem. |
Aaah. OK, it was fixed in 0.9. IE6 has shoddy support for transparent PNGs, so I switched back to that 80s classic - GIFs.
|
|
| Back to top |
|
 |
chadd Cacti User
Joined: 24 Mar 2005 Posts: 194 Location: Ocoee, Florida
|
Posted: Tue Jul 17, 2007 1:20 pm Post subject: |
|
|
| Hahaha. And I haven't upgraded yet... Go figure..
|
|
| Back to top |
|
 |
|