Bulk change for "downed device detection"

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
bullet
Posts: 2
Joined: Wed Sep 02, 2015 11:35 am

Bulk change for "downed device detection"

Post by bullet »

Hi

Is there a way by which I could run a CLI script to change the "downed device detection" from "Ping and SNMP Uptime" to just "SNMP Uptime" alone ? I want this so that my cacti would start polling my devices again.

I am not sure if this is related http://bugs.cacti.net/view.php?id=2335
Query.png
Query.png (36.85 KiB) Viewed 1369 times
rkr321
Posts: 7
Joined: Wed Aug 26, 2015 3:08 am

Re: Bulk change for "downed device detection"

Post by rkr321 »

Hi,

You can use some SQL ..

[cacti]> update host SET availability_method = '2' where availability_method ='1';

First inventory with:
[cacti]> select id,hostname,availability_method from host ;

Give it a try with the localhost and check the GUI
[cacti]> update host SET availability_method = '2' where availability_method ='1' and id = '1';
Test some more, verify and do the bulk.


RKR
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests