OpenVZ Forum


Home » General » Support » Munin: Extended Version for old system using user_beancounter.
Munin: Extended Version for old system using user_beancounter. [message #22762] Fri, 02 November 2007 23:37 Go to next message
floogy is currently offline  floogy
Messages: 11
Registered: November 2007
Location: Koblenz Germany
Junior Member
Hello,

I got problems to get graphs with the wiki plugin for munin:
http://wiki.openvz.org/Monitoring_openvz_resources_using_mun in

How can I debug this? There are no *.png generated, but html files, without much content:

$ lynx --dump  /var/www/munin/localdomain/localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001.html

   REFRESH(300 sec):
   [1]file://localhost/var/www/munin/localdomain/localhost.localdomain-ve
   bc_numfile_privvmpages_lockedpages_001.html


[2]Overview :: [3]localdomain :: [4]localhost.localdomain ::
vebc_numfile_privvmpages_lockedpages_001
     _________________________________________________________________

   daily graph weekly graph
   monthly graph yearly graph
   'VE bean counters info'
     _________________________________________________________________

   Field Internal name [5]Type Warn Crit
   [6]localdomain :

   This page was generated by [7]Munin version 1.2.5 at 2007-11-03 T
   00:20:36

References

   1. file://localhost/var/www/munin/localdomain/localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001.html
   2. file://localhost/var/www/munin/index.html
   3. file://localhost/var/www/munin/localdomain/index.html
   4. file://localhost/var/www/munin/localdomain/localhost.localdomain.html
   5. file://localhost/var/www/munin/definitions.html#data_types
   6. file://localhost/var/www/munin/localdomain/index.html
   7. http://munin.sourceforge.net/


 [...]   <tr>
      <td><img src="localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001-day.png" alt="daily graph"  /></td>
      <td><img src="localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001-week.png" alt="weekly graph"  /></td>
    </tr>
    <tr>
      <td><img src="localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001-month.png" alt="monthly graph"  /></td>
      <td><img src="localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001-year.png" alt="yearly graph"  /></td>
    </tr>
[...]


but, there are no png-files created:
$ ls -l /var/www/munin/localdomain/localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001*png
ls: /var/www/munin/localdomain/localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001*png: No such file or directory


$ /usr/share/munin/munin-update --debug --nofork --stdout --host localhost.localdomain --service vebc_numfile_privvmpages_lockedpages_001
Nov 03 00:26:00 - [19831] Starting munin-update
Nov 03 00:26:00 - [19831] Processing domain: localdomain
Nov 03 00:26:00 - [19831] Processing node: localhost.localdomain
Nov 03 00:26:00 - [19831] Configuring node: localhost.localdomain
Nov 03 00:26:00 - [19831] Configuring service: localhost.localdomain->vebc_numfile_privvmpages_lockedpages_001
Nov 03 00:26:01 - [19831] Config: graph_title = beancounter for VE001: numfile privvmpages lockedpages
Nov 03 00:26:01 - [19831] Config: graph_category = VE001
Nov 03 00:26:01 - [19831] Config: graph_info = 'VE bean counters info'
Nov 03 00:26:01 - [19831] Configured service: localhost.localdomain -> vebc_numfile_privvmpages_lockedpages_001 (0.43 sec)
Nov 03 00:26:01 - [19831] Configured node: localhost.localdomain (0.49 sec)
Nov 03 00:26:01 - [19831] Fetching node: localhost.localdomain


$ /usr/share/munin/munin-graph  --debug vebc_numflock_numpty_numsiginfo_001 
DEBUG: Expanding specials "".
DEBUG: Checking field lengths "".
DEBUG: Treating fields "".


rrdtool "graph" "--font"
        "LEGEND:7:/usr/share/munin/VeraMono.ttf"
        "--font"
        "UNIT:7:/usr/share/munin/VeraMono.ttf"
        "--font"
        "AXIS:7:/usr/share/munin/VeraMono.ttf"
        "/var/www/munin/localdomain/localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001-month.png"
        "--title"
        "beancounter for VE001: numfile privvmpages lockedpages - by month"
        "--start"
        "-33d"
        "--height"
        "175"
        "--width"
        "400"
        "--imgformat"
        "PNG"
        "--lazy"
        "COMMENT:Last update\: Thu Jan  1 01\:00\:00 1970\r"


rrdtool "graph" "--font"
        "LEGEND:7:/usr/share/munin/VeraMono.ttf"
        "--font"
        "UNIT:7:/usr/share/munin/VeraMono.ttf"
        "--font"
        "AXIS:7:/usr/share/munin/VeraMono.ttf"
        "/var/www/munin/localdomain/localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001-week.png"
        "--title"
        "beancounter for VE001: numfile privvmpages lockedpages - by week"
        "--start"
        "-8d"
        "--height"
        "175"
        "--width"
        "400"
        "--imgformat"
        "PNG"
        "--lazy"
        "COMMENT:Last update\: Thu Jan  1 01\:00\:00 1970\r"


rrdtool "graph" "--font"
        "LEGEND:7:/usr/share/munin/VeraMono.ttf"
        "--font"
        "UNIT:7:/usr/share/munin/VeraMono.ttf"
        "--font"
        "AXIS:7:/usr/share/munin/VeraMono.ttf"
        "/var/www/munin/localdomain/localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001-day.png"
        "--title"
        "beancounter for VE001: numfile privvmpages lockedpages - by day"
        "--start"
        "-30h"
        "--height"
        "175"
        "--width"
        "400"
        "--imgformat"
        "PNG"
        "--lazy"
        "COMMENT:Last update\: Thu Jan  1 01\:00\:00 1970\r"


rrdtool "graph" "--font"
        "LEGEND:7:/usr/share/munin/VeraMono.ttf"
        "--font"
        "UNIT:7:/usr/share/munin/VeraMono.ttf"
        "--font"
        "AXIS:7:/usr/share/munin/VeraMono.ttf"
        "/var/www/munin/localdomain/localhost.localdomain-vebc_numfile_privvmpages_lockedpages_001-year.png"
        "--title"
        "beancounter for VE001: numfile privvmpages lockedpages - by year"
        "--start"
        "-400d"
        "--height"
        "175"
        "--width"
        "400"
        "--imgformat"
        "PNG"
        "--lazy"
        "COMMENT:Last update\: Thu Jan  1 01\:00\:00 1970\r"


Nov 03 00:26:00 - Starting munin-update
Nov 03 00:26:00 [19831] - Processing domain: localdomain
Nov 03 00:26:00 [19831] - Processing node: localhost.localdomain
Nov 03 00:26:00 [19831] - Configuring node: localhost.localdomain
Nov 03 00:26:00 [19831] - Configuring service: localhost.localdomain->vebc_numfile_privvmpages_lockedpages_001
Nov 03 00:26:01 [19831] - Config: graph_title = beancounter for VE001: numfile privvmpages lockedpages
Nov 03 00:26:01 [19831] - Config: graph_category = VE001
Nov 03 00:26:01 [19831] - Config: graph_info = 'VE bean counters info'
Nov 03 00:26:01 [19831] - Configured service: localhost.localdomain -> vebc_numfile_privvmpages_lockedpages_001 (0.43 sec)
Nov 03 00:26:01 [19831] - Configured node: localhost.localdomain (0.49 sec)
Nov 03 00:26:01 [19831] - Fetching node: localhost.localdomain


Nov 03 00:30:53 - Graphed service : vebc_numfile_privvmpages_lockedpages_001 (0.00 sec * 4)


How can I get /proc/user_beancounters monitored?

I hope, this is not due to incompatibilities between the wiki-munin-plugin for OpenVZ and the use for virtuozzo. I'm using a vserver virtualized by virtuozzo instead of OpenVZ.

EDIT: This is the output of the plugin itself:
# /etc/munin/plugins/vebc_numfile_privvmpages_lockedpages_001 config yes
graph_title beancounter for VE001: numfile privvmpages lockedpages
graph_category VE001
graph_info 'VE bean counters info'









[Updated on: Sat, 03 November 2007 12:26]

Report message to a moderator

Re: Munin: Extended Version for old system using user_beancounter. [message #22773 is a reply to message #22762] Sat, 03 November 2007 16:20 Go to previous messageGo to next message
floogy is currently offline  floogy
Messages: 11
Registered: November 2007
Location: Koblenz Germany
Junior Member
I read this thread now
http://sourceforge.net/mailarchive/forum.php?thread_name=468 93903.2010901%40nerim.net&forum_name=munin-users
, and did this:
munin-run
Warning: Unknown config option in "/etc/munin/plugin-conf.d/munin-node" under "[vebc*]": env.config at /usr/sbin/munin-run line 619, <IN> line 19.
[...]
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
ERROR: Could not execute plugin (plugin doesn't exist?).


 less -N `which munin-run`
[...]
    619             warn "Warning: Unknown config option in \"$dir/$file\" under \"[$service]\": $_";[...]


I commented that line in /etc/munin/plugin-conf.d/munin-node out:
# env.config

but I still get:
[...]
Use of uninitialized value in concatenation (.) or string at /usr/sbin/munin-run line 321.
ERROR: Could not execute plugin (plugin doesn't exist?).

 less -N `which munin-run`
[...]
    321         next unless ($file =~ /^$ARGV[0]$/);


I also tried to debug with telnet:
# telnet localhost  4949
Trying 127.0.0.1...
Connected to pv10.ncsrv.de.
Escape character is '^]'.
# munin node at pv10.ncsrv.de
fetch vebc_numfile_privvmpages_lockedpages_001
.
config  vebc_numfile_privvmpages_lockedpages_001
# Unknown service
.
Connection closed by foreign host.

Hmmm... it's an unknown service, why?

$ /usr/share/munin/munin-update --debug --nofork --stdout --host foo.example.com --service vebc_numfile_privvmpages_lockedpages_001
Nov 03 17:38:43 - [22244] Starting munin-update
Nov 03 17:38:43 - [22244] Processing domain: localdomain
Skipping host "localhost.localdomain" - not in hostlist
Nov 03 17:38:43 - [22244] Processed domain: localdomain (0.00 sec)
Nov 03 17:38:43 - [22244] Munin-update finished (0.09 sec)


$ /usr/sbin/munin-run  vebc_numfile_privvmpages_lockedpages_001 config
Warning: Unknown config option in "/etc/munin/plugin-conf.d/munin-node" under "[apache_accesses]": env.autoconf at /usr/sbin/munin-run line 619, <IN> line 12.
graph_title beancounter for VE001: numfile privvmpages lockedpages
graph_category VE001
graph_info 'VE bean counters info'


http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=416478

Any clues?

[Updated on: Sat, 03 November 2007 16:43]

Report message to a moderator

[solved] Re: Munin: Extended Version for old system using user_beancounter. [message #22802 is a reply to message #22773] Sun, 04 November 2007 00:27 Go to previous message
floogy is currently offline  floogy
Messages: 11
Registered: November 2007
Location: Koblenz Germany
Junior Member
I managed to solve the problem:
Quote:

# su root -c "cat /proc/user_beancounters"
Version: 2.5
uid resource held maxheld barrier limit failcnt
33189: kmemsize 4542834 5069947 12582912 14680064 0
lockedpages 255 255 344 344 189
privvmpages 49055 50262 65536 67072 142


I had to change every appearance of myid to uid, and rename the symlinks from *_001 to *_33189

mv /etc/munin/plugins/vebc_numfile_privvmpages_lockedpages_001 /etc/munin/plugins/vebc_numfile_privvmpages_lockedpages_33189


# /etc/munin/plugins/vebc_numfile_privvmpages_lockedpages_33189 config
graph_title beancounter for VE33189: numfile privvmpages lockedpages
graph_category VE33189
graph_info 'VE bean counters info'
lockedpages.label lockedpages
lockedpages.warning 344
lockedpages.critical 344 189
privvmpages.label privvmpages
privvmpages.warning 65536
privvmpages.critical 67072 146
numfile.label numfile
numfile.warning 2500
numfile.critical 2500 3982
kmemsize

lockedpages
lockedpages
lockedpages.value 255
privvmpages
lockedpages
privvmpages.value 48871
shmpages
lockedpages
dummy
lockedpages
numproc
lockedpages
physpages
lockedpages
vmguarpages
lockedpages
oomguarpages
lockedpages
numtcpsock
lockedpages
numflock
lockedpages
numpty
lockedpages
numsiginfo
lockedpages
tcpsndbuf
lockedpages
tcprcvbuf
lockedpages
othersockbuf
lockedpages
dgramrcvbuf
lockedpages
numothersock
lockedpages
dcachesize
lockedpages
numfile
lockedpages
numfile.value 2197
dummy
lockedpages
dummy
lockedpages
dummy
lockedpages
numiptent
lockedpages

[Updated on: Tue, 06 November 2007 15:34]

Report message to a moderator

Previous Topic: what does "ub 101 helds 1878 in kmemsize on put" meen?
Next Topic: Can not suspend VE: Resource temporarily unavailable
Goto Forum:
  


Current Time: Sun Jul 14 00:44:51 GMT 2024

Total time taken to generate the page: 0.02162 seconds