sudo: unknown uid: 4294967295

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
EOCulubong
Posts: 10
Joined: Fri Nov 13, 2015 9:49 am

Re: sudo: unknown uid: 4294967295

Post 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,
:)
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: sudo: unknown uid: 4294967295

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked