[csw-users] Migrating monitoring services from Linux - Munin server missing some files??
Juergen Arndt
ja at opencsw.org
Wed Jan 27 23:24:46 CET 2010
Hi Kaya,
I digged a little bit deeper into the issues - so:
> drwxr-xr-x 2 munin munin 4096 Sep 14 04:40 cgi
> -rw-r--r-- 1 munin munin 2555 Sep 14 04:45 definitions.html
> -rw-r--r-- 1 munin munin 5345 Jan 24 19:40 index.html
> -rw-r--r-- 1 munin munin 473 Sep 14 04:45 logo.png
> drwxr-xr-x 2 munin munin 57344 Sep 14 21:35 optiplex-networks.com
> -rw-r--r-- 1 munin munin 3538 Sep 14 04:45 style.css
>
> Are these files missing from Munin?? Since I have searched high and
> dry for them! Or are they simply in some obscure location which I
> haven't figured out yet?? :-)
(1) optiplex-networks.com is the host, that is monitored by the munin
installation on your linux box
(2) definitions.html, logo.png and style.css are not located in some
obscure location but in /etc/opt/csw/munin/templates on the master
side :-)
This is not an unsual place, you can easily find many RPMs for Linux,
which have these files in the "templates" directory.
(3) index.html is created after /opt/csw/bin/munin-cron ran for the
first time (and there was at least one host to check)
> Ok a few little notes now as I'm just cross-comparing further as
> typing this:
>
> Munin-check response:
>
> # /opt/csw/bin/munin-check
> Check /var/opt/csw/munin/www
> Check miscelaneous
> # /var/opt/csw/munin/db : Wrong permissions (755 != 744)
> stat: cannot stat `/var/opt/csw/munin/db/datafile': No such file or
> directory
> # /var/opt/csw/munin/db/datafile : Wrong owner ( != munin)
> stat: cannot stat `/var/opt/csw/munin/db/datafile': No such file or
> directory
> # /var/opt/csw/munin/db/datafile : Wrong permissions ( != 644)
> stat: cannot stat `/var/opt/csw/munin/db/limits': No such file or
> directory
> # /var/opt/csw/munin/db/limits : Wrong owner ( != munin)
> stat: cannot stat `/var/opt/csw/munin/db/limits': No such file or
> directory
> # /var/opt/csw/munin/db/limits : Wrong permissions ( != 644)
> stat: cannot stat `/var/opt/csw/munin/db/*.stats': No such file or
> directory
> # /var/opt/csw/munin/db/*.stats : Wrong owner ( != munin)
> stat: cannot stat `/var/opt/csw/munin/db/*.stats': No such file or
> directory
> # /var/opt/csw/munin/db/*.stats : Wrong permissions ( != 644)
> # /var/opt/csw/munin/db/plugin-state : Wrong owner (munin != nobody)
> # /var/opt/csw/munin/db/plugin-state : Wrong permissions (755 != 775)
> Check done. Please note that this script only checks most things,
> not all things.
>
> Please also note that this script is very new and may be buggy.
The last sentence is quite important :) Indeed this script doesn't run
very well on Solaris. But you are right, I will check the permissions
and the ownerships. But anyway, Munin runs with current settings well
on Solaris, so this is a minor issue for some fine tuning and nothing
critical.
> I also created a cron job which I inserted into /etc/cron.d as there
> wasn't any pre-installed:
>
> */5 * * * * munin test -x /usr/bin/munin-cron && /usr/bin/munin-
> cron > /dev/null 2>&1
You are using Linux style for your crontabs which won't work on Solaris.
Please create a cronjob for the user "munin" with the command "crontab
-e munin". I don't know exactly what you mean with "... created a cron
job which I inserted into /etc/cron.d" but it sounds wrong to me.
You should also use the following line for the cronjob itself:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /bin/test -x /opt/csw/bin/
munin-cron && /opt/csw/bin/munin-cron
I'm working on packages for Munin 1.4.3 and except the permissions
everything seems to run fine, so I think, in the next days I will push
out a testing version.
Let me know, if you have further problems!
Juergen
--
Juergen Arndt
More information about the users
mailing list