Nagios XI to Monitor MS Exchange 2010

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

Outstanding!!! it's looking all green now. thank you.

As for the 4 commands you posted.... WHere do I type that in?
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI to Monitor MS Exchange 2010

Post by Box293 »

Excellent.

Establish an SSH session to the Nagios XI host to run those commands (copy and paste is recommended).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios XI to Monitor MS Exchange 2010

Post by slansing »

Please let us know how you get along John! Thanks!
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

I need to figure how to log into mysql.
I know the password, I just cant figure the syntax for loging into it.

WHen I copy and paste the command, it tells me access denied
Everybody is somebody else’s weirdo
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios XI to Monitor MS Exchange 2010

Post by slansing »

Since those are echo statements, they can be ran from the shell directly, as long as you have not changed the database users, you should be able to paste them right into putty and pass them through.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

Ok, I ran the scrips

I didn't see any error messages..... just returned ->
Everybody is somebody else’s weirdo
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

without logging into mysql and try, I get this

Code: Select all

[root@localhost ~]# echo "use nagios;alter table nagios_servicestatus modify output varchar(65535) not null;alter table nagios_servicestatus modify long_output varchar(65535) not null;alter table nagios_servicestatus modify perfdata varchar(65535) not null;" | mysql -pnagiosxi
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

when logged in, I get this:

Code: Select all

mysql> echo "use nagios;alter table nagios_servicestatus modify output varchar(65535) not null;alter table nagios_servicestatus modify long_output varchar(65535) not null;alter table nagios_servicestatus modify perfdata varchar(65535) not null;" | mysql -pnagiosxi
    ->    
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI to Monitor MS Exchange 2010

Post by Box293 »

Have you changed the password for mysql?

This command uses the default password nagiosxi

Code: Select all

-pnagiosxi
(this is the last part of each command)

Alternatively, if you are logged into mysql, execute the commands like so:

Code: Select all

use nagios;alter table nagios_servicestatus modify output varchar(65535) not null;alter table nagios_servicestatus modify long_output varchar(65535) not null;alter table nagios_servicestatus modify perfdata varchar(65535) not null;

use nagios;alter table nagios_hoststatus modify output varchar(65535) not null;alter table nagios_hoststatus modify long_output varchar(65535) not null;alter table nagios_hoststatus modify perfdata varchar(65535) not null;

use nagios;alter table nagios_servicechecks modify output varchar(65535) not null;alter table nagios_servicechecks modify long_output varchar(65535) not null;alter table nagios_servicechecks modify perfdata varchar(65535) not null;

use nagios;alter table nagios_hostchecks modify output varchar(65535) not null;alter table nagios_hostchecks modify long_output varchar(65535) not null;alter table nagios_hostchecks modify perfdata varchar(65535) not null;
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Nagios XI to Monitor MS Exchange 2010

Post by JohnFLi »

ah..... I didn't know the last item was a password.

I changed it to the current password and all 4 appears to have entered fine.
ANd I can see that on the services page, it is displaying more stuff.


Thank you
Everybody is somebody else’s weirdo
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI to Monitor MS Exchange 2010

Post by Box293 »

Awesome, it's great to get to the end of a problem with everything fixed and all questions answered :P
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked