Sponsored Content
Operating Systems Linux Red Hat Can't start NTOP service/daemon Post 302530906 by ygemici on Wednesday 15th of June 2011 10:23:08 AM
Old 06-15-2011
I try to prepare some notes about Ntop Installion..

## for needed librarys that needed ntop (+rrdtool )
Code:
# yum install cairo-devel libxml2-devel pango-devel pango libpng-devel \
freetype freetype-devel libart_lgpl-devel libpcap-devel libpcap gdbm-devel

## for rrdtool install ( that needed by ntop for stores and collects datas in own database )
Code:
# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.5.tar.gz
# tar -zxvf rrdtool-1.4.5.tar.gz
# export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
# ./configure
# make && make install

## for GeoIP install ( ip adress informations..)
Code:
# wget http://www.maxmind.com/download/geoi...c/GeoIP.tar.gz 
# tar xzvf GeoIP.tar.gz 
# ./configure 
# make && make install

## for ntop install (finally install network monitor)
Code:
# wget http://cdnetworks-us-1.dl.sourceforg...p-4.0.1.tar.gz
# tar xvzf ntop4.0.1.tar.gz
# cd ntop-4.0.1/
# ./autogen.sh --with-rrd-home=/opt/rrdtool-1.4.5/
# make && make install
# useradd -M -s /sbin/nologin -r ntop
# chown -R ntop:ntop /usr/local/share/ntop/ /usr/local/var/ntop/ /usr/local/share/GeoIP
# /usr/local/bin/ntop -d -u ntop -P /usr/local/var/ntop --skip-version-check -L --use-syslog=daemon

or try install so that rpm way Smilie

regards
ygemici

Last edited by ygemici; 06-15-2011 at 11:30 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Making a Script to Start as a Service

Hi, I have a shell script t1.sh. on my solaris box. So, what are the steps required to make this script run as a Service, when the system re-starts. (for ex:- at run level 3). I know that I should use the rc.d folders. But I don't know the exact steps. Kindly explain, Thanks in... (3 Replies)
Discussion started by: S.Vishwanath
3 Replies

2. Shell Programming and Scripting

Start a service as user

Hi I need a service to be start as user after a reboot. My script in /etc/init.d contain the following: start() { su - $USER cd ${INSTALL_PATH}/bin ./MyApp -X exit return 0 } This function stops after su - $USER, I get user shell, and only if I manualy... (5 Replies)
Discussion started by: potro
5 Replies

3. Programming

MySQL service start error

Hi, I have installed MySql version 5.0.67 in RedHat LINUX version 5. The installation completed successfully. When I am trying to start the service an error occured the error shown below ".......Manager of pid-file quit without updating file" Can anyone help me to fix the problem.... (4 Replies)
Discussion started by: saravanakumar
4 Replies

4. Ubuntu

How can I automatically start a daemon at boot time.

Hi masters, I am still learning trades in kernel. I am trying to learn the basic of daemon programming. Can any one tell me how can I start a daemon automatically during boot up. I will be greatfull if anyone post some example code to the above task. Also what are... (3 Replies)
Discussion started by: iamjayanth
3 Replies

5. AIX

Q: how to start a service when system start

As topic, assume we have a service called "blahservice" and we can start it by: startsrc -s blahservice what is the best practice to run such command when system start? - directly use mkitab to add it into /etc/inittab or - drop startup scripts in /etc/rc.d/rcX.d I know they... (4 Replies)
Discussion started by: acerlinux
4 Replies

6. Red Hat

difference between restarting a daemon and a service

Hi, Can you please clear me the difference between restarting the daemon and the service. To be more clear, /etc/init.d/mysqld restart and /etc/init.d/mysqld restart What is the difference on this both two?..... (4 Replies)
Discussion started by: gsiva
4 Replies

7. AIX

How to start rstatd Daemon

guy's How to start rstatd Daemon on AIX 6.1 as I enable it from etc/inetd.conf then I refreshed it by this command refresh -s inetd but stil is not Active ! can some one advice in this ! (7 Replies)
Discussion started by: ITHelper
7 Replies

8. Ubuntu

start service when get login prompt

Hi Team, I am using DRBL environment on Ubuntu. When my machine starts some times it's not starting lxdm & nslcd service. Because of that i didn't get graphic mode & also not able to authenticate user as nslcd is also stops. I have to login as root and restart these two services, then i am able... (0 Replies)
Discussion started by: paragnehete
0 Replies

9. Shell Programming and Scripting

not able to start xvfb service via rc script

Hi , I am having this start script to start xvfb under rc3.d but it fails during system startup saying unable to open display. also manually if i try to execute the script , it does not work. But if i execute what ever is there in the script line by line on my SHELL , it starts well. ... (2 Replies)
Discussion started by: chidori
2 Replies

10. Shell Programming and Scripting

How to integrate all the systemctl commands into a shell script to verify any daemon/agent service?

Hi, Can we integrate all the systemctl command into a shell script to verify any service with all the options of systemctl if service integrate with the operating system service management tools to deliver their functionality. sudo systemctl start <service_name> sudo systemctl stop... (1 Reply)
Discussion started by: Mannu2525
1 Replies
ntop_selinux(8) 						SELinux Policy ntop						   ntop_selinux(8)

NAME
ntop_selinux - Security Enhanced Linux Policy for the ntop processes DESCRIPTION
Security-Enhanced Linux secures the ntop processes via flexible mandatory access control. The ntop processes execute with the ntop_t SELinux type. You can check if you have these processes running by executing the ps command with the -Z qualifier. For example: ps -eZ | grep ntop_t ENTRYPOINTS
The ntop_t SELinux type can be entered via the ntop_exec_t file type. The default entrypoint paths for the ntop_t domain are the following: /usr/sbin/ntop PROCESS TYPES
SELinux defines process types (domains) for each process running on the system You can see the context of a process using the -Z option to ps Policy governs the access confined processes have to files. SELinux ntop policy is very flexible allowing users to setup their ntop pro- cesses in as secure a method as possible. The following process types are defined for ntop: ntop_t Note: semanage permissive -a ntop_t can be used to make the process type ntop_t permissive. SELinux does not deny access to permissive process types, but the AVC (SELinux denials) messages are still generated. BOOLEANS
SELinux policy is customizable based on least access required. ntop policy is extremely flexible and has several booleans that allow you to manipulate the policy and run ntop with the tightest access possible. If you want to allow users to resolve user passwd entries directly from ldap rather then using a sssd server, you must turn on the authlo- gin_nsswitch_use_ldap boolean. Disabled by default. setsebool -P authlogin_nsswitch_use_ldap 1 If you want to allow all daemons to write corefiles to /, you must turn on the daemons_dump_core boolean. Disabled by default. setsebool -P daemons_dump_core 1 If you want to enable cluster mode for daemons, you must turn on the daemons_enable_cluster_mode boolean. Enabled by default. setsebool -P daemons_enable_cluster_mode 1 If you want to allow all daemons to use tcp wrappers, you must turn on the daemons_use_tcp_wrapper boolean. Disabled by default. setsebool -P daemons_use_tcp_wrapper 1 If you want to allow all daemons the ability to read/write terminals, you must turn on the daemons_use_tty boolean. Disabled by default. setsebool -P daemons_use_tty 1 If you want to deny any process from ptracing or debugging any other processes, you must turn on the deny_ptrace boolean. Enabled by default. setsebool -P deny_ptrace 1 If you want to allow all domains to use other domains file descriptors, you must turn on the domain_fd_use boolean. Enabled by default. setsebool -P domain_fd_use 1 If you want to allow all domains to have the kernel load modules, you must turn on the domain_kernel_load_modules boolean. Disabled by default. setsebool -P domain_kernel_load_modules 1 If you want to allow all domains to execute in fips_mode, you must turn on the fips_mode boolean. Enabled by default. setsebool -P fips_mode 1 If you want to enable reading of urandom for all domains, you must turn on the global_ssp boolean. Disabled by default. setsebool -P global_ssp 1 If you want to allow confined applications to run with kerberos, you must turn on the kerberos_enabled boolean. Enabled by default. setsebool -P kerberos_enabled 1 If you want to allow system to run with NIS, you must turn on the nis_enabled boolean. Disabled by default. setsebool -P nis_enabled 1 If you want to allow confined applications to use nscd shared memory, you must turn on the nscd_use_shm boolean. Enabled by default. setsebool -P nscd_use_shm 1 NSSWITCH DOMAIN
If you want to allow users to resolve user passwd entries directly from ldap rather then using a sssd server for the ntop_t, you must turn on the authlogin_nsswitch_use_ldap boolean. setsebool -P authlogin_nsswitch_use_ldap 1 If you want to allow confined applications to run with kerberos for the ntop_t, you must turn on the kerberos_enabled boolean. setsebool -P kerberos_enabled 1 PORT TYPES
SELinux defines port types to represent TCP and UDP ports. You can see the types associated with a port by using the following command: semanage port -l Policy governs the access confined processes have to these ports. SELinux ntop policy is very flexible allowing users to setup their ntop processes in as secure a method as possible. The following port types are defined for ntop: ntop_port_t Default Defined Ports: tcp 3000-3001 udp 3000-3001 MANAGED FILES
The SELinux process type ntop_t can manage files labeled with the following file types. The paths listed are the default paths for these file types. Note the processes UID still need to have DAC permissions. cluster_conf_t /etc/cluster(/.*)? cluster_var_lib_t /var/lib/pcsd(/.*)? /var/lib/cluster(/.*)? /var/lib/openais(/.*)? /var/lib/pengine(/.*)? /var/lib/corosync(/.*)? /usr/lib/heartbeat(/.*)? /var/lib/heartbeat(/.*)? /var/lib/pacemaker(/.*)? cluster_var_run_t /var/run/crm(/.*)? /var/run/cman_.* /var/run/rsctmp(/.*)? /var/run/aisexec.* /var/run/heartbeat(/.*)? /var/run/cpglockd.pid /var/run/corosync.pid /var/run/rgmanager.pid /var/run/cluster/rgmanager.sk ntop_tmp_t ntop_var_lib_t /var/lib/ntop(/.*)? ntop_var_run_t /var/run/ntop.pid root_t / /initrd FILE CONTEXTS
SELinux requires files to have an extended attribute to define the file type. You can see the context of a file using the -Z option to ls Policy governs the access confined processes have to these files. SELinux ntop policy is very flexible allowing users to setup their ntop processes in as secure a method as possible. STANDARD FILE CONTEXT SELinux defines the file context types for the ntop, if you wanted to store files with these types in a diffent paths, you need to execute the semanage command to sepecify alternate labeling and then use restorecon to put the labels on disk. semanage fcontext -a -t ntop_etc_t '/srv/ntop/content(/.*)?' restorecon -R -v /srv/myntop_content Note: SELinux often uses regular expressions to specify labels that match multiple files. The following file types are defined for ntop: ntop_etc_t - Set files with the ntop_etc_t type, if you want to store ntop files in the /etc directories. ntop_exec_t - Set files with the ntop_exec_t type, if you want to transition an executable to the ntop_t domain. ntop_initrc_exec_t - Set files with the ntop_initrc_exec_t type, if you want to transition an executable to the ntop_initrc_t domain. ntop_tmp_t - Set files with the ntop_tmp_t type, if you want to store ntop temporary files in the /tmp directories. ntop_var_lib_t - Set files with the ntop_var_lib_t type, if you want to store the ntop files under the /var/lib directory. ntop_var_run_t - Set files with the ntop_var_run_t type, if you want to store the ntop files under the /run or /var/run directory. Note: File context can be temporarily modified with the chcon command. If you want to permanently change the file context you need to use the semanage fcontext command. This will modify the SELinux labeling database. You will need to use restorecon to apply the labels. COMMANDS
semanage fcontext can also be used to manipulate default file context mappings. semanage permissive can also be used to manipulate whether or not a process type is permissive. semanage module can also be used to enable/disable/install/remove policy modules. semanage port can also be used to manipulate the port definitions semanage boolean can also be used to manipulate the booleans system-config-selinux is a GUI tool available to customize SELinux policy settings. AUTHOR
This manual page was auto-generated using sepolicy manpage . SEE ALSO
selinux(8), ntop(8), semanage(8), restorecon(8), chcon(1), sepolicy(8) , setsebool(8) ntop 14-06-10 ntop_selinux(8)
All times are GMT -4. The time now is 10:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy