Page 1 of 1
Windows agent issue
Posted: Tue May 03, 2016 1:26 am
by raamardhani7
Hi Team,
We have installed NSCLIENT++ on the server, when we are running it from CLI, it is pulling the information. From portal it is showing critical Values.
Code: Select all
/usr/local/nagios/libexec/check_nt -H XX.XX.XX.XX -s "password" -p 12489 -v CPULOAD -l 5,80,90
CPU Load 1% (5 min average) | '5 min avg Load'=1%;80;90;0;100
Code: Select all
nmap -p 12489 XX.XX.XX.XX
Starting Nmap 6.47 ( http://nmap.org ) at 2016-05-03 01:08 CDT
Nmap scan report for 10.10.80.111
Host is up (0.010s latency).
PORT STATE SERVICE
12489/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.41 seconds
Could someone help me here, thanks.
Re: Windows agent issue
Posted: Tue May 03, 2016 1:31 am
by Box293
Can you please go into CCM and find your host and service objects and paste the text definitions here.
Click the disk icon next to the host or service in CCM to see the text definitions.
Re: Windows agent issue
Posted: Tue May 03, 2016 10:16 am
by raamardhani7
Box293 wrote:Can you please go into CCM and find your host and service objects and paste the text definitions here.
Click the disk icon next to the host or service in CCM to see the text definitions.
Hi Box,
Please find the update from CCM.
Code: Select all
check_xi_service_nsclient!password!CPULOAD!-l 5,80,90
Code: Select all
/usr/local/nagios/libexec/check_nt -H XX.XX.XX.XX -s "password" -p 12489 -v CPULOAD -l 5,80,90
CPU Load 1% (5 min average) | '5 min avg Load'=1%;80;90;0;100
Re: Windows agent issue
Posted: Tue May 03, 2016 10:40 am
by lmiltchev
Do you have any special characters in the password?
Can you show us the actual host and service objects text definitions as requested by Box293?
CCM->Hosts-><your host>->View Text Config (the diskette icon)
CCM->Services-><your service>->View Text Config (the diskette icon)
example01.PNG
Re: Windows agent issue
Posted: Tue May 03, 2016 10:55 am
by raamardhani7
lmiltchev wrote:Do you have any special characters in the password?
Can you show us the actual host and service objects text definitions as requested by Box293?
CCM->Hosts-><your host>->View Text Config (the diskette icon)
CCM->Services-><your service>->View Text Config (the diskette icon)
example01.PNG
Hi,
There are no special characters in the password.
Code: Select all
###############################################################################
#
# Host configuration file
#
# Created by: Nagios Core Config Manager 2.5.2
# Date: 2016-05-03 10:53:24
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define host {
host_name WUSRCDPWC00.fossil.com_10.10.80.111_Bronze_Virtual_NA
use xiwizard_windowsserver_host
address 10.10.80.11
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts cruz,monitoring,servicenow,servicenowtest,Windows Server Team
notification_interval 60
notification_period xi_timeperiod_24x7
icon_image win_server.png
statusmap_image win_server.png
_xiwizard windowsserver
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
Code: Select all
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.5.2
# Date: 2016-05-03 10:54:35
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
host_name WUSRCDPWC00.fossil.com_10.10.80.111_Bronze_Virtual_NA
service_description CPU Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!password!CPULOAD!-l 5,80,90
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts cruz,monitoring,servicenow,Windows Server Team
_xiwizard windowsserver
register 1
}
Re: Windows agent issue
Posted: Tue May 03, 2016 11:37 am
by lmiltchev
/usr/local/nagios/libexec/check_nt -H XX.XX.XX.XX -s "password" -p 12489 -v CPULOAD -l 5,80,90
CPU Load 1% (5 min average) | '5 min avg Load'=1%;80;90;0;100
What you tested your check from the CLI, did you use 10.10.80.11 or 10.10.80.111? The reason I am asking this is because you have "10.10.80.11" in the address directive, and "10.10.80.111" - in the host_name directive... Is this a typo?
Other than that, your configs look fine.
Re: Windows agent issue
Posted: Tue May 03, 2016 12:05 pm
by raamardhani7
lmiltchev wrote:/usr/local/nagios/libexec/check_nt -H XX.XX.XX.XX -s "password" -p 12489 -v CPULOAD -l 5,80,90
CPU Load 1% (5 min average) | '5 min avg Load'=1%;80;90;0;100
What you tested your check from the CLI, did you use 10.10.80.11 or 10.10.80.111? The reason I am asking this is because you have "10.10.80.11" in the address directive, and "10.10.80.111" - in the host_name directive... Is this a typo?
Other than that, your configs look fine.
That's a good catch!!! My Bad I didn't checked this. thanks a lot, this sorted my issue.
small query:
How can I change the mail notification updated for 8 hours for all the hosts and services?
host_freshness_check_interval=60 is the same parameter that I need to update for all the services or anything else. please advise. thanks.
Re: Windows agent issue
Posted: Tue May 03, 2016 1:11 pm
by lmiltchev
That's a good catch!!! My Bad I didn't checked this. thanks a lot, this sorted my issue.
I am glad I could help!
small query:
How can I change the mail notification updated for 8 hours for all the hosts and services?
host_freshness_check_interval=60 is the same parameter that I need to update for all the services or anything else. please advise. thanks.
Are you talking about modifying the notification_interval?
Service - notification interval
This directive is used to define the number of "time units" to wait before re-notifying a contact that this service is still in a non-OK state. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this service - only one problem notification will be sent out.
Parameter name: notification_interval
Required: yes
You can enter "480" in the "Notification interval" filed under "Service Management" for each service (CCM->Services-><your service>->Alert Settings), save and apply configuration.
You could modify "notification_interval" for all hosts/services "in bulk" via the "Bulk Modifications" tool, which is part of
Nagios XI Enterprise Edition. If you don't want to purchase Enterprise, you could just start a free, fully functional 60-day trial, and get the job done.
Hope this helps.
Re: Windows agent issue
Posted: Tue May 03, 2016 1:32 pm
by tmcdonald
raamardhani7 wrote:small query:
How can I change the mail notification updated for 8 hours for all the hosts and services?
host_freshness_check_interval=60 is the same parameter that I need to update for all the services or anything else. please advise. thanks.
Can you open this up as a new thread? We like to keep threads limited in scope to a single issue so they are easier to follow in the future for reference.
Re: Windows agent issue
Posted: Wed May 04, 2016 1:42 am
by raamardhani7
tmcdonald wrote:raamardhani7 wrote:small query:
How can I change the mail notification updated for 8 hours for all the hosts and services?
host_freshness_check_interval=60 is the same parameter that I need to update for all the services or anything else. please advise. thanks.
Can you open this up as a new thread? We like to keep threads limited in scope to a single issue so they are easier to follow in the future for reference.
Sure, please close this thread. thanks.