Page 1 of 1

Nagios NCPA.py disk check

Posted: Mon Feb 15, 2021 5:40 am
by filips
Hello, I use ncpa.py to check linux servers and have a problem with partitions.

Only first service is working fine, but the others not.

Code: Select all

define service {

    use                     linux-service
    hostgroup_name          linux_backup_servers,linux_dns_servers,linux_web_servers,linux_mail_servers
    service_description     Disk free space.
    check_command           check_ncpa!-H $HOSTADDRESS$ -t 'nagios' -P 12489 -M 'disk/logical/|/used_percent' -w 80 -c 90 -u G
}
define service {

    use                     linux-service
    hostgroup_name          linux_backup_servers
    service_description     Disk space root
    check_command           check_ncpa!-H $HOSTADDRESS$ -t 'nagios' -P 12489 -M 'disk/logical/|var/used'
}
define service {

    use                     linux-service
    hostgroup_name          linux_backup_servers
    service_description     Disk space root2
    check_command           check_ncpa!-H $HOSTADDRESS$ -t 'nagios' -P 12489 -M 'disk/logical/|boot/used_percent' -w 80 -c 90
}
define service {

    use                     linux-service
    hostgroup_name          linux_backup_servers
    service_description     Disk space root3
    check_command           check_ncpa!-H $HOSTADDRESS$ -t 'nagios' -P 12489 -M 'disk/logical/|var/used'
}
Image

What's wrong ?