poll a data input method disgard whether the host up or down

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
saya
Cacti User
Posts: 58
Joined: Wed Jan 16, 2008 10:56 pm

poll a data input method disgard whether the host up or down

Post by saya »

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!!
Last edited by saya on Mon Mar 31, 2008 9:58 pm, edited 1 time in total.
saya
Cacti User
Posts: 58
Joined: Wed Jan 16, 2008 10:56 pm

Post by saya »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

If deactivating Host Availabilty checks (cacti 087b), it should do what you required
Reinhard
saya
Cacti User
Posts: 58
Joined: Wed Jan 16, 2008 10:56 pm

Post by saya »

thank you for your reply.. I solved this problem simply by create the graph on localhost which is always up. As long as the script can fetch data from database every polling circle, the graph can be generated perfectly.

anyway, thanks a lot~


saya
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests