Nagios Issue

protocoles

Verified User
Joined
Mar 11, 2008
Messages
22
Hello,

I have installed nagios in server A and added serverB and serverC.

Nagios is able to check mysql connection of serverB but it is showing following error while checking mysql connections of serverC

Result of ServerB
[Server-A@ nagios/libexec/]# ./check_nrpe -H 192.168.0.2 -c check_mysqlcons -a "test -w 50 -c 100"
OK: 8 mysql connections


Result of ServerC
[Server-A@ nagios/libexec/]# ./check_nrpe -H 192.168.0.3 -c check_mysqlcons -a "test -w 50 -c 100"

Thanks for help
 
port 3306 is already enabled. It telnet 192.168.0.3 3306 is working. But following command showing this error.


[Server-A@ nagios/libexec/]# ./check_nrpe -H 192.168.0.3 -c check_mysqlcons -a "test -w 50 -c 100"
UNKNOWN: Cannot determine number of connections
 
I dont think use 3306 port but nrpe plugin, so, you should check if nrpe on Server C is started and if allow connection from the Nagios Server IP and if the nrpe port is open on the firewall.

Hope it help
 
Dunno i never use check nrpe for that junk. Then you would just need nrpe to be able to do it. Not really something for this directadmin forum anyways.
 
mr.applesauce -- I came here because this forum always helped me alot of sort server issues and for your information my all three servers have directadmin installed.

SeLLeRoNe -- Thank you for help, I tried to copy a working nrpc.cgi from serverB to serverC but it is still not working. Port 3306 is enabled and ServerA(nagios server) is able to monitor all services of serverC expect MySQL conn one.

Any help would be appreciated.
 
mmmh, so serverA can check everything on serverC using nrpe except mysql?

By the way i wasnt talkin about nrpe conf but xinetd nrpe conf if you used xinetd as i did :)

Have you tryed use the command check_tcp from serverA to serverC on port 3306?
 
Q so serverA can check everything on serverC using nrpe except mysql?

A Yes.

Q By the way i wasnt talkin about nrpe conf but xinetd nrpe conf if you used xinetd as i did.

A I had copied /etc/xinetd.d/nrpe file from ServerB to ServerC and restarted xinetd service but still same problem.

Q Have you tryed use the command check_tcp from serverA to serverC on port 3306?

A Yes it works but it is unable to check mysql_conn, please advice.
 
mumble mumble, not so many ideas to be honest, the only one i get is that you had a warning/error during installing nrpe plugin on serverC that you didnt notice, maybe miss some library.

Have you checked on any strange error/warning message during nrpe installation?
 
Back
Top