Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Return-code in POE::Compoent::Server::NRPE

by rcaputo (Chaplain)
on Nov 08, 2012 at 18:14 UTC ( #1002957=note: print w/ replies, xml ) Need Help??

in reply to Return-code in POE::Compoent::Server::NRPE

Edit: There might be a documentation error. It may be necessary to exit(2) from the test program rather than return it.

Original: The sub you've written above returns 2. What do you expect it to do? What unexpected thing happens instead? To where should the return value go?

Comment on Re: Return-code in POE::Compoent::Server::NRPE
Replies are listed 'Best First'.
Re^2: Return-code in POE::Compoent::Server::NRPE
by chris01 (Novice) on Nov 08, 2012 at 19:25 UTC
    no, exit does not help :-(

      Congratulations! You've found a bug in the module. Three of us are working on it over on #poe. The author is applying pull requests almost as fast as we can send them. You should see a new release on CPAN soon.

        thank you very much!

        will be happy if I can use the module instead of installation a nagios nrped.

        best regards, chris
        thank you very much for your help!! its working now as expected afer updating from 0.16 to 0.18. best regards, chris
Re^2: Return-code in POE::Compoent::Server::NRPE
by chris01 (Novice) on Nov 08, 2012 at 19:02 UTC

    the sub return 2 but in the NRPE-response is 0. I need to set the nrpe-response-code. the response-text is set correctly (print stdout)

    I am not familiar with Perl POE but as described in the cpans-site of POE::COmponent::Server::NRPE there is a fuction return_result.

    but I have no idea how to use this funktion. think has something todo with POE sessions.

    best regards, chris

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002957]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2015-11-26 15:14 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (701 votes), past polls