Hello John,

This is a common situation on Debian-based systems which, as stated in 
the Debian howto [1], Monitorix comes with an extra configuration file.

See it from your own logs:

 > Sun Dec  7 19:36:37 2014 - Loaded main configuration file
 > '/etc/monitorix/monitorix.conf'.
 > Sun Dec  7 19:36:37 2014 - Loading extra configuration file
 > '/etc/monitorix/conf.d/00-debian.conf'.

As you can see, Monitorix loads the 
'/etc/monitorix/conf.d/00-debian.conf' configuration file right after 
the main one. That extra configuration file will overwrite any of the 
previous settings, so that's probably the cause of your issues.

You can simply remove the extra configuration file, or use it to include 
all your own settings.

I hope that helped you.
Best regards.


1 - http://www.monitorix.org/doc-debian.html


On 12/10/2014 04:17 PM, Doe John wrote:
> Hello Jordi,
>
> Thank you for your help, I took time and i fix my problems, I have a
> last error with mysql :
>
> I set in monitorix.conf like this :
>
> <mysql>
>          conn_type = host
>          list = localhost
>          list = /var/run/mysqld/mysqld.sock
>
>          <desc>
>                  localhost = 3306, root, mypass
>          </desc>
>          rigid = 0, 2, 0, 0, 0, 0
>          limit = 100, 100, 100, 100, 100, 100
> </mysql>
>
> In logs :
>
> mysql::mysql_update: Cannot connect to MySQL '/var/run/mysqld/mysqld.sock'.
> Wed Dec 10 16:12:00 2014 - ERROR: while updating
> /var/lib/monitorix/mysql.rrd: /var/lib/monitorix/mysql.rrd: expected
> timestamp not found in data source from N
>
>
> I tested the mysql connection in command line and it's ok
>
> Have you an idea ?
>
> Regards
>
> Johnny
>
>
> 2014-12-09 10:49 GMT+01:00 Jordi Sanfeliu <jo...@fibranet.cat
> <mailto:jo...@fibranet.cat>>:
>
>     Hello Johnny,
>
>     It looks like you still have defined devices that doesn't exist in your
>     system, e.g: '/dev/sdb'.
>
>     Please, take some time to configure correctly Monitorix.
>
>     Read the 'monitorix.conf(5)' man pages.
>     Thanks.
>
>
>
>     On 12/07/2014 07:39 PM, Johnny B wrote:
>      > Hello Jordi,
>      >
>      > Thank you i disabled useless monitoring for me.
>      >
>      >
>      >
>      > # DISK graph
>      > #
>      >
>     
> -----------------------------------------------------------------------------
>      > <disk>
>      >          <list>
>      >                  0 = /dev/sda, /dev/sdb, /dev/sdc
>      >          </list>
>      >          <alerts>
>      >                  realloc_enabled = n
>      >                  realloc_timeintvl = 0
>      >                  realloc_threshold = 1
>      >                  realloc_script = /path/to/script.sh
>      >                  pendsect_enabled = n
>      >                  pendsect_timeintvl = 0
>      >                  pendsect_threshold = 1
>      >                  pendsect_script = /path/to/script.sh
>      >          </alerts>
>      > </disk>
>      >
>      >
>      >
>      > Sun Dec  7 19:36:37 2014 - Starting Monitorix version 3.6.0 (pid
>     24728).
>      > Sun Dec  7 19:36:37 2014 - Loaded main configuration file
>      > '/etc/monitorix/monitorix.conf'.
>      > Sun Dec  7 19:36:37 2014 - Loading extra configuration file
>      > '/etc/monitorix/conf.d/00-debian.conf'.
>      > Use of uninitialized value in lc at /usr/lib/monitorix/disk.pm
>     <http://disk.pm> line 60.
>      > Sun Dec  7 19:36:37 2014 - Initializing graphs.
>      > Sun Dec  7 19:36:37 2014 - disk::disk_init: ERROR: invalid or
>     inexistent
>      > device name '/dev/sdb'.
>      > Sun Dec  7 19:36:37 2014 - disk::disk_init: 'accept_invalid_disk'
>     option
>      > is not set.
>      > Sun Dec  7 19:36:37 2014 - fs::fs_init: Unable to detect the
>     device name
>      > of '/boot'. I/O stats for this filesystem won't be shown in graph. If
>      > this is really a mount point then consider using <devmap> to map it
>      > manually to a device name.
>      > Sun Dec  7 19:36:37 2014 - Generating the 'index.html' file.
>      >
>      >
>

-- 
Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Monitorix-general mailing list
Monitorix-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/monitorix-general

Reply via email to