Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Sys::Syslog help

by Cat Herder (Initiate)
on Nov 25, 2012 at 00:08 UTC ( #1005439=perlquestion: print w/ replies, xml ) Need Help??
Cat Herder has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I am trying to send event messages from one server to another, but they are not going through.

Is there any way to have Sys::Syslog spit out an error as to why it is failing? This is obviously a system issue because I moved the script to another box, and it works fine

Thanks,

Cat Herder

Comment on Sys::Syslog help
Re: Sys::Syslog help
by Tommy (Chaplain) on Nov 25, 2012 at 04:02 UTC

    What you've described is a system issue... and you want Perl to point out what's wrong with the system, essentially. The problem with this is simply that the module doesn't appear to have been written to troubleshoot system configurations for syslog. It tests for certain conditions and failure scenarios and provides error messages for such (you can see that from the source code.) However this is limited to only the problems it can detect. Issues further upstream in your system configuration aren't even examined by this module.

    After having looked at the source code briefly myself, I don't see anything there which is going to help you troubleshoot your system setup.

    I feel your pain, and I'm sorry it's not working for you. Unfortunately I must say that I don't think approaching the problem with Sys::Syslog is the right way to troubleshoot the root cause. Best to work it out from the system level.

    Check your firewall rules on all machines, and vimdiff the config files. You'll figure it out, but not by using this module.

    --
    Tommy
    $ perl -MMIME::Base64 -e 'print decode_base64 "YWNlQHRvbW15YnV0bGVyLm1lCg=="'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2014-12-27 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls