[Modularit-users] Services in nagios
Miguel Armas
kuko at canarytek.com
Thu Aug 27 10:42:05 WEST 2009
El 27 de agosto de 2009 07:21, Imobach González
Sosa<imobachgs at banot.net> escribió:
> Hi all,
Hi Imo! ;)
> Ok, here I am with a newbie question. We're deploying ModularIT in a school
> and almost everything seems to work fine. The only thing that I noticed is not
> working (and sure is my fault) is Nagios.
>
> No services have been added to the nagios configuration so it refuses to
> start. I though that puppet will take care of that kind of things so... what I
> am missing?
Nagios services are exported resources, which means that the host that
"owns" that resource export it, the resource is saved in the
storeconfig database, and the Nagios server "collect" all that
exported resources to create the nagios config files.
This behaviour can create a considerable delay before the nagios
config files appear on the nagios server, because the client's puppet
has to run and export the resources, and the nagios server puppet has
to run to collect them.
To debug the problem, you can run puppet on the nagios client in debug
mode (--debug --no-daemonize). Look for any problems related to the
nagios services.
Then check if you see the exported resources in the storeconfig database:
psql puppet
select * from resources where title like 'service:%';
If you see the resources everything is ok in the export.
Now run puppet in debug mode on the nagios server and see if you see
any error message.
Salu2!
--
Miguel Armas <kuko at canarytek.com>
CanaryTek Consultoria y Sistemas SL
ModularIT http://www.modularit.org/
More information about the Modularit-users
mailing list