robk Posted February 16, 2017 Posted February 16, 2017 I have one server that refuses to respond to nagios... The remaining 4 work as expected. With a working server I get root@nagios-1:/etc# smbclient -U guest -N -L qegs-sage Anonymous login successful Domain=[QEGS] OS=[Windows Server 2012 R2 Standard 9600] Server=[Windows Server012 R2 Standard 6.3] Sharename Type Comment --------- ---- ------- Error returning browse list: NT_STATUS_ACCESS_DENIED Anonymous login successful Domain=[QEGS] OS=[Windows Server 2012 R2 Standard 9600] Server=[Windows Server012 R2 Standard 6.3] Server Comment --------- ------- Workgroup Master --------- ------- None working Server root@nagios-1:/etc# smbclient -U guest -N -L qegs-facility session setup failed: NT_STATUS_ACCESS_DENIED root@nagios-1:/etc# Both servers appear to have the same firewall settings etc. Of course the one that doesnt respond correctly sometimes hangs so I could really do with the monitoring working. Does this ring bells with anyone?
pete Posted February 17, 2017 Posted February 17, 2017 Sling a "-d3" (debug level 3) into the command: smbclient -d3 -U guest -L qegs-facility to get more info about what's happening.
robk Posted February 17, 2017 Author Posted February 17, 2017 With the debug info I get. Working server. root@nagios-1:~# smbclient -d3 -U guest -N -L qegs-sage lp_load_ex: refreshing parameters Initialising global parameters rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf" Processing section "[global]" added interface eth0.25 ip=fe80::220:edff:fe2c:891e%eth0.25 bcast=fe80::ffff:ffff:ffff:ffff%eth0.25 netmask=ffff:ffff:ffff:ffff:: added interface eth0.25 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 added interface eth0.20 ip=192.168.10.2 bcast=192.168.10.255 netmask=255.255.255.0 added interface eth0.11 ip=192.168.11.2 bcast=192.168.11.255 netmask=255.255.255.0 added interface eth0.21 ip=192.168.100.240 bcast=192.168.100.255 netmask=255.255.255.0 added interface eth0 ip=10.4.174.2 bcast=10.4.174.255 netmask=255.255.255.0 Client started (version 3.6.6). Connecting to 10.4.172.63 at port 445 Doing spnego session setup (blob length=136) got OID=1.3.6.1.4.1.311.2.2.30 got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.2.840.113554.1.2.2.3 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178@please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x62898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 SPNEGO login failed: Account disabled Anonymous login successful Domain=[QEGS] OS=[Windows Server 2012 R2 Standard 9600] Server=[Windows Server 2012 R2 Standard 6.3] Sharename Type Comment --------- ---- ------- Error returning browse list: NT_STATUS_ACCESS_DENIED Connecting to 10.4.172.63 at port 139 Doing spnego session setup (blob length=136) got OID=1.3.6.1.4.1.311.2.2.30 got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.2.840.113554.1.2.2.3 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178@please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x62898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 SPNEGO login failed: Account disabled Anonymous login successful Domain=[QEGS] OS=[Windows Server 2012 R2 Standard 9600] Server=[Windows Server 2012 R2 Standard 6.3] Server Comment --------- ------- Workgroup Master --------- ------- The none working server. It seems to be the session setup failed stage that is the problem, but not sure what I need to change to enable it. root@nagios-1:~# root@nagios-1:~# root@nagios-1:~# smbclient -d3 -U guest -N -L qegs-facility lp_load_ex: refreshing parameters Initialising global parameters rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf" Processing section "[global]" added interface eth0.25 ip=fe80::220:edff:fe2c:891e%eth0.25 bcast=fe80::ffff:ffff:ffff:ffff%eth0.25 netmask=ffff:ffff:ffff:ffff:: added interface eth0.25 ip=192.168.1.2 bcast=192.168.1.255 netmask=255.255.255.0 added interface eth0.20 ip=192.168.10.2 bcast=192.168.10.255 netmask=255.255.255.0 added interface eth0.11 ip=192.168.11.2 bcast=192.168.11.255 netmask=255.255.255.0 added interface eth0.21 ip=192.168.100.240 bcast=192.168.100.255 netmask=255.255.255.0 added interface eth0 ip=10.4.174.2 bcast=10.4.174.255 netmask=255.255.255.0 Client started (version 3.6.6). Connecting to 10.4.172.7 at port 445 Doing spnego session setup (blob length=136) got OID=1.3.6.1.4.1.311.2.2.30 got OID=1.2.840.48018.1.2.2 got OID=1.2.840.113554.1.2.2 got OID=1.2.840.113554.1.2.2.3 got OID=1.3.6.1.4.1.311.2.2.10 got principal=not_defined_in_RFC4178@please_ignore Got challenge flags: Got NTLMSSP neg_flags=0x62898215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 SPNEGO login failed: Account disabled session setup failed: NT_STATUS_ACCESS_DENIED root@nagios-1:~#
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now