Discussion:
[Check_mk (english)] check_mk not showing df information in services full scan
Pablo Escobar
2014-10-04 11:36:43 UTC
Permalink
Hi,

I have some experience with nagios but I am starting to learn OMD +
check_mk which seems much more powerful.

I am doing some testing with this environment:

OMD Server >> centos7 x86_64 with OMD-1.20
Server to monitor >> centos6.5 x86_64 with check_mk-agent-1.2.5i5p3-1

I have the basic setup working and auto-inventory shows quite some
information about the client out of the box but it's not showing the disk
usage (df plugin)

When running "check_mk_agent" in the client I see the df information

<<<df>>>
/dev/mapper/vg_lne014-lv_root ext4 51606140 1300552 47684148 3% /
/dev/sda1 ext4 495844 39773 430471 9%
/boot
/dev/mapper/vg_lne014-lv_home ext4 11393300 159336 10655200 2%
/home
<<<df>>>
[df_inodes_start]
/dev/mapper/vg_lne014-lv_root ext4 3276800 45020 3231780 2% /
/dev/sda1 ext4 128016 39 127977 1% /boot
/dev/mapper/vg_lne014-lv_home ext4 724816 11 724805 1% /home
[df_inodes_end]

When running "check_mk -d clientHostname" in the OMD server I also get the
df information.

I have verified that the df check is enabled for inventory in the OMD
server:

OMD[prod]:~$ cmk -L|egrep "Name|df"
Name plugin-type perf-data inventory
service description
df tcp yes
yes fs_%s

But when I try to do the inventory for the host I don't get the "df"
information:

OMD[prod]:~$ cmk -vv -II
Inventorizing all hosts.
Deleting /omd/sites/prod/var/check_mk/autochecks/client-hostname.mk.
cpu.loads 1 new checks
cpu.threads 1 new checks
client-hostname: Invalid output from agent or invalid configuration: list
index out of range
diskstat 1 new checks
kernel 3 new checks
kernel.util 1 new checks
lnx_if 1 new checks
mem.used 1 new checks
mounts 3 new checks
ntp.time 1 new checks
postfix_mailq 1 new checks
tcp_conn_stats 1 new checks
uptime 1 new checks

Am I missing something?

I suppose the problem is related to the error message "list index out of
range". Which is the best way to debug this kind of problems in check_mk? I
could not find any log in the client machine and neither I couldn't find
the option "debug rule execution" described here
https://mathias-kettner.de/checkmk_mkeventd_internals.html

thanks in advance for your help.

regards,
Pablo.
Marcel Schulte
2014-10-04 13:38:37 UTC
Permalink
Hi Pablo,

Don't use agent version newer than server part! Never! No support at all!

If you still have problems when server part is at least version of agent
come back and report.

Regards,
Marcel
Post by Pablo Escobar
Hi,
I have some experience with nagios but I am starting to learn OMD +
check_mk which seems much more powerful.
OMD Server >> centos7 x86_64 with OMD-1.20
Server to monitor >> centos6.5 x86_64 with check_mk-agent-1.2.5i5p3-1
I have the basic setup working and auto-inventory shows quite some
information about the client out of the box but it's not showing the disk
usage (df plugin)
When running "check_mk_agent" in the client I see the df information
<<<df>>>
/dev/mapper/vg_lne014-lv_root ext4 51606140 1300552 47684148 3% /
/dev/sda1 ext4 495844 39773 430471 9%
/boot
/dev/mapper/vg_lne014-lv_home ext4 11393300 159336 10655200 2%
/home
<<<df>>>
[df_inodes_start]
/dev/mapper/vg_lne014-lv_root ext4 3276800 45020 3231780 2% /
/dev/sda1 ext4 128016 39 127977 1% /boot
/dev/mapper/vg_lne014-lv_home ext4 724816 11 724805 1% /home
[df_inodes_end]
When running "check_mk -d clientHostname" in the OMD server I also get the
df information.
I have verified that the df check is enabled for inventory in the OMD
OMD[prod]:~$ cmk -L|egrep "Name|df"
Name plugin-type perf-data inventory
service description
df tcp yes
yes fs_%s
But when I try to do the inventory for the host I don't get the "df"
OMD[prod]:~$ cmk -vv -II
Inventorizing all hosts.
Deleting /omd/sites/prod/var/check_mk/autochecks/client-hostname.mk.
cpu.loads 1 new checks
cpu.threads 1 new checks
client-hostname: Invalid output from agent or invalid configuration: list
index out of range
diskstat 1 new checks
kernel 3 new checks
kernel.util 1 new checks
lnx_if 1 new checks
mem.used 1 new checks
mounts 3 new checks
ntp.time 1 new checks
postfix_mailq 1 new checks
tcp_conn_stats 1 new checks
uptime 1 new checks
Am I missing something?
I suppose the problem is related to the error message "list index out of
range". Which is the best way to debug this kind of problems in check_mk? I
could not find any log in the client machine and neither I couldn't find
the option "debug rule execution" described here
https://mathias-kettner.de/checkmk_mkeventd_internals.html
thanks in advance for your help.
regards,
Pablo.
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Pablo Escobar
2014-10-04 14:10:24 UTC
Permalink
Hi Marcel,

after syncing the versions it's working.

Thank you very much for your help!

regards,
Pablo.
Post by Marcel Schulte
Hi Pablo,
Don't use agent version newer than server part! Never! No support at all!
If you still have problems when server part is at least version of agent
come back and report.
Regards,
Marcel
Post by Pablo Escobar
Hi,
I have some experience with nagios but I am starting to learn OMD +
check_mk which seems much more powerful.
OMD Server >> centos7 x86_64 with OMD-1.20
Server to monitor >> centos6.5 x86_64 with check_mk-agent-1.2.5i5p3-1
I have the basic setup working and auto-inventory shows quite some
information about the client out of the box but it's not showing the disk
usage (df plugin)
When running "check_mk_agent" in the client I see the df information
<<<df>>>
/dev/mapper/vg_lne014-lv_root ext4 51606140 1300552 47684148 3% /
/dev/sda1 ext4 495844 39773 430471 9%
/boot
/dev/mapper/vg_lne014-lv_home ext4 11393300 159336 10655200 2%
/home
<<<df>>>
[df_inodes_start]
/dev/mapper/vg_lne014-lv_root ext4 3276800 45020 3231780 2% /
/dev/sda1 ext4 128016 39 127977 1% /boot
/dev/mapper/vg_lne014-lv_home ext4 724816 11 724805 1% /home
[df_inodes_end]
When running "check_mk -d clientHostname" in the OMD server I also get
the df information.
I have verified that the df check is enabled for inventory in the OMD
OMD[prod]:~$ cmk -L|egrep "Name|df"
Name plugin-type perf-data inventory
service description
df tcp yes
yes fs_%s
But when I try to do the inventory for the host I don't get the "df"
OMD[prod]:~$ cmk -vv -II
Inventorizing all hosts.
Deleting /omd/sites/prod/var/check_mk/autochecks/client-hostname.mk.
cpu.loads 1 new checks
cpu.threads 1 new checks
client-hostname: Invalid output from agent or invalid configuration: list
index out of range
diskstat 1 new checks
kernel 3 new checks
kernel.util 1 new checks
lnx_if 1 new checks
mem.used 1 new checks
mounts 3 new checks
ntp.time 1 new checks
postfix_mailq 1 new checks
tcp_conn_stats 1 new checks
uptime 1 new checks
Am I missing something?
I suppose the problem is related to the error message "list index out of
range". Which is the best way to debug this kind of problems in check_mk? I
could not find any log in the client machine and neither I couldn't find
the option "debug rule execution" described here
https://mathias-kettner.de/checkmk_mkeventd_internals.html
thanks in advance for your help.
regards,
Pablo.
_______________________________________________
checkmk-en mailing list
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Loading...