Discussion:
[Monitorix-general] misconfiguration for disks.png path
Johnny B
2014-12-06 09:42:20 UTC
Permalink
Hello,

There is a misconfiguration in monitorix for disks graph :

*/ERROR: while graphing /var/lib/monitorix/www//imgs/disk01.1day.png:
opening '/var/lib/monitorix/disk.rrd': No such file or directory ERROR:
while graphing /var/lib/monitorix/www//imgs/disk01z.1day.png: opening
'/var/lib/monitorix/disk.rrd': No such file or directory /**/
/**/
/*
The problem are the double slashes : ///var/lib/monitorix/*www//imgs*/
so it can't get the *.png

Were i can modify this path ?

thank you

Regards

john
Johnny B
2014-12-06 15:23:43 UTC
Permalink
Hello,

Finally a changed the path but it's not the problem, disk.rrd is
missing, where can i find it ?

thank you


-------------------

Hello,

There is a misconfiguration in monitorix for disks graph :

*/ERROR: while graphing /var/lib/monitorix/www//imgs/disk01.1day.png:
opening '/var/lib/monitorix/disk.rrd': No such file or directory ERROR:
while graphing /var/lib/monitorix/www//imgs/disk01z.1day.png: opening
'/var/lib/monitorix/disk.rrd': No such file or directory /**/
/**/
/*
The problem are the double slashes : ///var/lib/monitorix/*www//imgs*/
so it can't get the *.png

Were i can modify this path ?

thank you

Regards

john
Jordi Sanfeliu
2014-12-06 16:40:14 UTC
Permalink
Hello John,

Multiple slashes in a path are never a problem to locate a file, unless
that file really doesn't exist. The kernel depreciates automatically all
the useless slashes.

The error you are receiving means that, for an unknown reason,
'monitorix.cgi' is unable to read the 'disk.rrd' file which by default
should be located in '/var/lib/monitorix/'.

So please, check the following:

1. The user name under which is running 'monitorix.cgi' has enough
permissions to read in '/var/lib/monitorix' directory and/or the file
'disk.rrd' in it.
2. The contains of the file 'monitorix.conf.path' located in
'<base_dir>/cgi/' directory points correctly to the current
configuration file (such file is created every time Monitorix is
started).
3. You enabled the 'disk' graph in the configuration file but you forgot
to restart Monitorix, which is needed for the changes to take effect.

Please, let me know.
Regards.

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


A 06-12-2014 16:23, Johnny B escrigué:
> Hello,
>
> Finally a changed the path but it's not the problem, disk.rrd is
> missing, where can i find it ?
>
> thank you
>
> -------------------
>
> Hello,
>
> There is a misconfiguration in monitorix for disks graph :
>
> ERROR: while graphing /var/lib/monitorix/www//imgs/disk01.1day.png:
> opening '/var/lib/monitorix/disk.rrd': No such file or directory ERROR:
> while graphing /var/lib/monitorix/www//imgs/disk01z.1day.png: opening
> '/var/lib/monitorix/disk.rrd': No such file or directory
>
> The problem are the double slashes : /var/lib/monitorix/www//imgs/ so
> it can't get the *.png
>
> Were i can modify this path ?
>
> thank you
>
> Regards
>
> john
>
Johnny B
2014-12-06 18:04:41 UTC
Permalink
Hello Jordi,

Thank you for your reply.

I'm checking my /var/lib/monitorix directory and disk.rdd is missing.
It's a fresh install on Debian Sid with monitorix_3.6.0-izzy1_all.deb .
I restart deamon on each modification, so everything is ok but the
disk.rdd file is absent.

I try a new installation but the disk.rdd is always missing in the
/var/lib/monitorix directory

thank you for your help



On 12/06/2014 05:40 PM, Jordi Sanfeliu wrote:
> Hello John,
>
> Multiple slashes in a path are never a problem to locate a file, unless
> that file really doesn't exist. The kernel depreciates automatically all
> the useless slashes.
>
> The error you are receiving means that, for an unknown reason,
> 'monitorix.cgi' is unable to read the 'disk.rrd' file which by default
> should be located in '/var/lib/monitorix/'.
>
> So please, check the following:
>
> 1. The user name under which is running 'monitorix.cgi' has enough
> permissions to read in '/var/lib/monitorix' directory and/or the file
> 'disk.rrd' in it.
> 2. The contains of the file 'monitorix.conf.path' located in
> '<base_dir>/cgi/' directory points correctly to the current
> configuration file (such file is created every time Monitorix is
> started).
> 3. You enabled the 'disk' graph in the configuration file but you forgot
> to restart Monitorix, which is needed for the changes to take effect.
>
> Please, let me know.
> Regards.
>
> ---
> Jordi Sanfeliu
> FIBRANET Network Services Provider
> http://www.fibranet.cat
>
>
> A 06-12-2014 16:23, Johnny B escrigué:
>> Hello,
>>
>> Finally a changed the path but it's not the problem, disk.rrd is
>> missing, where can i find it ?
>>
>> thank you
>>
>> -------------------
>>
>> Hello,
>>
>> There is a misconfiguration in monitorix for disks graph :
>>
>> ERROR: while graphing /var/lib/monitorix/www//imgs/disk01.1day.png:
>> opening '/var/lib/monitorix/disk.rrd': No such file or directory ERROR:
>> while graphing /var/lib/monitorix/www//imgs/disk01z.1day.png: opening
>> '/var/lib/monitorix/disk.rrd': No such file or directory
>>
>> The problem are the double slashes : /var/lib/monitorix/www//imgs/ so
>> it can't get the *.png
>>
>> Were i can modify this path ?
>>
>> thank you
>>
>> Regards
>>
>> john
>>
>
> ------------------------------------------------------------------------------
> 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-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monitorix-general
Jordi Sanfeliu
2014-12-06 18:14:26 UTC
Permalink
John,

Can you, please, paste here the complete output of the log file right
after you started Monitorix?

Also, consider executing Monitorix with the parameter '-d all' to
increase debugging information.

Thanks.

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


A 06-12-2014 19:04, Johnny B escrigué:
> Hello Jordi,
>
> Thank you for your reply.
>
> I'm checking my /var/lib/monitorix directory and disk.rdd is missing.
> It's a fresh install on Debian Sid with monitorix_3.6.0-izzy1_all.deb .
> I restart deamon on each modification, so everything is ok but the
> disk.rdd file is absent.
>
> I try a new installation but the disk.rdd is always missing in the
> /var/lib/monitorix directory
>
> thank you for your help
>
>
>
> On 12/06/2014 05:40 PM, Jordi Sanfeliu wrote:
>> Hello John,
>>
>> Multiple slashes in a path are never a problem to locate a file,
>> unless
>> that file really doesn't exist. The kernel depreciates automatically
>> all
>> the useless slashes.
>>
>> The error you are receiving means that, for an unknown reason,
>> 'monitorix.cgi' is unable to read the 'disk.rrd' file which by default
>> should be located in '/var/lib/monitorix/'.
>>
>> So please, check the following:
>>
>> 1. The user name under which is running 'monitorix.cgi' has enough
>> permissions to read in '/var/lib/monitorix' directory and/or the file
>> 'disk.rrd' in it.
>> 2. The contains of the file 'monitorix.conf.path' located in
>> '<base_dir>/cgi/' directory points correctly to the current
>> configuration file (such file is created every time Monitorix is
>> started).
>> 3. You enabled the 'disk' graph in the configuration file but you
>> forgot
>> to restart Monitorix, which is needed for the changes to take effect.
>>
>> Please, let me know.
>> Regards.
>>
>> ---
>> Jordi Sanfeliu
>> FIBRANET Network Services Provider
>> http://www.fibranet.cat
>>
>>
>> A 06-12-2014 16:23, Johnny B escrigué:
>>> Hello,
>>>
>>> Finally a changed the path but it's not the problem, disk.rrd is
>>> missing, where can i find it ?
>>>
>>> thank you
>>>
>>> -------------------
>>>
>>> Hello,
>>>
>>> There is a misconfiguration in monitorix for disks graph :
>>>
>>> ERROR: while graphing /var/lib/monitorix/www//imgs/disk01.1day.png:
>>> opening '/var/lib/monitorix/disk.rrd': No such file or directory
>>> ERROR:
>>> while graphing /var/lib/monitorix/www//imgs/disk01z.1day.png: opening
>>> '/var/lib/monitorix/disk.rrd': No such file or directory
>>>
>>> The problem are the double slashes : /var/lib/monitorix/www//imgs/
>>> so
>>> it can't get the *.png
>>>
>>> Were i can modify this path ?
>>>
>>> thank you
>>>
>>> Regards
>>>
>>> john
>>>
Johnny B
2014-12-06 18:21:53 UTC
Permalink
Jordi,

Here my log extract :


Sat Dec 6 19:16:09 2014 - Starting Monitorix version 3.6.0 (pid 6164).
Sat Dec 6 19:16:09 2014 - Loaded main configuration file
'/etc/monitorix/monitorix.conf'.
Sat Dec 6 19:16:09 2014 - Loading extra configuration file
'/etc/monitorix/conf.d/00-debian.conf'.
Use of uninitialized value in lc at /usr/lib/monitorix/disk.pm line 60.
Sat Dec 6 19:16:09 2014 - Initializing graphs.
Sat Dec 6 19:16:09 2014 - disk::disk_init: ERROR: invalid or inexistent
device name '/dev/sdb'.
Sat Dec 6 19:16:09 2014 - disk::disk_init: 'accept_invalid_disk' option
is not set.
Sat Dec 6 19:16:09 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.
Sat Dec 6 19:16:09 2014 - Generating the 'index.html' file.
Sat Dec 6 19:16:09 2014 - Started built-in HTTP server (pid 6219).
Sat Dec 6 19:16:09 2014 - Ok, ready.
Can't exec "nvidia-smi": No such file or directory at
/usr/lib/monitorix/Monitorix.pm line 177.
Sat Dec 6 19:17:00 2014 - Monitorix::get_nvidia_data: ERROR:
'nvidia-smi' command is not installed.
Can't exec "nvidia-smi": No such file or directory at
/usr/lib/monitorix/lmsens.pm line 280.
Sat Dec 6 19:17:00 2014 - lmsens::lmsens_update: ERROR: 'nvidia-smi'
command is not installed.
error: failed to get domain 'centos6'
error: Domain not found: no domain with matching name 'centos6'
error: failed to get domain 'winxp'
error: Domain not found: no domain with matching name 'winxp'
Can't exec "mailstats": No such file or directory at
/usr/lib/monitorix/mail.pm line 211.
mailq: Mail queue is empty
Sat Dec 6 19:16:09 2014 - WARNING: the built-in HTTP server has
authentication disabled.
HTTPServer: You can connect to your server at http://localhost:8080/

I think there is a problem on mount point directive (there is an error
on /dev/sdb i'm using LVM)




On 12/06/2014 07:14 PM, Jordi Sanfeliu wrote:
> John,
>
> Can you, please, paste here the complete output of the log file right
> after you started Monitorix?
>
> Also, consider executing Monitorix with the parameter '-d all' to
> increase debugging information.
>
> Thanks.
>
> ---
> Jordi Sanfeliu
> FIBRANET Network Services Provider
> http://www.fibranet.cat
>
>
> A 06-12-2014 19:04, Johnny B escrigué:
>> Hello Jordi,
>>
>> Thank you for your reply.
>>
>> I'm checking my /var/lib/monitorix directory and disk.rdd is missing.
>> It's a fresh install on Debian Sid with monitorix_3.6.0-izzy1_all.deb .
>> I restart deamon on each modification, so everything is ok but the
>> disk.rdd file is absent.
>>
>> I try a new installation but the disk.rdd is always missing in the
>> /var/lib/monitorix directory
>>
>> thank you for your help
>>
>>
>>
>> On 12/06/2014 05:40 PM, Jordi Sanfeliu wrote:
>>> Hello John,
>>>
>>> Multiple slashes in a path are never a problem to locate a file,
>>> unless
>>> that file really doesn't exist. The kernel depreciates automatically
>>> all
>>> the useless slashes.
>>>
>>> The error you are receiving means that, for an unknown reason,
>>> 'monitorix.cgi' is unable to read the 'disk.rrd' file which by default
>>> should be located in '/var/lib/monitorix/'.
>>>
>>> So please, check the following:
>>>
>>> 1. The user name under which is running 'monitorix.cgi' has enough
>>> permissions to read in '/var/lib/monitorix' directory and/or the file
>>> 'disk.rrd' in it.
>>> 2. The contains of the file 'monitorix.conf.path' located in
>>> '<base_dir>/cgi/' directory points correctly to the current
>>> configuration file (such file is created every time Monitorix is
>>> started).
>>> 3. You enabled the 'disk' graph in the configuration file but you
>>> forgot
>>> to restart Monitorix, which is needed for the changes to take effect.
>>>
>>> Please, let me know.
>>> Regards.
>>>
>>> ---
>>> Jordi Sanfeliu
>>> FIBRANET Network Services Provider
>>> http://www.fibranet.cat
>>>
>>>
>>> A 06-12-2014 16:23, Johnny B escrigué:
>>>> Hello,
>>>>
>>>> Finally a changed the path but it's not the problem, disk.rrd is
>>>> missing, where can i find it ?
>>>>
>>>> thank you
>>>>
>>>> -------------------
>>>>
>>>> Hello,
>>>>
>>>> There is a misconfiguration in monitorix for disks graph :
>>>>
>>>> ERROR: while graphing /var/lib/monitorix/www//imgs/disk01.1day.png:
>>>> opening '/var/lib/monitorix/disk.rrd': No such file or directory
>>>> ERROR:
>>>> while graphing /var/lib/monitorix/www//imgs/disk01z.1day.png: opening
>>>> '/var/lib/monitorix/disk.rrd': No such file or directory
>>>>
>>>> The problem are the double slashes : /var/lib/monitorix/www//imgs/
>>>> so
>>>> it can't get the *.png
>>>>
>>>> Were i can modify this path ?
>>>>
>>>> thank you
>>>>
>>>> Regards
>>>>
>>>> john
>>>>
>
> ------------------------------------------------------------------------------
> 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-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monitorix-general
Jordi Sanfeliu
2014-12-07 17:29:41 UTC
Permalink
A 06-12-2014 19:21, Johnny B escrigué:
> Jordi,
>
> Here my log extract :
>
> Sat Dec 6 19:16:09 2014 - Starting Monitorix version 3.6.0 (pid
> 6164).
> Sat Dec 6 19:16:09 2014 - Loaded main configuration file
> '/etc/monitorix/monitorix.conf'.
> Sat Dec 6 19:16:09 2014 - Loading extra configuration file
> '/etc/monitorix/conf.d/00-debian.conf'.
> Use of uninitialized value in lc at /usr/lib/monitorix/disk.pm line
> 60.
> Sat Dec 6 19:16:09 2014 - Initializing graphs.
> Sat Dec 6 19:16:09 2014 - disk::disk_init: ERROR: invalid or
> inexistent device name '/dev/sdb'.
> Sat Dec 6 19:16:09 2014 - disk::disk_init: 'accept_invalid_disk'
> option is not set.

Looks like there is an error in the configuration file. Could you please
paste the <disk> section?



> Sat Dec 6 19:16:09 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.

If your system doesn't has the '/boot' filesystem then, please, consider
remove it from the configuration file.

Keep in mind that the configuration is not something generated
automatically by some tool after analyzing your system. Instead, it
comes with some defined values that in some systems (like yours) won't
work.



> Sat Dec 6 19:16:09 2014 - Generating the 'index.html' file.
> Sat Dec 6 19:16:09 2014 - Started built-in HTTP server (pid 6219).
> Sat Dec 6 19:16:09 2014 - Ok, ready.
> Can't exec "nvidia-smi": No such file or directory at
> /usr/lib/monitorix/Monitorix.pm line 177.
> Sat Dec 6 19:17:00 2014 - Monitorix::get_nvidia_data: ERROR:
> 'nvidia-smi' command is not installed.
> Can't exec "nvidia-smi": No such file or directory at
> /usr/lib/monitorix/lmsens.pm line 280.
> Sat Dec 6 19:17:00 2014 - lmsens::lmsens_update: ERROR: 'nvidia-smi'
> command is not installed.

Here is another example that you enabled 'lmsens' graph without
configuring it accordingly for your system. You need the Nvidia official
drivers to have the 'nvidia-smi' command tool.

Have you really configured the <lmsens> section accordingly for your
system before enabling it?



> error: failed to get domain 'centos6'
> error: Domain not found: no domain with matching name 'centos6'
> error: failed to get domain 'winxp'
> error: Domain not found: no domain with matching name 'winxp'

The same again with the 'libvirt' graph. Just enabled without
configuring it.



> Can't exec "mailstats": No such file or directory at
> /usr/lib/monitorix/mail.pm line 211.
> mailq: Mail queue is empty

Again, it looks here that you enabled the 'mail' graph without
configuring the 'mta' option, since it looks like your system don't has
Sendmail.



> Sat Dec 6 19:16:09 2014 - WARNING: the built-in HTTP server has
> authentication disabled.
> HTTPServer: You can connect to your server at http://localhost:8080/
> [4]
>
> I think there is a problem on mount point directive (there is an
> error on /dev/sdb i'm using LVM)
>

Please, fix all these problems.
Regards.

---
Jordi Sanfeliu
FIBRANET Network Services Provider
http://www.fibranet.cat
Johnny B
2014-12-07 18:39:35 UTC
Permalink
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 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.


On 12/07/2014 06:29 PM, Jordi Sanfeliu wrote:
> A 06-12-2014 19:21, Johnny B escrigué:
>> Jordi,
>>
>> Here my log extract :
>>
>> Sat Dec 6 19:16:09 2014 - Starting Monitorix version 3.6.0 (pid
>> 6164).
>> Sat Dec 6 19:16:09 2014 - Loaded main configuration file
>> '/etc/monitorix/monitorix.conf'.
>> Sat Dec 6 19:16:09 2014 - Loading extra configuration file
>> '/etc/monitorix/conf.d/00-debian.conf'.
>> Use of uninitialized value in lc at /usr/lib/monitorix/disk.pm line
>> 60.
>> Sat Dec 6 19:16:09 2014 - Initializing graphs.
>> Sat Dec 6 19:16:09 2014 - disk::disk_init: ERROR: invalid or
>> inexistent device name '/dev/sdb'.
>> Sat Dec 6 19:16:09 2014 - disk::disk_init: 'accept_invalid_disk'
>> option is not set.
> Looks like there is an error in the configuration file. Could you please
> paste the <disk> section?
>
>
>
>> Sat Dec 6 19:16:09 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.
> If your system doesn't has the '/boot' filesystem then, please, consider
> remove it from the configuration file.
>
> Keep in mind that the configuration is not something generated
> automatically by some tool after analyzing your system. Instead, it
> comes with some defined values that in some systems (like yours) won't
> work.
>
>
>
>> Sat Dec 6 19:16:09 2014 - Generating the 'index.html' file.
>> Sat Dec 6 19:16:09 2014 - Started built-in HTTP server (pid 6219).
>> Sat Dec 6 19:16:09 2014 - Ok, ready.
>> Can't exec "nvidia-smi": No such file or directory at
>> /usr/lib/monitorix/Monitorix.pm line 177.
>> Sat Dec 6 19:17:00 2014 - Monitorix::get_nvidia_data: ERROR:
>> 'nvidia-smi' command is not installed.
>> Can't exec "nvidia-smi": No such file or directory at
>> /usr/lib/monitorix/lmsens.pm line 280.
>> Sat Dec 6 19:17:00 2014 - lmsens::lmsens_update: ERROR: 'nvidia-smi'
>> command is not installed.
> Here is another example that you enabled 'lmsens' graph without
> configuring it accordingly for your system. You need the Nvidia official
> drivers to have the 'nvidia-smi' command tool.
>
> Have you really configured the <lmsens> section accordingly for your
> system before enabling it?
>
>
>
>> error: failed to get domain 'centos6'
>> error: Domain not found: no domain with matching name 'centos6'
>> error: failed to get domain 'winxp'
>> error: Domain not found: no domain with matching name 'winxp'
> The same again with the 'libvirt' graph. Just enabled without
> configuring it.
>
>
>
>> Can't exec "mailstats": No such file or directory at
>> /usr/lib/monitorix/mail.pm line 211.
>> mailq: Mail queue is empty
> Again, it looks here that you enabled the 'mail' graph without
> configuring the 'mta' option, since it looks like your system don't has
> Sendmail.
>
>
>
>> Sat Dec 6 19:16:09 2014 - WARNING: the built-in HTTP server has
>> authentication disabled.
>> HTTPServer: You can connect to your server at http://localhost:8080/
>> [4]
>>
>> I think there is a problem on mount point directive (there is an
>> error on /dev/sdb i'm using LVM)
>>
> Please, fix all these problems.
> Regards.
>
> ---
> 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-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monitorix-general
Jordi Sanfeliu
2014-12-09 09:49:51 UTC
Permalink
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 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
Doe John
2014-12-10 15:17:33 UTC
Permalink
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 <***@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 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-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monitorix-general
>
Jordi Sanfeliu
2014-12-10 15:25:57 UTC
Permalink
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 <***@fibranet.cat
> <mailto:***@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
Johnny B
2014-12-10 19:10:13 UTC
Permalink
Jordi,

Thank you very much for your help.

I'm deploying Monitorix for companies in parallel with Munin, and for
now i prefer Monitorix ;)


Thank you again everything is working fine

Best regards

John


On 12/10/2014 04:25 PM, Jordi Sanfeliu wrote:
> 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 <***@fibranet.cat
>> <mailto:***@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
2014-12-11 07:23:12 UTC
Permalink
John,

Good news that you managed to solve all these issues!
I'm very glad to know that you are enjoying Monitorix! :)

Best regards.


On 12/10/2014 08:10 PM, Johnny B wrote:
> Jordi,
>
> Thank you very much for your help.
>
> I'm deploying Monitorix for companies in parallel with Munin, and for
> now i prefer Monitorix ;)
>
>
> Thank you again everything is working fine
>
> Best regards
>
> John
>

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