Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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
Re^2: Return-code in POE::Compoent::Server::NRPE
by chris01 (Novice) on Nov 08, 2012 at 19:02 UTC
    hello!

    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
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 irc.perl.org #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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2014-08-27 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (250 votes), past polls