SOLVED
sorry that the title I made is too long to put another word "solved" in...
=)
saya
=========================================
Hello guys
I'm writing a script that can retrieve host status from cacti database, table host and generate a graph for host availability. The problem now is that onc the host turned down, it is not able to poll to get the value (although the value is there in database) . So I want to ask whether there's a way to poll the data input method disgard the host's status.
Any idea welcomed!!
Thanks a lot!!
poll a data input method disgard whether the host up or down
Moderators: Developers, Moderators
poll a data input method disgard whether the host up or down
Last edited by saya on Mon Mar 31, 2008 9:58 pm, edited 1 time in total.
ok, let me specify clearly. I am now want to generate a host availability report using reportit plugin. but so far as I learned, reportit is only dealing with data source. So i using a script that fetch remote host status(value 3 for up and 1 for down) from table host, and graph every host's status...in this way I can simply use reportit plugin to generate availability status report by using average((status-1)/2)*100%. but my problem is that if the remote device is down, it's impossible to write rrd file and update the graph. so for these device, they only have value when they are up, and as the result the value is 3. this makes the availability still equals 100%. (but if manually run in command line, it returns 1 which means device down)
I am now thinking of using cron to update those rrd file, but have no idea whether this way is possible or not..
can help me??
Thanks a lot!!!
saya
I am now thinking of using cron to update those rrd file, but have no idea whether this way is possible or not..
can help me??
Thanks a lot!!!
saya
Who is online
Users browsing this forum: No registered users and 0 guests