[naemon-dev] livestatus broker module commented in naemon.cfg - naemon-0.1.0_20140212-1.el6.x86_64

Robin Sonefors ozamosi at flukkost.nu
Mon Feb 17 09:16:22 CET 2014


Hi Deepak,

I thought Sven fixed that problem after you reported it with 958872f 
(issues are easier managed if you report them on github)  - the problem 
seems to have been that it was commented out on upgrades. Does the grep 
mean that it was commented out again (which it shouldn't be), or that it 
was commented out before and didn't fix itself (which I think is OK)?

On 02/17/2014 01:22 AM, Deepak Kosaraju wrote:
> Hi any update on fixing this, I haven’t heard any update since my last posting on same topic where I was using(naemon-0.1.0_20140212-1.el6.x86_64). I yum update this morning and thought u might have pushed the patch. AYK without loading of livestatus broker dashboard is useless.
>
> [root at naemon1 naemon]# rpm -qa | grep naemon
> naemon-thruk-0.8.0-1.el6.x86_64
> naemon-core-0.8.0-1.el6.x86_64
> naemon-thruk-libs-0.8.0-1.el6.x86_64
> naemon-thruk-reporting-0.8.0-1.el6.x86_64
> naemon-livestatus-0.8.0-1.el6.x86_64
> naemon-0.8.0-1.el6.x86_64
>
> [root at naemon1 naemon]# grep live naemon.cfg
> #broker_module=/usr/lib64/naemon/livestatus.o /var/cache/naemon/live
>
> [root at naemon1 naemon]# sed -i '/live/s/^#//g' naemon.cfg
> [root at naemon1 naemon]# service naemon restart
> Stopping naemon:
>   ... waiting
> Starting naemon:                                           [  OK  ]
>
>
> [root at naemon1 naemon]# tail -n20 /var/log/naemon/thruk.log
> [2014/02/16 19:15:55][naemon1.dsk.us][INFO][Thruk.Controller.remote] started (1341)
> [2014/02/16 19:16:00][naemon1.dsk.us][INFO][Thruk.Utils] 254 templates precompiled in 4.87s
> [2014/02/16 19:18:06][naemon1.dsk.us][ERROR][Thruk.Controller.error] No Backend available
> [2014/02/16 19:18:06][naemon1.dsk.us][ERROR][Thruk.Controller.error] on page: http://nae1/thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail
> [2014/02/16 19:18:06][naemon1.dsk.us][ERROR][Thruk.Controller.error] Naemon: ERROR: failed to open socket /var/cache/naemon/live: No such file or directory (/var/cache/naemon/live)
> [root at naemon1 naemon]# date
> Sun Feb 16 19:20:13 EST 2014
>
> With Regards
> Deepak Kosaraju
>
> On Feb 12, 2014, at 12:40 PM, Deepak Kosaraju <deepak.kosaraju1 at gmail.com> wrote:
>
>> This mooring I updated to naemon-0.1.0_20140212-1 using yum and it was found the livestatus broker_module is commented in naemon.cfg
>>
>> # EVENT BROKER MODULE(S)
>> # This directive is used to specify an event broker module that should
>> # by loaded by Naemon at startup.  Use multiple directives if you want
>> # to load more than one module.  Arguments that should be passed to
>> # the module at startup are seperated from the module path by a space.
>> #
>> # Example:
>> #
>> #   broker_module=<modulepath> [moduleargs]
>>
>> #broker_module=/usr/lib64/naemon/livestatus.o /var/cache/naemon/live
>> #broker_module=/somewhere/module1.o
>> #broker_module=/somewhere/module2.o arg1 arg2=3 debug=0
>>
>>
>> Before:
>> [1392226269] Naemon 0.1.0_20140212 starting... (PID=1630)
>> [1392226269] Local time is Wed Feb 12 12:31:09 EST 2014
>> [1392226269] LOG VERSION: 2.0
>> [1392226269] qh: Socket '/var/lib/naemon/naemon.qh' successfully initialized
>> [1392226269] qh: core query handler registered
>> [1392226269] nerd: Channel hostchecks registered successfully
>> [1392226269] nerd: Channel servicechecks registered successfully
>> [1392226269] nerd: Channel opathchecks registered successfully
>> [1392226269] nerd: Fully initialized and ready to rock!
>> [1392226269] wproc: Successfully registered manager as @wproc with query handler
>> [1392226269] wproc: Registry request: name=Core Worker 1633;pid=1633
>> [1392226269] wproc: Registry request: name=Core Worker 1634;pid=1634
>> [1392226269] wproc: Registry request: name=Core Worker 1631;pid=1631
>> [1392226269] wproc: Registry request: name=Core Worker 1632;pid=1632
>> [1392226269] Successfully launched command file worker with pid 1636
>>
>> After:
>> [1392226332] Naemon 0.1.0_20140212 starting... (PID=1704)
>> [1392226332] Local time is Wed Feb 12 12:32:12 EST 2014
>> [1392226332] LOG VERSION: 2.0
>> [1392226332] qh: Socket '/var/lib/naemon/naemon.qh' successfully initialized
>> [1392226332] qh: core query handler registered
>> [1392226332] nerd: Channel hostchecks registered successfully
>> [1392226332] nerd: Channel servicechecks registered successfully
>> [1392226332] nerd: Channel opathchecks registered successfully
>> [1392226332] nerd: Fully initialized and ready to rock!
>> [1392226332] wproc: Successfully registered manager as @wproc with query handler
>> [1392226332] wproc: Registry request: name=Core Worker 1708;pid=1708
>> [1392226332] wproc: Registry request: name=Core Worker 1706;pid=1706
>> [1392226332] wproc: Registry request: name=Core Worker 1705;pid=1705
>> [1392226332] wproc: Registry request: name=Core Worker 1707;pid=1707
>> [1392226332] livestatus: Livestatus 0.1.0_20140212-naemon by Mathias Kettner. Socket: '/var/cache/naemon/live'
>> [1392226332] livestatus: Please visit us at http://mathias-kettner.de/
>> [1392226332] livestatus: Finished initialization. Further log messages go to /var/log/naemon/livestatus.log
>> [1392226332] Event broker module '/usr/lib64/naemon/livestatus.o' initialized successfully.
>> [1392226332] Successfully launched command file worker with pid 1710
>> [1392226332] TIMEPERIOD TRANSITION: 24x7;-1;1
>> [1392226332] TIMEPERIOD TRANSITION: 24x7_sans_holidays;-1;1
>> [1392226332] TIMEPERIOD TRANSITION: none;-1;0
>> [1392226332] TIMEPERIOD TRANSITION: thruk_24x7;-1;1
>> [1392226332] TIMEPERIOD TRANSITION: us-holidays;-1;0
>> [1392226332] TIMEPERIOD TRANSITION: workhours;-1;1
>>
>> Thruk Error:
>> ==> /var/log/naemon/thruk.log <==
>> [2014/02/12 12:18:18][naemon1.dsk.us][INFO][Thruk.Utils] 254 templates precompiled in 2.08s
>> [2014/02/12 12:29:23][naemon1.dsk.us][ERROR][Thruk.Controller.error] No Backend available
>> [2014/02/12 12:29:23][naemon1.dsk.us][ERROR][Thruk.Controller.error] on page: http://nae1/thruk/cgi-bin/tac.cgi
>> [2014/02/12 12:29:23][naemon1.dsk.us][ERROR][Thruk.Controller.error] Naemon: ERROR: failed to open socket /var/cache/naemon/live: No such file or directory (/var/cache/naemon/live)
>>
>>
>> With Regards
>> Deepak Kosaraju
>>
>
>


More information about the Naemon-dev mailing list