Hi,
Just took a look at the code for a sec, but I did not find any hotspot for adding some code within the smtp-query.
So, is there somebody out, who is more familar with the code than me, and who could give me a hint, where to add some "on-failure" - code?
I would like to do the following:
- check if host is up (if not -> E-Mail)
- if determining stats for an interface, first check, if it's administrativly or otherwise down (if it's down -> E-Mail)
- Returned negative or otherwise mailformed return (-> E-Mail), maybe thold can do this one, but I'll need to check.
regards
Sebastian
Where to add status-notification? (Where are the hotspots?)
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
I would point you to poller.php, because it handles all the polling and gathering of information. It also knows the status of the hosts.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
thold 2.0c will send alerts if a device is unreachable -
http://forums.cacti.net/about6344.html
I just grabs the 'status' out of the 'host' table
the interface up/down is also good idea
http://forums.cacti.net/about6344.html
I just grabs the 'status' out of the 'host' table
the interface up/down is also good idea
Who is online
Users browsing this forum: No registered users and 0 guests