Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • AIX agent not seen

    Posted by otherbot on October 21, 2007 at 05:29

    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

    raul replied 17 years, 4 months ago 3 Members · 10 Replies
  • 10 Replies
  • manu

    Member
    October 22, 2007 at 14:14
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • raul

    Member
    October 22, 2007 at 14:20
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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 http://www.openideas.info/phpbb/viewtopic.php?p=934#934

    Raul

  • manu

    Member
    October 22, 2007 at 14:25
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

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

    🙂

  • otherbot

    Member
    October 22, 2007 at 18:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

  • raul

    Member
    October 22, 2007 at 18:47
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    You have to make the first ssh connection with the pandora user to save the key.

    Raúl

  • otherbot

    Member
    October 22, 2007 at 20:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • raul

    Member
    October 22, 2007 at 21:06
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • otherbot

    Member
    October 23, 2007 at 01:45
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • manu

    Member
    October 23, 2007 at 19:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • raul

    Member
    October 23, 2007 at 19:37
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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…