Unable to start PID - for source

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Unable to start PID - for source

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Unable to start PID - for source

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
dwasswa

Re: Unable to start PID - for source

Post 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.
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Re: Unable to start PID - for source

Post 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"
dwasswa

Re: Unable to start PID - for source

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Unable to start PID - for source

Post 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
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
dwasswa

Re: Unable to start PID - for source

Post by dwasswa »

Thanks @ eloyd.

Sorry about the spelling error.
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Re: Unable to start PID - for source

Post 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
kyang

Re: Unable to start PID - for source

Post 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/
Locked