1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unmaintained Munin Graph Users / Guests Online 2.2

Plot users / guests online on your forum with Munin

  1. MattW

    MattW Well-Known Member

    MattW submitted a new resource:

    Munin Graph Users / Guests Online (version 1.0) - Plot users / guests online on your forum with Munin

    Read more about this resource...
     
    RobParker likes this.
  2. Tracy Perry

    Tracy Perry Well-Known Member

    Would LOVE to use this, but took the text, saved it to a file, made it executable (same properties as all the other modules), edited the site information and it has not ran at all (nothing shows up on my Munin stats page). That is even with me logged in just in case it had to have a user to do it. Any suggestions to look for errors?
     
  3. MattW

    MattW Well-Known Member

    Did you create the symbolic link, and restart munin? Are you seeing the graph (even if it's empty)?
     
  4. Tracy Perry

    Tracy Perry Well-Known Member

    Yep, screenshot from MC below with the one on the left the symlink, the one on the right is the actual file. All other perl modules are showing up, but this doesn't even show anywhere on Munin's status page. I even went so far as to restart the entire VPS. Running on a Debian 6.0 VPS, with Munin set as the default installation routes.

    [​IMG]
     
  5. MattW

    MattW Well-Known Member

    So do you even see the graph inside munin? Are there any errors in the munin logs?
     
  6. The Forum Heroes

    The Forum Heroes Well-Known Member

    Thanks Matt! Will install this today.
     
    MattW likes this.
  7. Tracy Perry

    Tracy Perry Well-Known Member

    Error output from twowheeldemon_users:
    2013/03/17-06:30:07 [4880] <--->syntax error at /etc/munin/plugins/twowheeldemon_users line 63, near "print"
    2013/03/17-06:30:07 [4880] <--->syntax error at /etc/munin/plugins/twowheeldemon_users line 68, near "}"
    2013/03/17-06:30:07 [4880] <--->Execution of /etc/munin/plugins/twowheeldemon_users aborted due to compilation errors.


    After looking at the code, it "looks" like there were some strange characters in the blank lines (strange by they were a period but were almost invisible). I have removed those and am restarting the VPS again to see if that solves it.
     
  8. MattW

    MattW Well-Known Member

    There are only 64 lines of code in that file, but yours in saying there are errors on line 68. Can you copy / paste the contents of the file in here please?
     
  9. Tracy Perry

    Tracy Perry Well-Known Member

    Think that "may" be the problem.. I cut and pasted from here to there. I just downloaded the text file attachment here, sftp'd it to the site, edited it there and rebooted the VPS.. let's see what that does.
     
  10. The Forum Heroes

    The Forum Heroes Well-Known Member

    Those damn code gremlins!
     
    MattW and Tracy Perry like this.
  11. Tracy Perry

    Tracy Perry Well-Known Member

    Can't locate object method "new" via package "LWP::UserAgent" at /etc/munin/plugins/twowheel_users line 50.

    Is what I'm getting now. Permission error one a directory?
     
  12. MattW

    MattW Well-Known Member

    You are missing a perl package. You need to install UserAgent via cpan

    http://search.cpan.org/~gaas/libwww-perl-6.05/lib/LWP/UserAgent.pm
     
  13. Tracy Perry

    Tracy Perry Well-Known Member

    Just did an install via aptitude and this is what it pulled
    libfont-afm-perl{a} libhtml-format-perl{a} libhtml-parser-perl{a} libhtml-tagset-perl{a} libhtml-tree-perl{a} liblwp-useragent-determined-perl libmailtools-perl{a} liburi-perl{a} libwww-perl{a}
    I'm going to assume that the highlighted one is the appropriate debian package for it. Not real comfortable with compiling from remote yet. o_O
     
  14. MattW

    MattW Well-Known Member

    I'm not sure TBH, I use CentOS and not debian
     
  15. Tracy Perry

    Tracy Perry Well-Known Member

    It should be... here is the debian descriptor:


    libwww-perl (also known as LWP) is a collection of Perl modules that provide a simple and consistent programming interface (API) to the World-Wide Web. The main focus of the library is to provide classes and functions that allow you to write WWW clients. It also contains general purpose modules, as well as a simple HTTP/1.1-compatible server implementation.


    >Houston, there is apparently a bug in the editor<....... Just went to add more onto this post and could not add to the last line.

    What I was going to say is it IS now showing, but the users amounts are all -nan, and I have myself and two users online for the last 20 minutes. No errors showing in any of the munin logs now.
     
  16. Biker

    Biker Well-Known Member

    Oooof. Recipe for disaster. I've learned the hard way to do edits locally, double check 'em, then upload them to the server. Modifying things on the fly on a production server only leads down one road. And it's not the scenic route! :ROFLMAO:
     
    MattW likes this.
  17. Tracy Perry

    Tracy Perry Well-Known Member

    yeah, I do that for the important stuff... edit it on the Mac, then sftp it to the server and do what else I need to via ssh. Was in a hurry... if I had of pasted it into joe it would have worked, but I did it into the default MC editor - big no-no. :eek:
     
  18. Tracy Perry

    Tracy Perry Well-Known Member

    Well, I know I have everything I need installed, because when I leave your domain listed it pulls your information when ran from a command line. Place my domain (http://twowheeldemon.com) in there and all I get back is the "U", which is apparently indicating that it can't read it. All I have running is xenPorta, but even with disabling it still did not get a response from it. I'll continue and try to muddle my way through it, but by all rights it "should" be working.
     
  19. Biker

    Biker Well-Known Member

    If mod_security is running, check your logs. I had to disable a rule in order for Munin to run properly.
     
  20. Tracy Perry

    Tracy Perry Well-Known Member

    Munin is catching all my other stuff (about 23 plugins), and there are not errors in the munin-node log. It makes the screen into munin's html, just cannot pull the data. :( I'll continue digging around in the log files (have already been playing in auth.log, all of munins logs, syslog, etc). The mod_security is not being used on Apache2 at this time.
     

Share This Page