Cacti is not sending alerts

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
Rahul
Posts: 8
Joined: Thu Mar 01, 2018 5:24 am

Cacti is not sending alerts

Post by Rahul »

Cacti is not sending alert if device is breaching defined threshold , I can tried sending test mail its getting delivered to my mailbox.
Cacti version is :1.1.36

Please help thanks in advance.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti is not sending alerts

Post by netniV »

Are there any errors in the cacti log? Can you provide a description of the threshold settings you have in place? When you are viewing the Threshold under Console -> Management -> Thresholds -> Edit Threshold, does the graph show the breach? If you look at the Thresholds tab -> Logs and filter by the device/template in question, does this show the breaches?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rahul
Posts: 8
Joined: Thu Mar 01, 2018 5:24 am

Re: Cacti is not sending alerts

Post by Rahul »

Yes I can see some error in cacti log when I logged to server doing SSH , I have attached for your ref.

When you are viewing the Threshold under Console -> Management -> Thresholds -> Edit Threshold, does the graph show the breach?:
No graph is not showing breach.

I am also attaching screenshot of threshold template which I have defined.

Regards,
Rahul
Attachments
Capture.PNG
Capture.PNG (31.58 KiB) Viewed 2172 times
Threshold template.PNG
Threshold template.PNG (30.01 KiB) Viewed 2172 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti is not sending alerts

Post by netniV »

You will find it easier viewing the logs via the Logs tab within Cacti. That also has the advantage in that it converts the numbers to names with links back to the devices/graphs/data sources so you can navigate with ease through them.

On your thresholds, I can see you've set a low threshold. Are you expecting your CPU's to be constantly over 20% in usage?

Do you have any entries in the Thresholds tab -> Log for the device/threshold in question?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rahul
Posts: 8
Joined: Thu Mar 01, 2018 5:24 am

Re: Cacti is not sending alerts

Post by Rahul »

On your thresholds, I can see you've set a low threshold. Are you expecting your CPU's to be constantly over 20% in usage? : I have done it for testing purpose but later on will change it

Also I have attached cacti log please check and suggest.
Attachments
Cactilog.PNG
Cactilog.PNG (18.31 KiB) Viewed 2163 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti is not sending alerts

Post by netniV »

it wasn't the cacti log I was after, I merely pointed you at that so you were aware you can do it via the GUI. I asked for the Threshold Logs.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rahul
Posts: 8
Joined: Thu Mar 01, 2018 5:24 am

Re: Cacti is not sending alerts

Post by Rahul »

attaching same for your ref, cant see anything in threshold logs.
Attachments
Threshold logs.PNG
Threshold logs.PNG (28.88 KiB) Viewed 2152 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti is not sending alerts

Post by netniV »

That would suggest no breaches have actually occurred then. Interesting.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rahul
Posts: 8
Joined: Thu Mar 01, 2018 5:24 am

Re: Cacti is not sending alerts

Post by Rahul »

Thanks ,

But you can see I have set threshold on servers for test like this lowest 20% and highest 50% and in graphs I can see server is going beyond the value and breaching the defined threshold but not generating alerts.

Would be great if you can share any article or document regarding setting up threshold in cacti then I can refer that to identify the problem
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti is not sending alerts

Post by netniV »

Do you actually have any data in these data sources? I must be missing the part which shows the value going above, even after re-reading.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rahul
Posts: 8
Joined: Thu Mar 01, 2018 5:24 am

Re: Cacti is not sending alerts

Post by Rahul »

I am attaching one screenshot here which shows server is breaching defined threshold today afternoon.
Attachments
CPU Utilisation.png
CPU Utilisation.png (8.76 KiB) Viewed 2146 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti is not sending alerts

Post by netniV »

OK, so the graph shows the breach, which means you must have a value. When you edit the threshold in Console -> Management -> Thresholds, you should see the same graph. Can you post a screen shot of that, include the small tabs that appear beneath the graph?
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rahul
Posts: 8
Joined: Thu Mar 01, 2018 5:24 am

Re: Cacti is not sending alerts

Post by Rahul »

I am attaching screenshot of another server on which I had defined threshold for hardisk usage but its not generating alert
Attachments
storage threshold.png
storage threshold.png (21.5 KiB) Viewed 2140 times
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Cacti is not sending alerts

Post by netniV »

I'm not sure how that helps, it wasn't what I asked for, but I'll keep it in mind :)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Rahul
Posts: 8
Joined: Thu Mar 01, 2018 5:24 am

Re: Cacti is not sending alerts

Post by Rahul »

Ok thanks, if required I can share the screenshot of that server as well, please suggest.
I can also share other logs as well if required to identify the issue.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests