Forum Discussion

ielgho's avatar
ielgho
Icon for Nimbostratus rankNimbostratus
Jun 30, 2022

SMB Health Monitor failed "can't load /etc/samba/smb.conf"

Hello Community,

Working with a BIG-IP 16.1.2
I am trying to configure a SMB health monitor based on the  SMB parent with an user (Domain/login) and a password  but it did't work 

The standard icmp monitor works fine and the telnet on server on the port 445 works well also.

When i try an smbclient, i get the error "can't load /etc/samba/smb.conf" or this later is present in the indicated path.
Any idea about this issue ?
Thank you in advance.

6 Replies

  • Try enabling the debug on that monitor and review the logs for anything obvious. I don't have an smb environment to test currently, but this thread might be helpful, you could try configuring that samba config file and testing from CLI to make sure all is well from BIG-IP before addressing the monitor itself.

    • ielgho's avatar
      ielgho
      Icon for Nimbostratus rankNimbostratus

      Hello JRahm 
      Thank you for your return.
      I already activated the debug on the monitor and tested a "smbclient"  on the server, in both case, i got the error in the attached screen.

      • Kupauw's avatar
        Kupauw
        Icon for Nimbostratus rankNimbostratus

        I'm getting the exact same error after configuring a simple SMB monitor. We are running version 14.1.2.1.
        A snippit of my logs. (replaced real IP/Hostname with defaul values)

        ********** Debugging session beginning at: Wed Aug  3 11:26:35 2022
        
        Arguments 1-4:
        ::ffff:10.x.x.x
        445
        log
        /var/log/monitors/AG-2_hm_hostname.domain.com-AG-2_hostname.domain.com-445.log
        
        Environment variables:
        GET=
        MON_INST_LOG_NAME=/var/log/monitors/AG-2_hm_hostname.domain.com-AG-2_hostname.domain.com-445.log
        MON_TMPL_NAME=/AG-2/hm_hostname.domain.com
        NODE_IP=::ffff:10.x.x.x
        NODE_PORT=445
        PASSWORD=<sensitive data redacted>
        SERVER=hostname
        SERVICE=
        USERNAME=
        --
        /usr/bin/smbclient -N -L hostname -p 445
        Listing services on hostname
        WARNING: Ignoring invalid value 'cups' for parameter 'printing'
        /usr/bin/smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
        Recvd: 'protocol negotiation failed: NT_STATUS_CONNECTION_RESET
        '
        [1][14210] 2022-08-03 11:26:36.944599: ID 980   :(adjust_deadline): from [1659518796.448626][2022-08-03 11:26:36] to [1659518806.944568][2022-08-03 11:26:46] [ addr=::ffff:10.x.x.x:445 mon=/AG-2/hm_hostname.domain.com fd=13 pend=0 #conn=0 up_intvl=10 dn_intvl=10 timeout=31 time_until_up=0 immed=0 next_ping=[1659518805.651335][2022-08-03 11:26:45] last_ping=[1659518795.681333][2022-08-03 11:26:35] deadline=[1659518806.944568][2022-08-03 11:26:46] on_service_list=True snd_cnt=6 rcv_cnt=0 ]
        [1][14210] 2022-08-03 11:26:36.944654: ID 980   :(_analyze_pings): visit DOWN, now=[1659518796.944568][2022-08-03 11:26:36] [ addr=::ffff:10.x.x.x:445 mon=/AG-2/hm_hostname.domain.com fd=13 pend=0 #conn=0 up_intvl=10 dn_intvl=10 timeout=31 time_until_up=0 immed=0 next_ping=[1659518805.651335][2022-08-03 11:26:45] last_ping=[1659518795.681333][2022-08-03 11:26:35] deadline=[1659518806.944568][2022-08-03 11:26:46] on_service_list=True snd_cnt=6 rcv_cnt=0 ]
        read error on pipe: Interrupted system call
        Failed to connect...
        [1][14210] 2022-08-03 11:26:40.774046: ID 980   :(_main_loop): Service ready for read, now=[1659518800.772911][2022-08-03 11:26:40] [ addr=::ffff:10.x.x.x:445 srcaddr=::%0:0 fd=13 pend=0 #conn=0 ]
        [1][14210] 2022-08-03 11:26:40.774817: ID 980   :(_recv_external_node_ping): reading [ addr=::ffff:10.x.x.x:445 ]
        [1][14210] 2022-08-03 11:26:40.774841: ID 980   :(recv_external_node_ping): EAV failed [ addr=::ffff:10.x.x.x:445 ]
        [1][14210] 2022-08-03 11:26:40.774857: ID 980   :(_kill_external_pinger): killing pid=751 [ addr=::ffff:10.x.x.x:445 fd=13 ]
        [1][14210] 2022-08-03 11:26:40.774882: ID 980   :(_kill_external_pinger): kill returned -1 [ errno=3 ], kill-pg returned -1 [ errno=3 ]
        [1][14210] 2022-08-03 11:26:40.774905: ID 980   :(shutdown_service) Closing logging file /var/log/monitors/AG-2_hm_hostname.domain.com-AG-2_hostname.domain.com-445.log
        [1][14210] 2022-08-03 11:26:45.681147: ID 980   :(_do_ping): time to ping, now=[1659518805.680647][2022-08-03 11:26:45], status=DOWN [ addr=::ffff:10.x.x.x:445 mon=/AG-2/hm_hostname.domain.com fd=-1 pend=0 #conn=0 up_intvl=10 dn_intvl=10 timeout=31 time_until_up=0 immed=0 next_ping=[1659518805.651335][2022-08-03 11:26:45] last_ping=[1659518795.681333][2022-08-03 11:26:35] deadline=[1659518806.944568][2022-08-03 11:26:46] on_service_list=True snd_cnt=6 rcv_cnt=0 ]
        [1][14210] 2022-08-03 11:26:45.681217: ID 980   :(_spawn_external_pinger): /usr/share/monitors/SMB_monitor [ addr=::ffff:10.x.x.x:445 ]
        [1][14210] 2022-08-03 11:26:45.681819: ID 980   :(_spawn_external_pinger): spawned EAV pid=805 [ addr=::ffff:10.x.x.x:445 fd=13 ]
        [1][14210] 2022-08-03 11:26:45.681876: ID 980   :(_do_ping): post ping, status=DOWN [ addr=::ffff:10.x.x.x:445 mon=/AG-2/hm_hostname.domain.com fd=13 pend=0 #conn=0 up_intvl=10 dn_intvl=10 timeout=31 time_until_up=0 immed=0 next_ping=[1659518815.651335][2022-08-03 11:26:55] last_ping=[1659518805.680647][2022-08-03 11:26:45] deadline=[1659518806.944568][2022-08-03 11:26:46] on_service_list=True snd_cnt=7 rcv_cnt=0 ]

         

         

         

  • Kupauw's avatar
    Kupauw
    Icon for Nimbostratus rankNimbostratus

    I get the same error message on version 14.1.2.1 when using a simple SMB monitor:
    These are my monitor logs:

    ********** Debugging session beginning at: Wed Aug  3 11:26:35 2022
    
    Arguments 1-4:
    ::ffff:10.x.x.x
    445
    log
    /var/log/monitors/AG-2_hm_hostname.domain.com-AG-2_hostname.domain.com-445.log
    
    Environment variables:
    GET=
    MON_INST_LOG_NAME=/var/log/monitors/AG-2_hm_hostname.domain.com-AG-2_hostname.domain.com-445.log
    MON_TMPL_NAME=/AG-2/hm_hostname.domain.com
    NODE_IP=::ffff:10.x.x.x
    NODE_PORT=445
    PASSWORD=<sensitive data redacted>
    SERVER=hostname
    SERVICE=
    USERNAME=
    --
    /usr/bin/smbclient -N -L hostname -p 445
    Listing services on hostname
    WARNING: Ignoring invalid value 'cups' for parameter 'printing'
    /usr/bin/smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
    Recvd: 'protocol negotiation failed: NT_STATUS_CONNECTION_RESET
    '
    [1][14210] 2022-08-03 11:26:36.944599: ID 980   :(adjust_deadline): from [1659518796.448626][2022-08-03 11:26:36] to [1659518806.944568][2022-08-03 11:26:46] [ addr=::ffff:10.x.x.x:445 mon=/AG-2/hm_hostname.domain.com fd=13 pend=0 #conn=0 up_intvl=10 dn_intvl=10 timeout=31 time_until_up=0 immed=0 next_ping=[1659518805.651335][2022-08-03 11:26:45] last_ping=[1659518795.681333][2022-08-03 11:26:35] deadline=[1659518806.944568][2022-08-03 11:26:46] on_service_list=True snd_cnt=6 rcv_cnt=0 ]
    [1][14210] 2022-08-03 11:26:36.944654: ID 980   :(_analyze_pings): visit DOWN, now=[1659518796.944568][2022-08-03 11:26:36] [ addr=::ffff:10.x.x.x:445 mon=/AG-2/hm_hostname.domain.com fd=13 pend=0 #conn=0 up_intvl=10 dn_intvl=10 timeout=31 time_until_up=0 immed=0 next_ping=[1659518805.651335][2022-08-03 11:26:45] last_ping=[1659518795.681333][2022-08-03 11:26:35] deadline=[1659518806.944568][2022-08-03 11:26:46] on_service_list=True snd_cnt=6 rcv_cnt=0 ]
    read error on pipe: Interrupted system call
    Failed to connect...
    [1][14210] 2022-08-03 11:26:40.774046: ID 980   :(_main_loop): Service ready for read, now=[1659518800.772911][2022-08-03 11:26:40] [ addr=::ffff:10.x.x.x:445 srcaddr=::%0:0 fd=13 pend=0 #conn=0 ]
    [1][14210] 2022-08-03 11:26:40.774817: ID 980   :(_recv_external_node_ping): reading [ addr=::ffff:10.x.x.x:445 ]
    [1][14210] 2022-08-03 11:26:40.774841: ID 980   :(recv_external_node_ping): EAV failed [ addr=::ffff:10.x.x.x:445 ]
    [1][14210] 2022-08-03 11:26:40.774857: ID 980   :(_kill_external_pinger): killing pid=751 [ addr=::ffff:10.x.x.x:445 fd=13 ]
    [1][14210] 2022-08-03 11:26:40.774882: ID 980   :(_kill_external_pinger): kill returned -1 [ errno=3 ], kill-pg returned -1 [ errno=3 ]
    [1][14210] 2022-08-03 11:26:40.774905: ID 980   :(shutdown_service) Closing logging file /var/log/monitors/AG-2_hm_hostname.domain.com-AG-2_hostname.domain.com-445.log
    [1][14210] 2022-08-03 11:26:45.681147: ID 980   :(_do_ping): time to ping, now=[1659518805.680647][2022-08-03 11:26:45], status=DOWN [ addr=::ffff:10.x.x.x:445 mon=/AG-2/hm_hostname.domain.com fd=-1 pend=0 #conn=0 up_intvl=10 dn_intvl=10 timeout=31 time_until_up=0 immed=0 next_ping=[1659518805.651335][2022-08-03 11:26:45] last_ping=[1659518795.681333][2022-08-03 11:26:35] deadline=[1659518806.944568][2022-08-03 11:26:46] on_service_list=True snd_cnt=6 rcv_cnt=0 ]
    [1][14210] 2022-08-03 11:26:45.681217: ID 980   :(_spawn_external_pinger): /usr/share/monitors/SMB_monitor [ addr=::ffff:10.x.x.x:445 ]
    [1][14210] 2022-08-03 11:26:45.681819: ID 980   :(_spawn_external_pinger): spawned EAV pid=805 [ addr=::ffff:10.x.x.x:445 fd=13 ]
    [1][14210] 2022-08-03 11:26:45.681876: ID 980   :(_do_ping): post ping, status=DOWN [ addr=::ffff:10.x.x.x:445 mon=/AG-2/hm_hostname.domain.com fd=13 pend=0 #conn=0 up_intvl=10 dn_intvl=10 timeout=31 time_until_up=0 immed=0 next_ping=[1659518815.651335][2022-08-03 11:26:55] last_ping=[1659518805.680647][2022-08-03 11:26:45] deadline=[1659518806.944568][2022-08-03 11:26:46] on_service_list=True snd_cnt=7 rcv_cnt=0 ]