1.lmiltchev wrote:1.Code: Select all
grep nag /etc/group3. Also, I wanted to see the "nagios.conf", not the "nagios.cfg". It should be in: "/etc/httpd/conf.d/nagios.conf".Code: Select all
2. service iptables stop
Code: Select all
nagios:x:501:
nagcmd:x:502:nagios,apacheCode: Select all
service iptables start3. <>
edit:
Okay, tried to make my own command for active checks. This survives the validation check:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgCode: Select all
define command{
command_name check_ncpa
command_line /usr/local/nagios/libexec/./check_ncpa.py -H $HOSTADDRESS$ -t nagi_os_NCPA -M CPU/Percentage
}
define service{
use generic-service
host_name winserver
service_description NCPA CPU Percent
check_command check_ncpa
}Code: Select all
(Return code of 13 is out of bounds)Also, I've tried to use added arguments:
Code: Select all
define command{
command_name check_ncpa
command_line /usr/local/nagios/libexec/check_ncpa.py -H $HOSTADDRESS$ -t nagi_os_NCPA -M $ARG1$
}
define service{
use generic-service
host_name winserver
service_description NCPA CPU Percent
check_command check_ncpa|CPU
}Code: Select all
Error: Service check command 'check_ncpa|CPU' specified in service 'NCPA CPU Percent' for host 'winserver' not defined anywhere!