| Author |
Message |
|
evilgrin
New User
Joined: Wed Oct 12, 2005 10:53 am Posts: 12
|
 No dead host emails.
I am not receiving notifications for dead hosts.
I'm running:
cacti 0.8.6g
tholds 0.2.5
monitor 0.4
architecture 0.8.6
Notifications for thresholds work just fine, just not for dead hosts.
|
| Wed Oct 12, 2005 1:29 pm |
|
 |
|
chicago1
New User
Joined: Mon Aug 15, 2005 8:52 am Posts: 7
|
same here
|
| Thu Oct 13, 2005 9:54 am |
|
 |
|
josh
New User
Joined: Tue Oct 04, 2005 8:15 am Posts: 17
|
Yeah it was mentioned in another thread here that the problem does still seem to be around and the developer Jimmy is aware of it.
I to get alert notifications fine but no dead host warnings.
-Josh
|
| Thu Oct 13, 2005 12:53 pm |
|
 |
|
evilgrin
New User
Joined: Wed Oct 12, 2005 10:53 am Posts: 12
|
I saw a few mentions in other posts about issues like this, but there didn't seem to be any idea of a timeframe for a fix.
Anyone know if there's been any headway on it?
|
| Fri Oct 14, 2005 10:50 am |
|
 |
|
jimmy
Site Admin
Joined: Thu Nov 11, 2004 11:12 am Posts: 2007
|
evilgrin wrote: I saw a few mentions in other posts about issues like this, but there didn't seem to be any idea of a timeframe for a fix.
Anyone know if there's been any headway on it?
The main issue that I am running into is that I can not reproduce the problem. Host down notifications are working perfectly on all my systems, whether I change to PHPMailer, SMTP, or Sendmail. This means I have to just go over and over the code trying to find the place where it might or might not be causing the problem and try fixing it (without knowing if it will work, since I don't reproduce it).
It uses the same mail functions as the rest of Threshold, so everything should be in working order. I will probably add alot of debug code in, and have some test it and check there logs to see how far it is actually getting. Once I know that, then finding the problem is much much easier.
|
| Fri Oct 14, 2005 4:56 pm |
|
 |
|
evilgrin
New User
Joined: Wed Oct 12, 2005 10:53 am Posts: 12
|
I'm running on fedora core 4, in case that makes any difference.
Also, I'm using the direct smtp method, not sendmail.
If you need someone to test with debug code thrown in, I'll gladly offer my services.
Brian
|
| Sat Oct 15, 2005 12:52 pm |
|
 |
|
Guest
|
evilgrin wrote: I'm running on fedora core 4, in case that makes any difference.
Also, I'm using the direct smtp method, not sendmail.
If you need someone to test with debug code thrown in, I'll gladly offer my services.
Brian
I'm willing to provide/help with anything that I can as well to get this resolved. I use the PHP send method on a 2000 server with Cactid as my poller.
|
| Mon Oct 17, 2005 9:57 pm |
|
 |
|
evilgrin
New User
Joined: Wed Oct 12, 2005 10:53 am Posts: 12
|
Would it help if you had a copy of all my files? (minus rra and log of course)
You could run a diff and see if maybe you had some different code somewhere.
|
| Thu Oct 20, 2005 12:34 pm |
|
 |
|
evilgrin
New User
Joined: Wed Oct 12, 2005 10:53 am Posts: 12
|
Well, I rebuilt my cacti installation from scratch.
a. I saved my 'rra' and 'logs' directories to put into the new install
b. I used the 'pre-patched' files (important, I believe)
http://www.cacti.net/downloads/patches/ ... e-patched/
c. I re-modified my config.php for my database settings
d. I turned OFF then back ON -ALL CHECKBOXES- in the configuration...settings page
** And now my dead hosts emails work. **
I think the problem lies somewhere in either:
1. The way the settings page sets and changes checkbox options in the database
or
2. The method used to 'upgrade' a cacti installation to one using plugins
Your mileage may vary, but you may want to give this a whack if your dead hosts notifications are also buggy.
Brian
|
| Fri Oct 21, 2005 3:09 pm |
|
 |
|
josh
New User
Joined: Tue Oct 04, 2005 8:15 am Posts: 17
|
My installation was a fresh one using cacti G. I tried your uncheck all the options recheck them without luck. I also have tried the new Patched files EXCEPT i haven't replaced the poller.php for fear it would kill the pluggins. The Pluggin setup had multiple PHP files you copy to install it and poller.php is one of them. So I used ever pre-patch file except the poller.php which is still the file that comes in the pluggin download.
Josh
|
| Fri Oct 21, 2005 9:12 pm |
|
 |
|
chicago1
New User
Joined: Mon Aug 15, 2005 8:52 am Posts: 7
|
Ok I have this all working fine on my linux box...
so I moved the file to my windows system and the dead host email stoped...
my be this is database releated ?
the test email works and so does the thold emails but no dead host emails
how could I turn debug on ?
|
| Wed Nov 02, 2005 1:53 pm |
|
 |
|
Guest
|
update
I created a new cacti called cacti2 with a new database...
I add a few stations and then turn snmp off on one and the emails worked...
I feel the problem lies in tghe database some where any Idea where to look
|
| Thu Nov 03, 2005 11:35 am |
|
 |
|
chicago1
New User
Joined: Mon Aug 15, 2005 8:52 am Posts: 7
|
I think the problem with my cacti was in the database.
I compared the cacti and cacti2 database and found the setting table was missing some fields. I removed the setting table and add the settings table from cacti2. now the dead host email are working
So if you are still having dead host email problems
check the settings table in the cacti database...
|
| Fri Nov 04, 2005 11:47 am |
|
 |
|
jimmy
Site Admin
Joined: Thu Nov 11, 2004 11:12 am Posts: 2007
|
chicago1 wrote: I think the problem with my cacti was in the database.
I compared the cacti and cacti2 database and found the setting table was missing some fields. I removed the setting table and add the settings table from cacti2. now the dead host email are working
So if you are still having dead host email problems
check the settings table in the cacti database...
Which settings were you missing? If I know that, then I could easily have it double check to ensure that they are always set.
|
| Fri Nov 04, 2005 12:02 pm |
|
 |
|
jimmy
Site Admin
Joined: Thu Nov 11, 2004 11:12 am Posts: 2007
|
jimmy wrote: chicago1 wrote: I think the problem with my cacti was in the database.
I compared the cacti and cacti2 database and found the setting table was missing some fields. I removed the setting table and add the settings table from cacti2. now the dead host email are working
So if you are still having dead host email problems
check the settings table in the cacti database... Which settings were you missing? If I know that, then I could easily have it double check to ensure that they are always set.
The only settings that I can see that should be needed is to make sure you have it checked to send alerts, and that you have the "global email" set. Otherwise there is no where to send the alert to.
|
| Fri Nov 04, 2005 5:03 pm |
|
|