Hello everyone. I appologize for my first post to your site is a question, as I have no perl wisdom to offer in return I hope to one day be able to partake more reciprocally in your comunitee. My question is a difficult one, for me a perl newbie. I am looking for a script written in perl that I could run in a cron job or some other mechanism that would periodically check if certain applications/services were running, probably using "ps-ef |grep". If it did not find the requested application I would need it to send an alert using an snmp agent to a remote snmp manager listening on a remote machine. Perhaps this is not the best method in all instances but I have been asked to find a script that could fullfill these requierments. Have any of you seen such a script on the net? If the script isn't perfect I would try to modify it, but currently my perl knowledge is nowhere near evolved enough for me to come up with something on my own. Thanks in advance. If you have any questions about my request please let me know.

In reply to snmp agent on linux in perl by ignuu2

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.