Core 4.0.7 Service result are stale

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
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Core 4.0.7 Service result are stale

Post by tariqondego »

I upgraded to core 4.0.7 a week ago and it has been getting status information ok.
But yesterday it started giving error 'Warning service results are stale'.When i restart nagios the problem disappears.
When I look at syslog i see error 'Cannot find rw/nagios.cmd'.But again all this disappears after reset.

I have read similar topics in this forum concerning freshness setting and I have confirmed mine to be ok.

Please advise,of anything else that might be causing this.Maybe a bug in 4.0.7? And probably a bugfix?

Thanks in advance.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Core 4.0.7 Service result are stale

Post by abrist »

Potentially. Nagios might be getting behind in the checks. If your system load average is high, you may want to upgrade to 4.0.8 to see if that fixes your current issues.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Core 4.0.7 Service result are stale

Post by tariqondego »

Thanks,that is what i thought too and so i upgraded.4.0.8 seemed more stable.
But when i added ndomod2.0.0,this caused nagios to crash immediately.
I had no option to downgrade to 3.5.1.Seems stable,but still monitoring it.

Again,thanks.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Core 4.0.7 Service result are stale

Post by abrist »

tariqondego wrote:But when i added ndomod2.0.0,this caused nagios to crash immediately.
Did you upgrade the DB tables as well? There are some new object fields in 4.x that require new columns in the DB. The sql upgarde script should be bundled with ndo2.
Additionally, did you download ndo2 from sourceforge or github?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Core 4.0.7 Service result are stale

Post by tariqondego »

yes i ran the script to upgrade the sql db.Tried both from sourceforge and github.
Still failed.

Thing is,both ndo2db and db is ok after upgrade,but ndomod just isnt working.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Core 4.0.7 Service result are stale

Post by abrist »

Can you post your ndo2db.cfg and ndomod.cfg.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Core 4.0.7 Service result are stale

Post by tariqondego »

See attached.
Attachments
ndomod.cfg
(5.25 KiB) Downloaded 171 times
ndo2db.cfg
(5.01 KiB) Downloaded 181 times
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Core 4.0.7 Service result are stale

Post by slansing »

What privileges does the "paynet" user have on your sql db? I have no idea why it would be telling you it can't find nagios.cmd, that would definitely be an issue though. Do you have a cron or something that goes through and removes old files of a certain type? Something strange like that?
Locked