Page 1 of 1

NSClient - ERROR: Invalid password

Posted: Tue Feb 25, 2014 3:35 pm
by micropact
Hello,

We have an issue on one of our hosts where we get an NSClient - ERROR: Invalid password when trying to monitor one of the services on this host. Monitoring of every service seems to work fine.

The error we see in the host detail screen is:
Apache 2.2 Unknown 10m 37s 5/5 2014-02-25 15:32:48 NSClient - ERROR: Invalid password.

Here is the code thta defines the service:

Code: Select all

define service {
        host_name                       HQ-MP-PROXY-02
        service_description             Apache 2.2
        use                             xiwizard_windowsserver_nsclient_service
        check_command                   check_xi_service_nsclient!!SERVICESTATE!-l Apache2.2 -d SHOWALL
        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                       windowsserver
        register                        1
        }
We're monitoring other services on the same host using the nsclient and don't have any problems.

Any help would be appreciated.

Nate

Re: NSClient - ERROR: Invalid password

Posted: Tue Feb 25, 2014 4:09 pm
by lmiltchev
Are you using a password with NSClient++? You should have:
check_command check_xi_service_nsclient!your password goes here!SERVICESTATE!-l Apache2.2 -d SHOWALL
Are the "working" services defined with a password?

Re: NSClient - ERROR: Invalid password

Posted: Tue Feb 25, 2014 4:46 pm
by micropact
yes, that's really strange. All of the other commands are defined with a password except that one. I created them all in the Wizzard the same way.

Re: NSClient - ERROR: Invalid password

Posted: Tue Feb 25, 2014 5:07 pm
by slansing
Odd, and they are all monitoring services? Just like this one? Hmm.... How many did you add at once via the wizard, was this one on the last table from that step? You can add the password in via the CCM. CCM > Services > 'service name' > add the password in the $ARG1$ slot, and apply configuration.