Hi Christoph,

1. Consult the cmk debug file for the exact error, configure one if you
have none.
2. Better open a thread on cmk list, this list is for threads regarding OMD
as distribution. On CMK list all users are using CMK ;-)

Hth,
Marcel

Christoph Blau <[email protected]> schrieb am Fr., 19. Dez. 2014 09:14:

> Okay, so I got a bit further...
>
> On the OMD host I added
>
> ~/local/share/check_mk/checks/nginx_status
> ~/local/share/check_mk/checkman/nginx_status
> ~/local/share/check_mk/agents/plugins/nginx_status
>
>
> On the client I have
>
> # cat /etc/check_mk/nginx_status.cfg
>
> servers = [
>     {
>        "address"  : "localhost",
>        "protocol" : "http",
>        "port"     : "30000",
>     },
> ]
>
> Now I can execute the script
>
> # /usr/lib/check_mk_agent/plugins/nginx_status
> <<<nginx_status>>>
> localhost 30000 Active connections: 1
> localhost 30000 server accepts handled requests
> localhost 30000  92663574 92663574 92655564
> localhost 30000 Reading: 0 Writing: 1 Waiting: 0
>
> But now when I inventorize the host I get 'UNKNOWN - invalid output from
> agent or error in check implementation'
>
> UNKNnginx_statuslocalhost:30000Nginx localhost:30000 StatusUNKNOWN -
> invalid output from agent or error in check implementation
>
> Any advise?
>
> Many Thanks,
> Christoph
>
> Christoph Blau
> System Administrator
> foodpanda | hellofood
>
> Mail: [email protected]  | Skype: cblaupanda
>
> Foodpanda GmbH | Johannisstr. 20 | 10117 Berlin | Germany
>
> Sitz der Gesellschaft | Berlin, AG Charlottenburg
> HRB 138224 B | USt-ID-Nr | DE 283789080
>
> Geschäftsführer | Benjamin Bauer, Ralf Wenzel
>
> Download and rate our app;
>
> [image: Beschreibung: Beschreibung: Beschreibung:
> http://d2u5mj6wv6e3dc.cloudfront.net/cms/static/newsletter/image/googleplay.png]
> <http://goo.gl/CVVt7i>  [image: Beschreibung: Beschreibung: Beschreibung:
> http://static.foodpanda.sg/layout/themes/margherita/images/en/app_store.png?v=20140128021552]
> <http://goo.gl/b62AXY> [image: Beschreibung: Beschreibung:
> http://i.msdn.microsoft.com/dynimg/IC668481.png]
> <http://www.windowsphone.com/en-us/store/app/foodpanda-food-delivery/3f6e1d24-c15e-45f6-862d-fe4eb34f5b0f>
>
> CONFIDENTIALITY NOTICE: This message (including any attachments) is
> confidential and may be privileged. It may be read, copied and used only by
> the intended recipient. If you have received it in error please contact the
> sender (by return e-mail) immediately and delete this message. Any
> unauthorized use or dissemination of this message in whole or in parts is
> strictly prohibited.
>
>
> On 12 December 2014 at 12:42, Christoph Blau <[email protected]> wrote:
>>
>> Hi There
>>
>> I am running OMD 1.21.20141204 on Ubuntu 12.04.5 LTS
>>
>> Looking at the documentation (
>> https://mathias-kettner.de/checkmk_check_nginx_status.html) I assumed
>> the nginx_status check should work out of the box. To my surprise I could
>> not find it in share/check_mk/agents
>>
>> I checked out the check_MK source from github and was able to locate the
>> corresponding files and copied them to the appropriate locations
>>
>> local/share/check_mk/agents/nginx_status
>> local/share/check_mk/checkman/nginx_status
>> local/share/check_mk/checks/nginx_status
>> local/share/check_mk/pnp-templates/check_mk-nginx_status.php
>>
>>
>> nginx_status is now a recognized check on my system
>>
>> $ cmk -L | grep nginx
>> nginx_status                     tcp     yes    yes    Nginx %s Status
>>
>>
>> But when I inventorize a host I do not get the anticipated results
>>
>> $ cmk --checks=nginx_status -vI nginxhost01
>> Inventorizing nginxhost01.
>>
>>
>> on the remote host
>>
>> # curl http://localhost:30000/nginx_status
>> Active connections: 13
>> server accepts handled requests
>>  4542239 4542239 4541116
>> Reading: 0 Writing: 7 Waiting: 4
>>
>>
>> I also created the config file
>>
>> $ cat etc/check_mk/nginx_status.cfg
>> Servers = [
>>
>>
>>     {
>>
>>
>>        "protocol"  : "http",
>>
>>
>>        "address"  : "localhost",
>>
>>
>>        "port"        : 30000,
>>
>>
>>        "page"      : "nginx_status",
>>
>>
>>     },
>>
>>
>> ]
>>
>> I am not sure why the check is not being deployed. Can I please get some
>> advise?
>>
>> Kind regards,
>>
>> Christoph Blau
>>
> _______________________________________________
> omd-users mailing list
> [email protected]
> http://lists.mathias-kettner.de/mailman/listinfo/omd-users
>
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users

Reply via email to