Nagios Wizards no longer creating hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
spasq01
Posts: 17
Joined: Fri Jun 04, 2010 3:47 pm

Re: Nagios Wizards no longer creating hosts

Post by spasq01 »

Sorry but I'm not a Linux guy. I can only do basic stuff so I am not fluent in Penguin talk. I apologize if my posts aren't clear enough for you but I don't know what other details you need. I explained exactly what I did and what the outcome was. I would happily try what cczp1 did if someone could give me some direction on how to do that.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Nagios Wizards no longer creating hosts

Post by mmestnik »

You just need to relay information to me, I can't see over your shoulder or otherwise read your mind... Honestly I'm not that smart. Why would you even consider that you need to speak some bizarre voodoo language to communicate? The ppl who are spreading this blarney just don't want to see you succeed.

You need a good old fission 3rd quarter prep talk, but you are trying to get one from a 7th level Dungeon master. I've never even talked to my high school football coach.

"You can remember what happened and you know why." You just don't know that you know what's going on because you can't connect what you know and what you see with how things work. I know all about how these things work, so if you share with me the entire hay stack I can pull out the needle that's causing this.

You indicate that if we were to take the 1.1H VM image and then add hosts using the wizard that it would work up to a point and then stop? At what point did it stop, when did you enable "your vary own" /proxy server/(Used as a pronoun in-place of your real problem)?
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Nagios Wizards no longer creating hosts

Post by tonyyarusso »

cczcp1 wrote: After this, the only other issue (which I'm still fighting with) is; after every yum package update I get the error:-

Code: Select all

./1-prereqs: line 15: rpmdev-vercmp: command not found
./1-prereqs: line 15: rpmdev-vercmp: command not found
./1-prereqs: line 15: rpmdev-vercmp: command not found
./1-prereqs: line 15: rpmdev-vercmp: command not found
There doesn't appear to be any errors after this so I hope its safe to ignore it, but thought I better post it just incase.
Installing the rpmdevtools package ('rpm -yq install rpmdevtools') will fix this error. The rpmdev-vercmp command is used to install perl modules, which you may need for certain things.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
cczcp1
Posts: 11
Joined: Wed Jan 06, 2010 8:47 am

Re: Nagios Wizards no longer creating hosts

Post by cczcp1 »

mmestnik wrote:cczp1, so I would have had to configure tsocks to duplicate your problem? or are you just using the environment variables that AFAIK most of the check commands will ignore?
Sorry? I'm not quite following where check commands come into this?
In the long run we've fixed the Nagios wizards by upgrading to Nagios 2009R1.2

During the first upgrade attempt, it did seem to fix this problem however a further issue came about where the "Verifying Configs" would never actually finish leaving a series of .... (despite the host being created).
This last issue was fixed by ensuring that during running the upgrade script, wget wouldn't connect to the proxy servers when trying to pull content from the localhost.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Nagios Wizards no longer creating hosts

Post by mmestnik »

I would like to duplicate your configuration, so I'm inquiring as to how a proxy server could influence applications on the XI server. I'd also like to understand why you are using a proxy, so that future versions would have a proper work around.

Seams like you made a small mistake setting up your proxy server by not omitting localhost, correct?
spasq01
Posts: 17
Joined: Fri Jun 04, 2010 3:47 pm

Re: Nagios Wizards no longer creating hosts

Post by spasq01 »

You indicate that if we were to take the 1.1H VM image and then add hosts using the wizard that it would work up to a point and then stop? At what point did it stop, when did you enable "your vary own" /proxy server/(Used as a pronoun in-place of your real problem)?
That exactly what happened. One day it worked and then all of a sudden it no longer worked. I really didn't do much in the ways of altering the default configuration. The only thing I can remember doing is changing the default admin user name and password. Maybe the wizard uses those credentials to create the new hosts and now it's failing because I changed those credentials? Unlikely. But that's the only thing I can think of. I was only using it for a day or two before it stopped working.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Nagios Wizards no longer creating hosts

Post by mmestnik »

That's it, the NagiosQL password might be out of sync. Go to the Reset Credentials screen under Admin.
spasq01
Posts: 17
Joined: Fri Jun 04, 2010 3:47 pm

Re: Nagios Wizards no longer creating hosts

Post by spasq01 »

Ding Ding Ding...we have a winner.
cczcp1
Posts: 11
Joined: Wed Jan 06, 2010 8:47 am

Re: Nagios Wizards no longer creating hosts

Post by cczcp1 »

mmestnik wrote:I would like to duplicate your configuration, so I'm inquiring as to how a proxy server could influence applications on the XI server. I'd also like to understand why you are using a proxy, so that future versions would have a proper work around.

Seams like you made a small mistake setting up your proxy server by not omitting localhost, correct?
Yes, you are right. I made the mistake of not omitting the localhost when setting my proxy settings.
Just to give you a bit of insight to our network, we push all of our external HTTP traffic through our proxy servers.
Whilst the config in the proxy pac file (used for Windows clients & servers) does automatically omit the localhost and internal traffic, our *nix servers have their proxy settings configured manually.
During the upgrade, it appears that the script uses wget to pull the config files back (/usr/local/nagios/etc/import/____.cfg) from the localhost which would timeout when trying to access via the proxy.

Thanks so much for your help, hopefully this will go some way to helping anyone else in the same situation (whether it be the same problem as what I had or what spasq01 had.

Cheers
CP.
spasq01 wrote:Ding Ding Ding...we have a winner.
Well done sir ;)
cczcp1
Posts: 11
Joined: Wed Jan 06, 2010 8:47 am

Re: Nagios Wizards no longer creating hosts

Post by cczcp1 »

tonyyarusso wrote:
cczcp1 wrote: After this, the only other issue (which I'm still fighting with) is; after every yum package update I get the error:-

Code: Select all

./1-prereqs: line 15: rpmdev-vercmp: command not found
./1-prereqs: line 15: rpmdev-vercmp: command not found
./1-prereqs: line 15: rpmdev-vercmp: command not found
./1-prereqs: line 15: rpmdev-vercmp: command not found
There doesn't appear to be any errors after this so I hope its safe to ignore it, but thought I better post it just incase.
Installing the rpmdevtools package ('rpm -yq install rpmdevtools') will fix this error. The rpmdev-vercmp command is used to install perl modules, which you may need for certain things.
I've looked high and low for this package and its a real problem to locate. Anyone have any suggestions?

Cheers
CP
Locked