Results 1 to 10 of 10
Thread: Teampeak3 Nagios Plugin
-
04-05-2010, 11:15 #1
-= TeamSpeak User =-
- Join Date
- May 2008
- Location
- Hungary
- Posts
- 17
Teampeak3 Nagios Plugin
hi,
thux.de wrote the nagios checker plugin for teamspeak 2. I rewrite the checker for teamspeak 3 based on that code.
ElbandiLast edited by Elbandi; 17-05-2010 at 09:24.
-
06-05-2010, 19:15 #2
-= TeamSpeak User =-
- Join Date
- May 2010
- Location
- Canada
- Posts
- 2
First of all thx for this adapatation of the TS2 check plugin.
I may have some question about the use of this plugin. I checked a lot on the web but there is no topic about this specific plugin.
I am on CentOS and I have nagios 3.2.1 installed.
-The check_teamspeak3 file is in my check library with all the other check_XXX (/etc/local/nagios/libexec)
-I've added the check definition in my command.cfg file.
-I've defined the service in my localhost.cfg file (yeah my ts server is running on the nagios host)Code:command_line $USER1$/check_teamspeak3 -H $HOSTADDRESS$ -t 10011 -s $ARG1$ -w $ARG2$ -c $ARG1$
And I get this message no matter what I change in both files :Code:define service{ use local-service host_name localhost normal_check_interval 1 service_description ts3 check_command check_teamspeak3!7777!50!70 notifications_enabled 0 }
CRITICAL: current users:0 on server:10011:queryduration:0.00blabla
Do I have to add the command definition in the nrpe.cfg file too? What did I miss in the config?
PS : I changed the lib target in the script from use lib "/usr/lib/nagios/plugins/" ; to use lib "/usr/local/nagios/etc/libexec"
This line is supposed to specify where is the check library righ?
If you need more information don't hesitate to ask.
Regards
-
12-05-2010, 09:44 #3
-= TeamSpeak User =-
- Join Date
- May 2010
- Location
- Germany
- Posts
- 9
Same problem...
I do have the same problem, too: No matter how I call the plugin, the state is CRITICAL always

I use the current beta version of Teamspeak 3 Server on Debian Lenny and tryed this:
Any suggestions? Did this work for anyone?Code:server9:/usr/lib/nagios/plugins# ./check_teamspeak3 -H 'localhost' CRITICAL: current users: 0 on server: 10011 ; queryduration: 0.000954 | users=0;maxusers=0;bytessend=0;bytesreceived=0;uptime=0
I monitor the TCP ports 10011 and 30033 with check_tcp currently, but a slot and a vserver monitoring would be great in addition.
Does anyone have an idea how to use check_udp to monitor the vservers UDP ports? I don't know the string to send and expect.
-
12-05-2010, 17:07 #4
-= TeamSpeak User =-
- Join Date
- May 2008
- Location
- Hungary
- Posts
- 17
telnet to 10011, and use the hostinfo command. paste the result pls.
-
12-05-2010, 18:01 #5
-= TeamSpeak User =-
- Join Date
- May 2010
- Location
- Germany
- Posts
- 9
This is the result of an out of the box TS3 server setup.Code:server9:~# telnet localhost 10011 Trying ::1... Trying 127.0.1.1... Connected to localhost. Escape character is '^]'. TS3 hostinfo error id=2568 msg=insufficient\sclient\spermissions failed_permid=4355 quit error id=0 msg=ok Connection closed by foreign host.
-
13-05-2010, 01:32 #6
-= TeamSpeak User =-
- Join Date
- May 2010
- Location
- Canada
- Posts
- 2
I got the exact same thing as doodie.
My guess is that the query can't be done correctly because of some rights issue.
-
14-05-2010, 17:03 #7
-= TeamSpeak User =-
- Join Date
- May 2010
- Location
- Germany
- Posts
- 9
Sure, but I really don't want to view my host info to everybody. The plugin should support the login command with user and password.
I've added some more parameters to support a user login now
But
I think I'll make a clean rewrite of the whole plugin by time...
-
17-05-2010, 09:26 #8
-= TeamSpeak User =-
- Join Date
- May 2008
- Location
- Hungary
- Posts
- 17
Thx doodie. I update the first comment with your version, and change one thing: if maxuser is 0, the result is a error.
-
18-04-2012, 16:35 #9
-= TeamSpeak Addict =-
- Join Date
- Dec 2009
- Location
- UK
- Posts
- 429
Sorry to drag up an old thread but I'm obviously not understanding this Nagios plugin, what follows is the output from manual use, my commands.cfg entry & my windows.cfg entry (asterisks used deliberately) -
./check_teamspeak3 -H ******** -u **** -p *******
OK: current users: 1 on server: 10011 ; queryduration: 0.229957 | users=1;maxusers=512;bytessend=111968857;bytesrece ived=47580477;uptime=155420
# 'check_teamspeak3' command definition
define command{
command_name check_teamspeak3
command_line $USER1$/check_teamspeak3 -H $ARG1$ -u $ARG2$ -p $ARG3$
}
define service{
use generic-service
host_name *****
service_description TeamSpeak 3 Test
servicegroups front_end_services
check_command check_teamspeak3!****!****!****
notifications_enabled 1
}
With this setup I'm getting 'Critical' on the Nagios web page, how is that since manual use produces valid output?
-
09-11-2012, 19:05 #10
-= TeamSpeak User =-
- Join Date
- Nov 2012
- Posts
- 1
The first command definition looks a little different. The first argument should be $HOSTADDRESS$ according to the nagios examples.
My working setup has
With a matching service blockdefine command{
command_name check_teamspeak3
command_line $USER1$/check_teamspeak3 -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$
}
With hostname, username and password obviously matching your configdefine service{
use generic-service
host_name hostname
service_description TeamSpeak 3
check_command check_teamspeak3!username!password
}Last edited by moeilijk; 09-11-2012 at 19:10. Reason: deleted serv-pnp template, not everybody uses pnp4nagios
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[RELEASE] Dice rolling plugin
By TheCraiggers in forum PluginsReplies: 79Last Post: 19-10-2012, 23:28 -
[Offline] My Now Playing Plugin
By 4nt1h4cker in forum PluginsReplies: 203Last Post: 27-01-2012, 08:43 -
Teampeak Nagios Plugin & Commandline Userlisting tool
By thux.de in forum [TeamSpeak 2] Addons & ScriptsReplies: 2Last Post: 31-01-2008, 18:10 -
An idea for gameserver plugin - comments?
By [PWG] Tackdriver in forum [TeamSpeak 2] Addons & ScriptsReplies: 7Last Post: 15-04-2007, 19:01 -
Plugin for nagios
By bwraith in forum [TeamSpeak 2] Addons & ScriptsReplies: 1Last Post: 21-08-2005, 10:45


Reply With Quote