Page 1 of 1

Unable to start PID - for source

Posted: Mon Oct 16, 2017 7:59 am
by inas.labib
we use Nagios NA 2.3.0
we added 2nd source and it was not Running automatically and not showing any PID. please find the screenshot attached with this.

Got below error @ /usr/local/nagiosna/var/backend.log

Could not access /usr/local/nagiosna/var/FW01/9997.pid for killing: [Errno 2] No such file or directory: '/usr/local/nagiosna/var/FW01/9997.pid'
Could not access /usr/local/nagiosna/var/FW01/9997.pid for killing: [Errno 2] No such file or directory: '/usr/local/nagiosna/var/FW01/9997.pid'
Could not access /usr/local/nagiosna/var/FW01/9997.pid for killing: [Errno 2] No such file or directory: '/usr/local/nagiosna/var/FW01/9997.pid'

Once we restart nagiosna service, 2nd source device started showing netflow data.
Please advice every time we add new source , need to restart the service ? or any fix for this.

Re: Unable to start PID - for source

Posted: Mon Oct 16, 2017 8:44 am
by eloyd
Without seeing your source definition, did you specify a unique port for the second source? It cannot be the same as any other source.

Re: Unable to start PID - for source

Posted: Mon Oct 16, 2017 11:44 am
by dwasswa
Thanks @eloyd.

@inas.labib did you confirm what @eloyd asked?

Also time you add a source you need to save and apply configurations this would restart NNA in the process.

Please confirm what @eloyd mentioned.

Re: Unable to start PID - for source

Posted: Mon Oct 16, 2017 2:53 pm
by inas.labib
We specified unique port for second resource.
we could see only "Create source" button while adding new source. may i know where is the "Apply configuration"

Re: Unable to start PID - for source

Posted: Mon Oct 16, 2017 3:12 pm
by dwasswa
After creating new source,you can simply use start button in the UI but if it doesn't work, you just restart the back-end and it should apply the configurations.

This is how you restart it from terminal:

Code: Select all

/usr/local/nagiosna/bin/nagiosna start

Re: Unable to start PID - for source

Posted: Mon Oct 16, 2017 4:18 pm
by eloyd
dwasswa wrote:This is how you restart it from terminal:

Code: Select all

/usr/local/agiosna/bin/nagiosna start
Presumably, that should be:

Code: Select all

/usr/local/nagiosna/bin/nagiosna start

Re: Unable to start PID - for source

Posted: Mon Oct 16, 2017 4:21 pm
by dwasswa
Thanks @ eloyd.

Sorry about the spelling error.

Re: Unable to start PID - for source

Posted: Wed Oct 18, 2017 1:27 am
by inas.labib
After adding new source, start button in the UI is not working.
so we need to restart the back-end to apply the configurations every time ? or is there any solution to avoid manual restart. please confirm

Re: Unable to start PID - for source

Posted: Wed Oct 18, 2017 9:39 am
by kyang
Have you tried changing the port? --> Source page --> Edit --> change port --> Save

Can you show us some of your system message logs?

Code: Select all

tail -100 /var/log/messages
Also your permissions on this directory

Code: Select all

ll /usr/local/nagiosna/var/