Nagios NCPA.py disk check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
filips
Posts: 6
Joined: Tue Jul 14, 2020 8:02 am

Nagios NCPA.py disk check

Post 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 ?
Locked