project-hatohol / hatohol

A unified manager of monitoring software
http://www.hatohol.org/
Other
89 stars 29 forks source link

[HAPI 2.0] Documents for registering a plugin #1459

Open ashie opened 9 years ago

ashie commented 9 years ago
masa0612 commented 8 years ago

How to provide WebUI plugin

What's that mean? Idon't know WebUI plugin.

cosmo0920 commented 8 years ago

Idon't know WebUI plugin.

They are put following directory: https://github.com/project-hatohol/hatohol/tree/master/client/static/js.plugins

masa0612 commented 8 years ago

Oh, I knew it first time! Thank you!

masa0612 commented 8 years ago

FYI @teruo-oshida san

The following commits will be refarence of the How to provide server type sql and How to package a plugin.

https://github.com/project-hatohol/hatohol/commit/dac4b3f1d588d1b878d235eafef3334a972ad8b0 https://github.com/project-hatohol/hatohol/commit/1d827ee48082a16d9d1ddd91fc5d9dc440a6184b https://github.com/project-hatohol/hatohol/commit/bf20231420918623394ad0296a1e45f56328d2f7

cosmo0920 commented 8 years ago

@Mnakagawa san, Could you add hap2_nagios_livestatus.js into plugins.js directory?

I think that this js file should contain like this:

(function(hatohol) { 
   var self = hatohol.registerPlugin("6f024e3e-a2cd-11e5-bfc7-d43d7e3146fb", 
                                    "Nagios LiveStatus (HAPI2)"); 
}(hatohol)); 
masa0612 commented 8 years ago

That right! I did not know js.plugin, so I forgotten to add hap2_nagios_livestatus.js. I will commit that same as your suggestion.

masa0612 commented 8 years ago

https://github.com/project-hatohol/hatohol/tree/create-hap2-document

まだ作成途中だけど,とりあえず