I recently heard about psmon from an article on linux.com. Having been searching for a system monitor with similar features I decided to give psmon a try. My problem is that the installation instructions weren't exactly detailed enough for a complete n00b. I have psmon currently installed, and it is working, but there were some errors with the installation. So I was hoping someone could walk me through the process of installing psmon on a kubuntu machine and hopefully point out my mistakes.

I'm currently running Kubuntu 8.04 with KDE 4.1. To begin with I configured CPAN, no errors there. Then I installed the following modules using "perl -MCPAN -e 'install moduleName'"

Config::General
Proc::ProcessTable
Net::SMTP
Unix::Syslog
Getopt::Long

And then I probably did something completely unnecessary, but then again I had no idea whether psmon was already installed at this point. So I ran the install.sh script that's included in the psmon download from psmon.com. Does one of the modules above include psmon? If I install all of them do I need to bother with the install.sh script?

After installing everything I setup the psmon.conf file in the /etc folder. I then ran psmon --daemon which gave me an error stating that the psmon.conf file couldn't be found in the /home/username/etc folder. Why would it be looking in my home folder for the conf file? And how can I change it to look for it at /etc/psmon.conf?

After creating an etc folder in my home directory and copying the conf file I was able to run the background daemon successfully. However I was also presented with another questionable message from the terminal.

psmon6646: Forking background daemon, process 6647.
psmon6647: Forking second background daemon, process 6648.

Is it normal for it to fork 2 background daemons? And if not, how can I fix this? Thanks for your patience with this complete perl n00b.

In reply to how to install psmon for dummies by whatthe!

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.