naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
153 stars 63 forks source link

external command RESTART_PROGRAM with comments #119

Closed VladimirBilik closed 8 years ago

VladimirBilik commented 9 years ago

Hi, I would like to put a comment for external command "RESTART_PROGRAM", just for information why someone/something have issued it. Is it possible to add it as parameter in this command please?

BR,

Vladimir

catharsis commented 8 years ago

I realise this answer is very late, but here goes anyway;

We don't have any plans on adding this right now, no. However, if you really need it, you should be able to implement this yourself through a NEB module, making use of the command_create/command_register (https://github.com/naemon/naemon-core/blob/master/src/naemon/commands.h#L108) family of functions. The commands API is fairly stable, and I don't expect it change any time soon.

Depending on what you want to do with your comment, you could just either call the command handler for RESTART_PROGRAM or duplicate it within your module.