No sources currently exists

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Laude_Volker
Posts: 7
Joined: Mon Oct 14, 2013 2:12 am

Re: No sources currently exists

Post by Laude_Volker »

There is no file /etc/sudoers.d/nna_conf - Only the file /etc/sudoers.d/nagiosna exists.

[root@dehb-nagios-21 ~]# ll /etc/sudoers.d/
total 4
-r--r----- 1 root root 441 Sep 24 08:43 nagiosna

[root@dehb-nagios-21 ~]# cat /etc/sudoers.d/nagiosna
Defaults:%nnacmd !requiretty

Host_Alias HOST = localhost

Cmnd_Alias LIST = /sbin/iptables --list
Cmnd_Alias SAVE = /etc/init.d/iptables save
Cmnd_Alias UPDATE = /sbin/iptables -I INPUT -p udp -j ACCEPT --dport *
Cmnd_Alias DAEMON = /usr/local/nagiosna/bin/nagiosna *

%nnacmd ALL=(ALL) NOPASSWD:LIST
%nnacmd ALL=(ALL) NOPASSWD:SAVE
%nnacmd ALL=(ALL) NOPASSWD:UPDATE
%nnacmd ALL=(ALL) NOPASSWD:/bin/kill *
%nnacmd ALL=(ALL) NOPASSWD:DAEMON
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: No sources currently exists

Post by ssax »

Here is what mine looks like on the latest version:

Code: Select all

Defaults:%nnacmd !requiretty

Cmnd_Alias LIST = /sbin/iptables --list
Cmnd_Alias SAVE = /etc/init.d/iptables save
Cmnd_Alias UPDATE = /sbin/iptables -I INPUT -p udp -j ACCEPT --dport *
Cmnd_Alias DAEMONCTL = /usr/local/nagiosna/bin/rc.py *

Defaults:nna !requiretty
nna ALL = NOPASSWD:/usr/local/nagiosna/scripts/change_timezone.sh
nna ALL = NOPASSWD:/usr/local/nagiosna/scripts/upgrade_to_latest.sh

%nnacmd ALL=(ALL) NOPASSWD:LIST
%nnacmd ALL=(ALL) NOPASSWD:SAVE
%nnacmd ALL=(ALL) NOPASSWD:UPDATE
%nnacmd ALL=(ALL) NOPASSWD:/bin/kill *
%nnacmd ALL=(ALL) NOPASSWD:DAEMONCTL
Can you try replacing your with those entries and see if it resolves the issue?
Laude_Volker
Posts: 7
Joined: Mon Oct 14, 2013 2:12 am

Re: No sources currently exists

Post by Laude_Volker »

Since the file /etc/sudoers.d/nna_conf is renamed and modified the problem is solved.

Thanks for your brilliant support.

This service request could be closed from now.
Locked