Page 2 of 2

Re: sudo: unknown uid: 4294967295

Posted: Thu Jun 02, 2016 9:42 am
by EOCulubong
Hi Sir,

Edited the /etc/sudoers file and still gives me the this message when I logged in as nagios user:

<remote_host>:~ # su nagios
nagios@<remote_host>:/root> /usr/lib/nagios/plugins/tsm_check_del.sh drive
Error executing the command dsmadmc

But using sudo gives the desired output:

nagios@<remote_host>:/root> sudo /usr/lib/nagios/plugins/tsm_check_del.sh drive
drive - number of drives not online 0, OK

I also tried using this same command with sudo on the nrpe.cfg (remote host):

command[tsm_check_del_drive]=sudo /usr/lib/nagios/plugins/tsm_check_del.sh drive

But nagios server still cannot read the output:

[root@<nagios_server> ~]# /usr/local/nagios/libexec/check_nrpe -H <remote_host_IP> -c tsm_check_del_drive drive
NRPE: Unable to read output

Still giving me the sudo: unknown uid: 4294967295 message.

Thanks and Regards,
:)

Re: sudo: unknown uid: 4294967295

Posted: Thu Jun 02, 2016 10:58 am
by tgriep
It could be because you have 2 users and 2 groups defined in the nrpe.cfg file causing the issue.
Edit the nrpe.cfg file and change the following from

Code: Select all

nrpe_user=nagios,nrpe
nrpe_group=nagios,nrpe
to

Code: Select all

nrpe_user=nagios
nrpe_group=nagios
Save the file and restart xinetd if that is used to start the NRPE Agent on your system.
See if that fixes it for you.