Search found 7 matches

by sirine707
Tue Mar 18, 2025 4:57 am
Forum: Nagios XI
Topic: Add historical data to nagios
Replies: 0
Views: 103154

Add historical data to nagios

Hello ,

I am retrieving data(timestamp , moving_average , alerts) from an api inside my custom plugin and i have 2 DS Moving_average and alert
what is the data format expected by nagios in order to plot historical data with the same timestamp retrieved :D

Kind Regards,
by sirine707
Fri Mar 07, 2025 5:51 am
Forum: Nagios XI
Topic: graph templates does not match my plugin script
Replies: 12
Views: 4757

Re: graph templates does not match my plugin script

Hello ,

The reason why i set the x-axis as timestamps , because I have historical data retrieved from a custom log API , otherwise it will be automatically managed based on when the data is inserted which's not the correct timestamp.
by sirine707
Thu Mar 06, 2025 3:36 am
Forum: Nagios XI
Topic: graph templates does not match my plugin script
Replies: 12
Views: 4757

Re: graph templates does not match my plugin script

Hey .. for this plugin output : /usr/local/nagios/libexec/sql_injection_plugin.py WARNING - Moving Average: 1.0 - Alerts detected! | MA_1740128848=0;1;2;0;5 MA_1740215248=0;1;2;0;5 MA_1740474448=0;1;2;0;5 MA_1740478348=0;1;2;0;5 MA_1740481648=0;1;2;0;5 MA_1740485548=0;1;2;0;5 MA_1740490648=1.0;1;2;0...
by sirine707
Wed Mar 05, 2025 9:11 am
Forum: Nagios XI
Topic: graph templates does not match my plugin script
Replies: 12
Views: 4757

Re: graph templates does not match my plugin script

this is my output of my custom plugin : WARNING - Moving Average: 1.0 - Alerts detected! | moving_average=0;1;2;0;5 moving_average=0;1;2;0;5 alert=4;;;; moving_average=0;1;2;0;5 moving_average=0;1;2;0;5 moving_average=1.0;1;2;0;5 moving_average=0.5;1;2;0;5 moving_average=0;1;2;0;5 moving_average=0;1...
by sirine707
Wed Mar 05, 2025 3:59 am
Forum: Nagios XI
Topic: graph templates does not match my plugin script
Replies: 12
Views: 4757

Re: graph templates does not match my plugin script

I am looking to visualize a line chart wich represents the moving average values with vertical lines when an alert is detected at 'start_time' retrieved from the api , I attached the desired output my issue is the script of my custom plugin retrieves correctly the 'start_dates' (old dates from a wee...
by sirine707
Tue Mar 04, 2025 2:47 am
Forum: Nagios XI
Topic: graph templates does not match my plugin script
Replies: 12
Views: 4757

Re: graph templates does not match my plugin script

Hello , So iam working to visualize Moving average (theses values is calculated when a certain number of retries is exceeded) which triggers alerts( the value of alert key is 0 or 1). both MA and alerts are retrieved from an API call , I attached above the output , i know it is not the main purpose ...
by sirine707
Mon Mar 03, 2025 2:44 am
Forum: Nagios XI
Topic: graph templates does not match my plugin script
Replies: 12
Views: 4757

graph templates does not match my plugin script

Hello , I wrote a custom plugin script in order to retrieve with API , Moving average values as a line chart each at "start_date" key from json output and "Alert" when the value is different of 0 at "start_date" as vertical line . My question is how to modify the graph ...