Pandora FMS Community

AIX agent not seen

otherbot · 21 oct 2007, 5:29 · 11 mensajes · 74 visitas

  1. Inicio del debate

    Any ideas on how to troubleshoot AIX agent? I've got the ssh keys exchanged. I've tested by ssh'ing from the AIX agent host to the Pandora console without needing a password. When I put the agent in debug mode, here is what is in pandora.log 2007/10/20 21:07:12 - Reading general config parameters from .conf file 2007/10/20 21:07:12 - [SETUP] - Server IP Address is xxx.xxx.xxx.xxx 2007/10/20 21:07:12 - [SETUP] - Server Path is /var/spool/pandora/data_in 2007/10/20 21:07:12 - [SETUP] - Temporal Path is /var/spool/pandora/data_out 2007/10/20 21:07:12 - [SETUP] - Interval is 300 seconds 2007/10/20 21:07:12 - [SETUP] - Checksum mode is 0 2007/10/20 21:07:12 - [SETUP] - Debug mode 1 2007/10/20 21:07:12 - [SETUP] - Transfer Mode is ssh 2007/10/20 21:07:12 - [SETUP] - PandoraFMS Nice is 10 (**) Warning: Running in DEBUG mode renice: 0509-040 10: getpriority: The process does not exist. 2007/10/20 21:07:14 - Reading module adquisition data from .conf file 2007/10/20 21:07:14 - Finish writing XML /var/spool/pandora/data_out/sagan.14071021.data 2007/10/20 21:07:14 - Finish writing XML /var/spool/pandora/data_out/sagan.14071021.data (**) Data file is at /var/spool/pandora/data_out/sagan.14071021.data - Exiting now I have one other agent running. It's a Windows workstation and is visible from the Pandora console. But when I try to get info on the AIX agent, it says "This agent doesn't have any monitor" and shows no successful contacts from the agent. Thanks for the help. otherbot

  2. I guess you know if you put the agent in debug mode it's generated but it's not copied to the pandora server. What happens if you copy the XML generated (when setting up the debug) manually to the /var/spool/pandora/data_in on the server machine? Something interesting in the pandora_server.log and pandora_server.error log? Is the agent you have created in the webconsole named as the AIX system you're running it on? Keep in mind that the agent must have the same name in the console than the value you get with the command "hostname" (assuming you didn't set up the value agent_name in the pandora_agent.conf) Cheers

  3. Monitors are modules of type generic_proc. So, if you don't have any module like that (and by default, the AIX agent doesn't include any, AFAIK). If you have added some monitores, ie: [code:1]module_type generic_proc and you don't say them, try to read the content of the .data file (they are xml files). You can also try to see the content in your browser, using instructions from (Link not available anymore) Raul

  4. Good point Raul. I understood he had not got any information (in the data tab) :-)

  5. I guess you know if you put the agent in debug mode it's generated but it's not copied to the pandora server. What happens if you copy the XML generated (when setting up the debug) manually to the /var/spool/pandora/data_in on the server machine? Something interesting in the pandora_server.log and pandora_server.error log? Is the agent you have created in the webconsole named as the AIX system you're running it on? Keep in mind that the agent must have the same name in the console than the value you get with the command "hostname" (assuming you didn't set up the value agent_name in the pandora_agent.conf) Cheers

    I copied the data_out via scp to the console server and was prompted to accept the RSA fingerprint and login as root on the box. When I test with ssh pandora@console_host, I am not prompted by either. Was I supposed to install the agent as user named pandora? Or do I just start the daemon as the pandora user? Also, I've not set the value agent_name value. I've named the agent the FQDN of the host. Thanks for your help.

  6. You have to make the first ssh connection with the pandora user to save the key. Raúl

  7. You have to make the first ssh connection with the pandora user to save the key. Raúl

    From where to where? From the client(agent), named sagan to the server(console) I get this: # ssh [email protected] Last login: Mon Oct 22 11:59:53 2007 from sagan

  8. From the host with agent to the host with server. If you can login without using the password, only the key, then you have completed the process. Raúl

  9. From the host with agent to the host with server. If you can login without using the password, only the key, then you have completed the process. Raúl

    Thanks for the input. I think I went from bad to worse. I think I've screwed up my ssh stuff. I'm working on that again now. Everything does seem to be around that for my problem. Realistically, I'm doing this on the side at work and it will be a couple of days until I can get back to it. I'll keep the thread updated if it may be helpful to others. Thanks for your help thus far! otherbot

  10. Be careful when copying the .pub file into the authorized_keys file on the server, remember to do not let any blank space no even a blank line at the end of the file

  11. Be careful when copying the .pub file into the authorized_keys file on the server, remember to do not let any blank space no even a blank line at the end of the file

    And all the key MUST be in a line, no carriage returns or spaces...

Entra en tu cuenta para publicar.