Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Non-Initialized Modules
#1
Hi,

every time I created module in agent I am  getting following error
Non-Initialized Modules
so please help  me how to solve.
 Reply
#2
Hello Franklin Harry,

Do you have any server down? (You'll see a red 'X' at the right-top of the pandora if that's the case).
Maybe server hostname has been changed from localhost to something else?

Regards,
Emilio.
 Reply
#3
I didn't change any host name and all hosts are connected well.Please check following screen shot.



Attached Files


.png   Screenshot from 2015-12-17 13-49-26.png (Size: 235.8 KB / Downloads: 82)
 Reply
#4
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 Wink If not, send me back a screenshot of the module itself.

Regards,
Emilio.
 Reply
#5
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_end



and

module_begin
module_name WEB_Hits
module_type generic_data_inc
module_exec cat /var/log/httpd/access_log
module_end


so please suggest me how to correctly configure.
 Reply
#6
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 Wink

Sorry about the rock that I throw at you, this post took longer than it should xD

Regards,
Emilio.
 Reply
#7
Hi,

I planning to monitor running processes so what can I give input there? please can you guide me.
 Reply
#8
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.
 Reply
#9
Hi,

How to setup alerts with custom alert template or clear alert email. I attached screen shot for your reference so please guide me.


Attached Files


.gif   notification-multi-en-service-alert.gif (Size: 26.1 KB / Downloads: 63)
 Reply
#10
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?tit..._en:Alerts

Regards,
Emilio.
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes