SERVICE ALERT shows in nagios log sporadically

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.
jagden
Posts: 10
Joined: Sat Oct 31, 2015 2:47 am

Re: SERVICE ALERT shows in nagios log sporadically

Post by jagden »

Yes, I do get the following:

[1446616754] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;myhost;tst2;2;helloworld\n
[1446616755] PASSIVE SERVICE CHECK: myhost;tst2;2;helloworld

But no SERVICE ALERT or NOTIFICATION

Attached the log file, the service name I am checking is "tst2"
Attachments
nagios.zip
Nagios debug file.
(693.02 KiB) Downloaded 214 times
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: SERVICE ALERT shows in nagios log sporadically

Post by jdalrymple »

Your debug log doesn't start until after the event:

Code: Select all

jdalrymple@localhost ~Desktop
$ head nagios.debug
[1446617385.710566] [001.0] [pid=24840] drop_privileges() start
[1446617385.710603] [004.0] [pid=24840] Original UID/GID: 501/501
[1446617385.710677] [064.1] [pid=24840] Making callbacks (type 9)...
[1446617385.710743] [064.1] [pid=24840] Making callbacks (type 9)...
[1446617385.710798] [064.1] [pid=24840] Making callbacks (type 9)...
[1446617385.710809] [064.1] [pid=24840] Making callbacks (type 7)...
[1446617385.715142] [064.1] [pid=24840] Making callbacks (type 9)...
[1446617385.720982] [064.1] [pid=24840] Making callbacks (type 9)...
[1446617385.721067] [064.1] [pid=24840] Making callbacks (type 9)...
[1446617385.721125] [064.1] [pid=24840] Making callbacks (type 9)...

jdalrymple@localhost ~Desktop
$ grep helloworld nagios.debug
Incidentally, I repeated my trial on a 3.5.0 system, I could not recreate your issue there either, although I will say that the SERVICE ALERT log entries were slow to arrive as compared to my 4.0.8 box.

Any chance you could run a current version?
jagden
Posts: 10
Joined: Sat Oct 31, 2015 2:47 am

Re: SERVICE ALERT shows in nagios log sporadically

Post by jagden »

do grep on tst2
which was the string I've sent.
I am running a production system which will take some time to upgrade therefore I am trying to figure out if possible to make it work on 3.5.0
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: SERVICE ALERT shows in nagios log sporadically

Post by jdalrymple »

I simply can't find anything related to your problem in old forum posts, and I cannot recreate it on any of my test systems, including a 3.5.0 configured identically. I get consistent ALERT notifications in the nagios.log

Can you verify that your availability reports aren't reflecting proper data? It should not - if it does then there is some nagios.log trickery at play.
jagden
Posts: 10
Joined: Sat Oct 31, 2015 2:47 am

Re: SERVICE ALERT shows in nagios log sporadically

Post by jagden »

Everything looks ok.
We have around 300 servers.
Perhaps it got something to do with that ?
Availability reports and UI looks ok. The service status and text get updated correctly. It is just that the output of the nagios log does not reflect the alert/notification.
Anyhow, I think I will push for a version upgrade and re-test with that.
I also did tests on an isolated machine with newer version and could not reproduce.

Thank you.
jdalrymple wrote:I simply can't find anything related to your problem in old forum posts, and I cannot recreate it on any of my test systems, including a 3.5.0 configured identically. I get consistent ALERT notifications in the nagios.log

Can you verify that your availability reports aren't reflecting proper data? It should not - if it does then there is some nagios.log trickery at play.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: SERVICE ALERT shows in nagios log sporadically

Post by rkennedy »

It could be your system - what are the specs of it, and how many service checks are you running?
Former Nagios Employee
Locked