Setup Switchvox OID's in serivces
-
nhajicostis
- Posts: 17
- Joined: Mon Dec 09, 2013 10:15 am
Re: Setup Switchvox OID's in serivces
Figured out the remote responses, the Switchvox's have access control and the SNMP traffic was turned off for external, now it works.
I have one last configuration that won't work, I cannot get the alerts to email out. I have installed postfix and heirloom-mailx, configured my settings into them, changed the command.cfg to /usr/bin/mailx. Does someone have a guide that could help.
I have one last configuration that won't work, I cannot get the alerts to email out. I have installed postfix and heirloom-mailx, configured my settings into them, changed the command.cfg to /usr/bin/mailx. Does someone have a guide that could help.
-
nhajicostis
- Posts: 17
- Joined: Mon Dec 09, 2013 10:15 am
Re: Setup Switchvox OID's in serivces
I tested my postfix mail server and I cannot get it to send mail directly to me, I am using a Google domain for my email, I figure the config of the postfix is causing my issues, does anyone have a good walkthrough on setting up postfix, I looked at 4 different ones online already and it still does not work any help would be great.
Nick
Nick
Re: Setup Switchvox OID's in serivces
My suggestion would be to look at /var/log/maillog - you should get enough information from the logs to finish your config. For just sending mail, you should be able to ignore most of the postfix configuration - especially if you are sending directly to email addresses and not trying to mail proxy/relay/forward.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
nhajicostis
- Posts: 17
- Joined: Mon Dec 09, 2013 10:15 am
Re: Setup Switchvox OID's in serivces
I figure I have something wrong in my config on either the postfix or nagios itself, all I want is to send an email when I have an alert, I have enabled notifications on the nagios server, I have configured contacts in my contacts.cfg, I looked at the mail.log file and the error I get that it bounces because of unknown user, but the sender is [email protected] which is not a valid email on my domain, would that cause my issues?
As well is there an easier way to do this as all I want is to send out notifications, I do not need any other email off this server.
All the help has been greatly appreciated.
Nick
As well is there an easier way to do this as all I want is to send out notifications, I do not need any other email off this server.
All the help has been greatly appreciated.
Nick
Re: Setup Switchvox OID's in serivces
Lets try using sendmail to just send an email directly:
Then type a message in. When you are finished press "ctrl+d". Check your email and the server maillogs.
Code: Select all
sendmail <your email address>Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
nhajicostis
- Posts: 17
- Joined: Mon Dec 09, 2013 10:15 am
Re: Setup Switchvox OID's in serivces
I tried the sendmail command and here is what the mail log recorded.
Jan 8 09:54:36 wallwinsnmp-P5E-VM-DO postfix/qmgr[25723]: A250128056D: removed
Jan 8 09:55:05 wallwinsnmp-P5E-VM-DO postfix/pickup[22362]: D693E2803AE: uid=0 from=<root>
Jan 8 09:55:05 wallwinsnmp-P5E-VM-DO postfix/cleanup[22952]: D693E2803AE: message-id=<[email protected]>
Jan 8 09:55:05 wallwinsnmp-P5E-VM-DO postfix/qmgr[25723]: D693E2803AE: from=<[email protected]>, size=251, nrcpt=1 (queue active)
Jan 8 09:55:06 wallwinsnmp-P5E-VM-DO postfix/local[22954]: D693E2803AE: to=<[email protected]>, relay=local, delay=16, delays=16/0/0/0.06, dsn=5.1.1, status=bounced (unknown user: "nick.hajicostis")
Any suggestions as to how to fix this?
Thanks for the help so far
Jan 8 09:54:36 wallwinsnmp-P5E-VM-DO postfix/qmgr[25723]: A250128056D: removed
Jan 8 09:55:05 wallwinsnmp-P5E-VM-DO postfix/pickup[22362]: D693E2803AE: uid=0 from=<root>
Jan 8 09:55:05 wallwinsnmp-P5E-VM-DO postfix/cleanup[22952]: D693E2803AE: message-id=<[email protected]>
Jan 8 09:55:05 wallwinsnmp-P5E-VM-DO postfix/qmgr[25723]: D693E2803AE: from=<[email protected]>, size=251, nrcpt=1 (queue active)
Jan 8 09:55:06 wallwinsnmp-P5E-VM-DO postfix/local[22954]: D693E2803AE: to=<[email protected]>, relay=local, delay=16, delays=16/0/0/0.06, dsn=5.1.1, status=bounced (unknown user: "nick.hajicostis")
Any suggestions as to how to fix this?
Thanks for the help so far
Re: Setup Switchvox OID's in serivces
This is either:nhajicostis wrote:Jan 8 09:55:06 wallwinsnmp-P5E-VM-DO postfix/local[22954]: D693E2803AE: to=<[email protected]>, relay=local, delay=16, delays=16/0/0/0.06, dsn=5.1.1, status=bounced (unknown user: "nick.hajicostis")
1) A problem with the email address you are using - are you sure the address is correct?
2) An issue with your email relay configuration - it is bouncing your email due to an unknown user/email address.
If your email address is correct, you will need to contact the admin for the mail relay server.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
nhajicostis
- Posts: 17
- Joined: Mon Dec 09, 2013 10:15 am
Re: Setup Switchvox OID's in serivces
The email is on a Google domain, do you know where I find the email relay for gmail, and where in the configuration on the Ubuntu box I would add that info.
Re: Setup Switchvox OID's in serivces
gmail is the relay then, unless you have specifically configured your own relay. Are you sure the email address is correct?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
nhajicostis
- Posts: 17
- Joined: Mon Dec 09, 2013 10:15 am
Re: Setup Switchvox OID's in serivces
I am positive since it is my email address at the company I work for. Just so I have it right, where do I configure the email relay info and is the relay just the SMTP server info?