Ad Widget

Collapse

vfs.fs.size[] not working consistantly

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SATux
    started a topic vfs.fs.size[] not working consistantly

    vfs.fs.size[] not working consistantly

    Hi,

    I have a couple of boxes running CentOS 5.2. They have lots of mount points that are the same. I need to monitor all the partitions.

    I have a template that I link to each box.

    It looks like the following:

    Code:
    Free disk space on /data/3311 in % 	vfs.fs.size[/data/3311,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3311/logs/repl in % 	vfs.fs.size[/data/3311/logs/repl,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3311/logs/tx in % 	vfs.fs.size[/data/3311/logs/tx,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3312 in % 	vfs.fs.size[/data/3312,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3312/logs in % 	vfs.fs.size[/data/3312/logs,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3313 in % 	vfs.fs.size[/data/3313,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3313/logs in % 	vfs.fs.size[/data/3313/logs,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3314 in % 	vfs.fs.size[/data/3314,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3314/logs/repl in % 	vfs.fs.size[/data/3314/logs/repl,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3314/logs/tx in % 	vfs.fs.size[/data/3314/logs/tx,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3315 in % 	vfs.fs.size[/data/3315,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3316 in % 	vfs.fs.size[/data/3316,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Free disk space on /data/3316/logs in % 	vfs.fs.size[/data/3316/logs,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    The partitions look like this:
    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/san_vg0-root
                          4.8G  3.8G  766M  84% /
    /dev/sda1              99M   41M   54M  44% /boot
    tmpfs                  16G     0   16G   0% /dev/shm
    /dev/mapper/san_vg1-tmp
                          9.9G  154M  9.2G   2% /tmp
    /dev/mapper/san_vg1-data_3311
                           50G  572M   47G   2% /data/3311
    /dev/mapper/san_vg1-data_3311_logs_repl
                           20G  2.2G   17G  12% /data/3311/logs/repl
    /dev/mapper/san_vg1-data_3311_logs_tx
                           20G  594M   19G   4% /data/3311/logs/tx
    /dev/mapper/san_vg1-data_3312
                           15G  3.6G   11G  26% /data/3312
    /dev/mapper/san_vg1-data_3312_logs
                           15G  4.5G  9.6G  33% /data/3312/logs
    /dev/mapper/san_vg1-data_3313
                           20G  1.9G   17G  11% /data/3313
    /dev/mapper/san_vg1-data_3313_logs
                           20G  226M   19G   2% /data/3313/logs
    /dev/mapper/san_vg1-data_3314
                           50G  8.1G   39G  18% /data/3314
    /dev/mapper/san_vg1-data_3314_logs_repl
                           20G  2.1G   17G  11% /data/3314/logs/repl
    /dev/mapper/san_vg1-data_3314_logs_tx
                           20G  856M   18G   5% /data/3314/logs/tx
    /dev/mapper/san_vg1-data_3315
                          9.9G  656M  8.8G   7% /data/3315
    /dev/mapper/san_vg1-data_3316
                           20G  767M   18G   5% /data/3316
    /dev/mapper/san_vg1-data_3316_logs
                           20G  634M   19G   4% /data/3316/logs
    Box one looks like this:

    Code:
    Template_Connect_DB_Servers:Free disk space on /data/3311 in % 	vfs.fs.size[/data/3311,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Template_Connect_DB_Servers:Free disk space on /data/3311/logs/repl in % 	vfs.fs.size[/data/3311/logs/repl,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Template_Connect_DB_Servers:Free disk space on /data/3311/logs/tx in % 	vfs.fs.size[/data/3311/logs/tx,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Template_Connect_DB_Servers:Free disk space on /data/3312 in % 	vfs.fs.size[/data/3312,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Template_Connect_DB_Servers:Free disk space on /data/3312/logs in % 	vfs.fs.size[/data/3312/logs,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3313 in % 	vfs.fs.size[/data/3313,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Template_Connect_DB_Servers:Free disk space on /data/3313/logs in % 	vfs.fs.size[/data/3313/logs,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3314 in % 	vfs.fs.size[/data/3314,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Template_Connect_DB_Servers:Free disk space on /data/3314/logs/repl in % 	vfs.fs.size[/data/3314/logs/repl,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3314/logs/tx in % 	vfs.fs.size[/data/3314/logs/tx,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3315 in % 	vfs.fs.size[/data/3315,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Template_Connect_DB_Servers:Free disk space on /data/3316 in % 	vfs.fs.size[/data/3316,pfree] 	30 	90 	365 	ZABBIX agent 	Active 	Connect DB Filesystem 	-
    Template_Connect_DB_Servers:Free disk space on /data/3316/logs in % 	vfs.fs.size[/data/3316/logs,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    You can see some of the checks show up as Not supported.

    another box looks like this:

    Code:
    Template_Connect_DB_Servers:Free disk space on /data/3311 in % 	vfs.fs.size[/data/3311,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3311/logs/repl in % 	vfs.fs.size[/data/3311/logs/repl,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3311/logs/tx in % 	vfs.fs.size[/data/3311/logs/tx,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3312 in % 	vfs.fs.size[/data/3312,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3312/logs in % 	vfs.fs.size[/data/3312/logs,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3313 in % 	vfs.fs.size[/data/3313,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3313/logs in % 	vfs.fs.size[/data/3313/logs,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3314 in % 	vfs.fs.size[/data/3314,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3314/logs/repl in % 	vfs.fs.size[/data/3314/logs/repl,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3314/logs/tx in % 	vfs.fs.size[/data/3314/logs/tx,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3315 in % 	vfs.fs.size[/data/3315,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3316 in % 	vfs.fs.size[/data/3316,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    Template_Connect_DB_Servers:Free disk space on /data/3316/logs in % 	vfs.fs.size[/data/3316/logs,pfree] 	30 	90 	365 	ZABBIX agent 	Not supported 	Connect DB Filesystem 	Not supported by ZABBIX agent
    This box, nothing is supported.

    I am running version 1.6.4 of the agent and server.

    Can anyone help me out here before I have to resort to a Userparameter check.

    Thank
    Craig

    EDIT:

    zabbix_agentd logs this:
    Code:
     24713:20090608:150441 In check_security()
     24713:20090608:150441 Requested [vfs.fs.size[/data/3311,pfree]]
     24713:20090608:150441 Sending back [ZBX_NOTSUPPORTED]
    but testing it on the command line it works:
    Code:
    S1  [[email protected]:~]  # zabbix_agentd -t vfs.fs.size[/data/3311,pfree]
    vfs.fs.size[/data/3311,pfree]                 [d|93.786600]
    Last edited by SATux; 08-06-2009, 15:08. Reason: More info

  • nshenry03
    replied
    Solution (what worked for me)

    I was having the same problem, but thanks to 'SATux' mentioning that it was permissions for him, I was able to resolve the issue:

    Permission denied for zabbix user:
    Code:
    [email protected]:~# su zabbix -s /bin/bash -c "df -h /home/ftp/private/someuser"
    df: `/home/ftp/private/someuser': Permission denied
    df: no file systems processed
    Fix permissions with setfacl
    Notes:
    * Access Control Lists (ACLs) are not enabled by default on most Linux distros as far as I've seen, you may prefer to add zabbix to a specific group that already has access to the directories or use another method to fix the permissions issue
    * Zabbix did not have access to two directories ('private' and 'someuser') You may have to add access to additional directories as well. One way to test is with (just issue the command and see if you get a permissions issue): su zabbix -s /bin/bash -c "cd /home/ftp"
    Code:
    [email protected]:~# setfacl -m u:zabbix:rx /home/ftp/private
    [email protected]:~# setfacl -m u:zabbix:rx /home/ftp/private/someuser
    After that, I was able to issue the 'df' command as zabbix from the command line on the server and I was able to then go back and re-activate all of the items and triggers for the host.

    Leave a comment:


  • ashrocks
    replied
    can you elaborate

    Hi,

    I am having the same problem.
    Mine is a ubuntu OS

    You can atleast get some data in CLI
    But my log file shows the same error
    Which directory should i give permissions.
    or does zabbix user needs sudo previleges.
    Thanks.

    Leave a comment:


  • SATux
    replied
    Solved

    Found the problem. The mount point permissions did not allow zabbix user to have access.

    Leave a comment:

Announcement

Collapse
No announcement yet.
Working...
X