Page 2 of 5
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Dec 26, 2013 2:18 pm
by rashidaq
I am getting SNMP results from that host on the Nagios such as syscpu and memcpu and system level snmp
so snmp is set to -v2c and community string too and snmpd enabled
but when doing the process check thru nagios it says connection refused
thanks
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Dec 26, 2013 2:27 pm
by slansing
Do you have UDP port 161 open on the remote host? We also need to know what type of system this is, Windows, *nix "if so what distro," etc.
We need to you answer our questions accurately so we can help you. Can you also post the following here:
Navigate to Configure > CCM > Services > "click the diskette icon next to your service that is returning the connection refused" and paste the output on that page in a reply here "
In code wraps."
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Dec 26, 2013 3:04 pm
by rashidaq
here is the results for the host connection refused, collected from disk icon
-----------------------------
Code: Select all
##############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2013-12-26 11:09:17
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define service {
host_name 192.168.156.183
service_description / Disk Usage
use xiwizard_nrpe_service
check_command check_nrpe!check_disk!-a '-w 20% -c 10% -p /'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description /var/log Disk Usage
use xiwizard_nrpe_service
check_command check_nrpe!check_disk!-a '-w 20% -c 10% -p /var/log'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description Apache Web Server
use xiwizard_nrpe_service
check_command check_nrpe!check_init_service!-a 'httpd'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description CPU Stats
use xiwizard_nrpe_service
check_command check_nrpe!check_cpu_stats!-a '-w 85 -c 95'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description Cron Scheduling Daemon
use xiwizard_nrpe_service
check_command check_nrpe!check_init_service!-a 'crond'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description freeswitch
use xiwizard_nrpe_service
check_command check_nrpe!check_services!-a 'freeswitch'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description hrSWRunPerfCPU.1629
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o hrSWRunPerfCPU.1629 -C DCSZONEA -P 2c -l "RED5 Java" -m HOST-RESOURCES-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description hrSWRunPerfMem.1629
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o hrSWRunPerfMem.1629 -C DCSZONEA -P 2c -l "RED5 Java Mem" -m HOST-RESOURCES-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description Java
use xiwizard_snmp_service,xiwizard_nrpe_service
check_command check_nrpe!check_services!-a 'java'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description Load
use xiwizard_nrpe_service
check_command check_nrpe!check_load!-a '-w 15,10,5 -c 30,20,10'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description Memory Usage
use xiwizard_nrpe_service
check_command check_nrpe!check_mem!-a '-w 20 -c 10'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description MySQL Server
use xiwizard_nrpe_service
check_command check_nrpe!check_init_service!-a 'mysqld'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description Open Files
use xiwizard_nrpe_service
check_command check_nrpe!check_open_files!-a '-w 30 -c 50'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description red5 Java
use xiwizard_nrpe_service
check_command check_nrpe!check_services!-a 'red5'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description ssCpuIdle.0
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o ssCpuIdle.0 -C DCSZONEA -P 2c -m UCD-SNMP-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description ssCpuRawIdle.0
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o ssCpuRawIdle.0 -C DCSZONEA -P 2c -m UCD-SNMP-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description ssCpuRawKernel.0
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o ssCpuRawKernel.0 -C DCSZONEA -P 2c -m UCD-SNMP-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description ssCpuRawNice.0
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o ssCpuRawNice.0 -C DCSZONEA -P 2c -m UCD-SNMP-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description ssCpuRawSystem.0
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o ssCpuRawSystem.0 -C DCSZONEA -P 2c -m UCD-SNMP-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description ssCpuRawUser.0
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o ssCpuRawUser.0 -C DCSZONEA -P 2c -m UCD-SNMP-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description ssCpuRawWait.0
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o ssCpuRawWait.0 -C DCSZONEA -P 2c -m UCD-SNMP-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description ssCpuSystem.0
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o ssCpuSystem.0 -C DCSZONEA -P 2c -m UCD-SNMP-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description ssCpuUser.0
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o ssCpuUser.0 -C DCSZONEA -P 2c -m UCD-SNMP-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description SSH Server
use xiwizard_nrpe_service
check_command check_nrpe!check_init_service!-a 'sshd'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description Swap Usage
use xiwizard_nrpe_service
check_command check_nrpe!check_swap!-a '-w 50 -c 20'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description System Logging Daemon
use xiwizard_nrpe_service
check_command check_nrpe!check_init_service!-a 'syslog'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description TomCat Java CPU usage
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o hrSWRunPerfCPU.1424 -C DCSZONEA -P 2c -m HOST-RESOURCES-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description TomCat Java Mem
use xiwizard_snmp_service
check_command check_xi_service_snmp! -p 161 -o hrSWRunPerfMem.1424 -C DCSZONEA -P 2c -m HOST-RESOURCES-MIB
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard snmpwalk
register 1
}
define service {
host_name 192.168.156.183
service_description Total Processes
use xiwizard_nrpe_service
check_command check_nrpe!check_procs!-a '-w 150 -c 250'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
define service {
host_name 192.168.156.183
service_description Users
use xiwizard_nrpe_service
check_command check_nrpe!check_users!-a '-w 5 -c 10'
max_check_attempts 5
check_interval 5
retry_interval 5
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard linux-server
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Dec 26, 2013 3:37 pm
by slansing
Okay, so there are quite a few service checks beyond what we needed, I was hoping to get the same service configuration that you noted beforehand. If this is in fact a NRPE check is port 5666 open on the remote host? Can you run the following from the nagios CLI and share it's output:
Code: Select all
nmap -p 5666,162 <address of remote host>
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Dec 26, 2013 3:42 pm
by rashidaq
Here is the attached
thanks in advance
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Dec 26, 2013 3:55 pm
by slansing
Can you run the following from the nagios CLI and share it's output:
Code: Select all
nmap -p 5666,162 <address of remote host>
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Dec 26, 2013 4:41 pm
by rashidaq
here is the result
[root@nagios tmp]# nmap -p 5666,162 192.168.156.183
Starting Nmap 5.51 (
http://nmap.org ) at 2013-12-26 12:48 EST
Nmap scan report for 192.168.156.183
Host is up (0.00070s latency).
PORT STATE SERVICE
162/tcp closed snmptrap
5666/tcp closed nrpe
Nmap done: 1 IP address (1 host up) scanned in 0.59 seconds
You have new mail in /var/spool/mail/root
thanks
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Dec 26, 2013 5:12 pm
by rashidaq
it seems I have to install npre agents and plugins to
But we have several of these servers in the Virtual(VMware) form too for a cloud setup
thanks
Ras
Re: Nagios XI SNMP collection on discovery mode
Posted: Thu Dec 26, 2013 6:54 pm
by sreinhardt
You are correct, to use check_nrpe, you do need to install the nrpe\nsca agent on the remote system. However there is also the alternative of check_by_ssh, which would only require the plugins or scripts you wish to run, and a user for nagios to login and execute as.
Re: Nagios XI SNMP collection on discovery mode
Posted: Fri Dec 27, 2013 9:11 am
by rashidaq
thanks Steven
the mysql process is monitored by nagios successfully, but why cant other apps/processes by monitored by Nagios without any
host installation?
you suggested that
"However there is also the alternative of check_by_ssh, which would only require the plugins or scripts you wish to run, and a user for nagios to login and execute as."
these plugins and scripts are run on the monitored host?
how to do this check_by_ssh and then run the scripts or plugins, where?
please explain?
Ras