NSClient - ERROR: Invalid password

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
micropact
Posts: 24
Joined: Thu Dec 19, 2013 3:56 pm

NSClient - ERROR: Invalid password

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NSClient - ERROR: Invalid password

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
micropact
Posts: 24
Joined: Thu Dec 19, 2013 3:56 pm

Re: NSClient - ERROR: Invalid password

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NSClient - ERROR: Invalid password

Post 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.
Locked