Trends issue and a general question!

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ruler20202
Posts: 7
Joined: Thu Aug 11, 2016 10:57 am

Trends issue and a general question!

Post 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
Attachments
Nagios UP.PNG
Nagios UP.PNG (7.75 KiB) Viewed 2239 times
Nagios Fail.PNG
Nagios Fail.PNG (11.22 KiB) Viewed 2239 times
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Trends issue and a general question!

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ruler20202
Posts: 7
Joined: Thu Aug 11, 2016 10:57 am

Re: Trends issue and a general question!

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Trends issue and a general question!

Post by rkennedy »

Is your service currently in an UP state, or is it in a down / unreachable state as noted by the screenshots?
Former Nagios Employee
ruler20202
Posts: 7
Joined: Thu Aug 11, 2016 10:57 am

Re: Trends issue and a general question!

Post 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 :).
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Trends issue and a general question!

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ruler20202
Posts: 7
Joined: Thu Aug 11, 2016 10:57 am

Re: Trends issue and a general question!

Post 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?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Trends issue and a general question!

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ruler20202
Posts: 7
Joined: Thu Aug 11, 2016 10:57 am

Re: Trends issue and a general question!

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