Page 1 of 1
Trends issue and a general question!
Posted: Thu Aug 11, 2016 11:07 am
by ruler20202
Good afternoon!
I am looking to implement a Nagios Core server to help the business I work for and all looks good so far!
I have run into a strange issue, where the Nagios server is recording down time but not uptime? (probably a simple fix but I'm newbie on linux!)
Second, most of our customers have numerous servers behind external NAT IP addresses, is there a simple solution to being able to monitor these? I did think of a site to site VPN to them however due to them having similar subnets this will cause issues.
Many Thanks in advance for any help

.
Cheers,
Steve
Re: Trends issue and a general question!
Posted: Thu Aug 11, 2016 5:20 pm
by Box293
ruler20202 wrote:I have run into a strange issue, where the Nagios server is recording down time but not uptime? (probably a simple fix but I'm newbie on linux!)
What version of Nagios Core are you using?
ruler20202 wrote:
Second, most of our customers have numerous servers behind external NAT IP addresses, is there a simple solution to being able to monitor these? I did think of a site to site VPN to them however due to them having similar subnets this will cause issues.
Passive checks might be a solution to use, this way it's the sending device that is responsible for contacting Nagios.
NRDS is one passive solution:
https://support.nagios.com/kb/category.php?id=124
NSCA with clients like NSClient ++ is another solution.
https://support.nagios.com/kb/category.php?id=11
If you need Active checks then you could have a Mod-Gearman worker at each location, that might work as you only need to open up the port required for the worker.
Here are some Mod-Gearman guides:
https://support.nagios.com/kb/article.php?id=225
https://support.nagios.com/kb/article.php?id=484
Re: Trends issue and a general question!
Posted: Fri Aug 12, 2016 4:00 am
by ruler20202
Hi Box293,
I have set this up on Ubuntu 16.04 and the Nagios Core version is currently 4.1.1. Its strange as it can happily log the down time but I cannot seem to get any stats for up-time.
I will have a look at the solutions you have provided in relation to using this for our customers

.
Much Appreciated,
Ruler20202
Re: Trends issue and a general question!
Posted: Fri Aug 12, 2016 12:16 pm
by rkennedy
Is your service currently in an UP state, or is it in a down / unreachable state as noted by the screenshots?
Re: Trends issue and a general question!
Posted: Fri Aug 12, 2016 2:40 pm
by ruler20202
I have used one host to test the down which is in the one print screen, the other was the local host which is definitely up

.
Re: Trends issue and a general question!
Posted: Mon Aug 15, 2016 1:02 pm
by tgriep
Can you post the Standard settings and the Advanced settings you used when running the trends in your examples?
When you do run it, do you see any errors in the Apache logs in the /var/log/httpd folder?
Re: Trends issue and a general question!
Posted: Tue Aug 16, 2016 6:13 am
by ruler20202
Hi tgriep,
Are you just after the nagios.cfg?
I have checked the /var/log but cannot find a httpd folder.... hmmmmm there is an apache2 folder in there which has logs would these be of use?
Re: Trends issue and a general question!
Posted: Tue Aug 16, 2016 2:05 pm
by tgriep
I didn't mean the nagios.cfg file but you could post it in case is is needed.
There are 2 ways to view the Trends reports in Nagios Core now.
The new Trends report and the Legacy Trends report, which one are you running?
When you run the new one, it will popup a window asking what report type, which host or service, etc and a Advanced Tab for selecting how to Assume the data, etc...
What did you use for those settings?
The error logs on a Ubuntu server are in this folder
/var/log/apache2/
Do you see any errors in the error_log file when running the Trends report?
Re: Trends issue and a general question!
Posted: Wed Aug 17, 2016 3:56 am
by ruler20202
Hi tgriep,
Much appreciated for your time
I have now managed to fix this myself! Basically I believe the issue was I setup this nagios on my local machine as a VM for testing I spotted that when adding clients the trends graph would start working. When the VM got put on pause and resumed the data was blank. Not sure what would cause this, however I have now put it on our Hyper V an its running constant and everything seems to be running well!
You can close this post now
Thanks all again!