Good Afternoon,
i would have posted this under customer support because we have a support agreement with you guys however we have not been approved to be a member of the customers group.
we are in the process of migrating from Nagios XI 2009R1.3F to Nagios XI 2014R1.3 now we have tried to recreate some of our commands in the new system to monitor the systems this is the command in particular we are having an issue with using the password option.
$USER1$/check_nt -H $HOSTADDRESS$ -l "$ARG1$,$ARG2$,$ARG3$" -s "$_HOSTNSCLIENT_PWD$" -p 12489 -v CPULOAD -t 15
we have the password for each host as a variable definition declared as _NSCLIENT_PWD.
on one of the servers log file its producing this output
2014-07-22 12:31:48: error:modules\NSClientListener\NSClientListener.cpp:160: Invalid password ($).
so i managed to find a few bits of information online and tried using the password defined for the host in the following format <password> as part of the command. when that was done we no longer got the invalid password entry in the log file but it produced no output.
we can not define the password in the command as we are a data centre and montior a number of hosts and each host has its own nsclient password.
our command worked fine in Nagios XI 2009R1.3F but currently no joy in the version we are using now.
Thanks in advance
Daniel Cook
Support Technician
Asckey Data Services
NSClient - Invalid Password
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: NSClient - Invalid Password
I configured a command, host and service as per how you've described and it all worked OK.
Code: Select all
define command {
command_name a_test
command_line $USER1$/check_nt -H $HOSTADDRESS$ -l "$ARG1$,$ARG2$,$ARG3$" -s "$_HOSTNSCLIENT_PWD$" -p 12489 -v CPULOAD -t 15
}
define host {
host_name Test 2008 R2 NSClient 3
use linux-server
address 10.25.14.1
_NSCLIENT_PWD secret-password
register 1
}
define service {
host_name Test 2008 R2 NSClient 3
service_description CPU LOAD
use local-service
check_command a_test!5!10!15!!!!!
register 1
}
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: NSClient - Invalid Password
Thanks for the reply, it appears that the command function within the hosts and services gui in 2014.0 R1.3 is not functioning correctly therefore returning in correctly we have made the amendments and appears to be working.
Thanks Again
Thanks Again