Announcement

Collapse
No announcement yet.

All checks by ssh returning error 255

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Coco163
    replied
    Keep in mind that centreon commits the command using the engine credentials (by default: centreon-engine), so you will need to regenerate the rsa key using this account and export the public key to your target host.
    You will find the user that centreon engine is using in Configuration/Pollers/Engine Configuration/Admin

    Leave a comment:


  • ejant
    started a topic All checks by ssh returning error 255

    All checks by ssh returning error 255

    Hi all, i have an issue with ssh checks on centreon. All of them are in 255 status

    UNKNOWN - check_by_ssh: Remote command './check_oratns.sh' returned status 255
    /usr/lib/nagios/plugins/check_by_ssh -l 'nagios' -i /var/spool/nagios/.ssh/id_rsa -E -H 192.168.4.102 -t 45 -C './check_oratns.sh'
    Running from command line works ok

    -bash-4.1$ /usr/lib/nagios/plugins/check_by_ssh -l 'nagios' -i /var/spool/nagios/.ssh/id_rsa -E -H 192.168.4.102 -t 45 -C './check_oratns.sh'

    OK - El SID iway en el archivo tnsnames.ora, esta aputando al servidor XXXXXXX. Dicha base se encuentra READ WRITE con el rol PRIMARY.

    It happens with ALL ssh checks.

    any hint anyone?

    my centreon-engine log:

    [1521569388] [18258] SERVICE ALERT: IWAY-XXX-B;check_oratns_iway;UNKNOWN;HARD;3;UNKNOWN - check_by_ssh: Remote command './check_oratns.sh' returned status 255
    [1521569418] [18258] SERVICE ALERT: IWAY-CNR04-A;check_oratns_iway;UNKNOWN;HARD;3;UNKNOWN - check_by_ssh: Remote command './check_oratns.sh' returned status 255
    [1521569423] [18258] SERVICE ALERT: CA-IWAYservices;check_oratns_iway;UNKNOWN;HARD;3;UNKN OWN - check_by_ssh: Remote command './check_oratns.sh' returned status 255

Working...
X