Welcome to Pandora FMS Community › Forums › Community support › Advanced troubleshooting › Non-Initialized Modules
-
Non-Initialized Modules
Posted by franklin-harry on December 17, 2015 at 11:41Hi,
every time I created module in agent I amĀ getting following error
Non-Initialized Modules
so please helpĀ me how to solve.emilio replied 9 years, 1 month ago 2 Members · 9 Replies -
9 Replies
-
-
-
::
Hello Franklin Harry,
Yeah, I see… Have you tried to force the page to be refreshed?
When a module is not giving any data back is probably because there’s a problem with the module itself, like not being correctly defined or something.
Remember to always force and refresh the agent by going to “View”, and then pressing “Force” and “Refresh” repetely.
Hope this helps š If not, send me back a screenshot of the module itself.Regards,
Emilio. -
::
Hi,
here my custom module which I was configured
module_begin
module_name REDIS_Daemon
module_type generic_proc
module_exec ps -Af | grep redis
module_endand
module_begin
module_name WEB_Hits
module_type generic_data_inc
module_exec cat /var/log/httpd/access_log
module_endso please suggest me how to correctly configure.
-
::
Hi Franklin,
You’re facing a problem with the outcome there!
I mean, have you tried the execution of the “exec” line at the command line?
For example, if you try “ps -Af | grep redis” it will probably throw some lines to you, string data, and when monitoring you’re giving it the “generic_proc” type of data, string would be better, that way, you’ll be able to read those lines. Same goes for the second one, “WEB_hits”.Anyway, what are you trying to monitor?
I’m talking about what kind of information do you want to control?
Modules are created so they go to criticial or warning when something happens, like for example the number value of the ram that’s free at the very moment, goes higher than limit.
I think that there’s no point of creating modules such the ones that you attached, so I think it’ll be better for me if you could tell me what you want to monitor šSorry about the rock that I throw at you, this post took longer than it should xD
Regards,
Emilio. -
-
::
Hi Franklin,
You were doing it right about the module type, it may be “generic_proc”.
To check if a service is up or down, you must know the output in advantage, the best way of doing so would be something like this:
“ps aux | grep mysql | grep -v grep | wc -l” (given the case of mysql). If the number given is higher than 0, nothing will happen (because is up).Regards,
Emilio. -
-
::
Hi Franklin,
It’ll be as easy as following this path: Alerts > Actions and creating one of your own (or using the one already given, “Mail to XXX”).
I highly recommend you to use the Wiki for further information: http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:AlertsRegards,
Emilio.