PDA

View Full Version : beginners question about adding services/hosts


jsl123
06-10-2008, 09:58 PM
Apologies for the simplicity of the question but i couldn't find any other answer.

I'm using centreon 2 as i'm using nagios 3, i've created a service under localhost ok and i can see it in the configuration screen, but it doesn't show up under the monitoring side of things. I suspected i'd need to export and restart nagios which i've done but still no joy.

What have i missed - i'm guessing something extremely obvious...

Getro
06-11-2008, 01:25 AM
Hi,

Can you experiment this :
- create a new host
- assign the template Linux Servers to it if it's a Linux machine
- export and restart nagios.

Can you see anything in the monitoring side ?

jsl123
06-11-2008, 09:16 PM
Ok, i've restarted and exported nagios with no effect - however if i select "move export files" then i get the new host and the services appear. I'm guessing that export without move is for checking the config files? Maybe there should be another button called "check" instead of the "move export files" checkbox?

Additionally, the graphs for the new services are generated automatically, which answers another question i have about graphs. see
http://forum.centreon.com/showthread.php?t=5962 where i've put more details.

However going back to the creation of a new host:

2 things have happened:

I now get some errors on the original centreon host

UNKNOWN: Received noSuchName(2) error-status at error-index 3.
ERROR: Description Table hrStorageType : Requested table is empty or does not exist.

Some of the services have disappeared (Http, SSH) from memory


However I have just powered up the machine so those problems may have happened during the reboot. I did notice the other day that a change i made to the index_data table disappeared after a reboot.. Some wierd mysql problem possibly?
I'm going to do a fresh install, make sure it survives reboots and try again...

Any suggestions

jsl123
06-15-2008, 07:41 PM
OK those errors are caused by snmpd.

With a basic ubuntu setup you need to make a couple of changes.

- need to add disks and load values to snmpd
- need to give public read access

also, for some reason the memory value for the default host is set to use the "remote storage" plugin which is fine except that the value name has a capital 'S' for the word Space and snmpd expects it in lowercase...

Secondly, the services have disappeared as they are the original nagios ones, but the default centreon config doesn't have them, by exporting the nagios spec you change over the service list - hence the changes. Also the errors are caused by the original nagios commands not using snmp