Search found 5 matches

by Sphinx
Wed Mar 11, 2015 2:14 am
Forum: Open Source Nagios Projects
Topic: Nagios Command File - Timestamp parsing
Replies: 9
Views: 3376

Re: Nagios Command File - Timestamp parsing

Yes, we have an NDO with a MySQL Database.
The use case we have is kind of special and i hoped that it would be possible.

Due to the fact that it is not possible, my question is answered, even if not succesfully resolved.
by Sphinx
Tue Mar 10, 2015 2:18 am
Forum: Open Source Nagios Projects
Topic: Nagios Command File - Timestamp parsing
Replies: 9
Views: 3376

Re: Nagios Command File - Timestamp parsing

Okay, the timestamp in the log can be the current time, we don't care about that.
But is it possibly to parse our timestamp into nagios event queue instead of the current timestamp, so that we get an entry in the past.
Or are there any other possibilities, without database injection?
by Sphinx
Mon Mar 09, 2015 10:07 am
Forum: Open Source Nagios Projects
Topic: Nagios Command File - Timestamp parsing
Replies: 9
Views: 3376

Re: Nagios Command File - Timestamp parsing

Hey. The content of my output is stated on my first post. The referenced shell script is doing the same thing as mine, basically. But nagios totally ignores the timestamp in the brackets and replaces it with the current time. What we need, is to insert check results from days, hours, minutes ago in ...
by Sphinx
Fri Mar 06, 2015 2:33 am
Forum: Open Source Nagios Projects
Topic: Nagios Command File - Timestamp parsing
Replies: 9
Views: 3376

Re: Nagios Command File - Timestamp parsing

Sure, but it's just a redirected output from a file.

Command

Code: Select all

cat passive_check_results >> /usr/local/nagios/var/rw/nagios.cmd
by Sphinx
Thu Mar 05, 2015 3:42 am
Forum: Open Source Nagios Projects
Topic: Nagios Command File - Timestamp parsing
Replies: 9
Views: 3376

Nagios Command File - Timestamp parsing

Hey all. We have installed Nagios Core 3.5.0 and are in the need to process a vast amount from passive check results at once. The results are comming from a database output and have different check result timestamps. And here ist the problem, when we insert the passive check result into the nagios.c...