Adding services/plugins to exisitng hosts on Nagios XI
Adding services/plugins to exisitng hosts on Nagios XI
Hello Everyone,
I'm having trouble integrating nagios/otrs on our system.
We came to the conclusion that we are just going to use the Nagios XI API
to add command services to our OTRS.
Please do not post this link in attempt to help me: https://exchange.nagios.org/directory/P ... pl/details
Appreciate any help.
I'm having trouble integrating nagios/otrs on our system.
We came to the conclusion that we are just going to use the Nagios XI API
to add command services to our OTRS.
Please do not post this link in attempt to help me: https://exchange.nagios.org/directory/P ... pl/details
Appreciate any help.
You do not have the required permissions to view the files attached to this post.
Re: Adding services/plugins to exisitng hosts on Nagios XI
To be more detailed my team is trying to monitor open/closed RAW tickets from OTRS in the NAGIOS XI system
Re: Adding services/plugins to exisitng hosts on Nagios XI
When you upload a plugin to the server, it does not create a command, you will have to do that by going to the Core COnfig Manager > Commands menu and create a command.
The simplest thing is to copy an existing command and edit the copy.
Run the plugin with the --help option, and it will show you the options to run it.
Example command name
Example command line
Make it a check command and Activate it
Save it out and Apply the Config and you should have the command available.
The simplest thing is to copy an existing command and edit the copy.
Run the plugin with the --help option, and it will show you the options to run it.
Code: Select all
/usr/local/nagios/libexec/check_otrs.pl --helpCode: Select all
/usr/local/nagios/libexec/check_otrs.pl plugin for Nagios check for new or open Tickets in OTRS
Copyright (c) 2008 Michael Glaess
Usage:
-q (--queue) Queue: Default: 3 entspricht Servicehotline
-t (--type) Type: Default: 0 entspricht Neue Tickets
-w (--warn) Warning-Level, Default: 0
-c (--crit) Criticle-Level, Default: 2
-v Version
-h (--help) Help
Usage: /usr/local/nagios/libexec/check_otrs.pl
/usr/local/nagios/libexec/check_otrs.pl -w 2 -c 3
/usr/local/nagios/libexec/check_otrs.pl -t 1 -q 3 -w 2 -c 4Code: Select all
Check OTRSCode: Select all
$USER1$/check_otrs.pl -q $ARG1$ -t $ARG2$ -w $ARG3$ -c $ARG4$Save it out and Apply the Config and you should have the command available.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Adding services/plugins to exisitng hosts on Nagios XI
Thank you so much for your help 
Re: Adding services/plugins to exisitng hosts on Nagios XI
I don't know if that that command-line is just an example but I tried using it and it did not work.tgriep wrote:When you upload a plugin to the server, it does not create a command, you will have to do that by going to the Core COnfig Manager > Commands menu and create a command.
The simplest thing is to copy an existing command and edit the copy.
Run the plugin with the --help option, and it will show you the options to run it.
Code: Select all
/usr/local/nagios/libexec/check_otrs.pl --helpExample command nameCode: Select all
/usr/local/nagios/libexec/check_otrs.pl plugin for Nagios check for new or open Tickets in OTRS Copyright (c) 2008 Michael Glaess Usage: -q (--queue) Queue: Default: 3 entspricht Servicehotline -t (--type) Type: Default: 0 entspricht Neue Tickets -w (--warn) Warning-Level, Default: 0 -c (--crit) Criticle-Level, Default: 2 -v Version -h (--help) Help Usage: /usr/local/nagios/libexec/check_otrs.pl /usr/local/nagios/libexec/check_otrs.pl -w 2 -c 3 /usr/local/nagios/libexec/check_otrs.pl -t 1 -q 3 -w 2 -c 4Example command lineCode: Select all
Check OTRSMake it a check command and Activate itCode: Select all
$USER1$/check_otrs.pl -q $ARG1$ -t $ARG2$ -w $ARG3$ -c $ARG4$
Save it out and Apply the Config and you should have the command available.
any thoughts?
Re: Adding services/plugins to exisitng hosts on Nagios XI
What is the error that you are receiving?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Adding services/plugins to exisitng hosts on Nagios XI
I'm having specific problems with check_otrs.php any ideas?
Error_reporting (0) ;
Reporting 0 new/open tickets. This is the problem...
Error_reporting (0) ;
Reporting 0 new/open tickets. This is the problem...
Re: Adding services/plugins to exisitng hosts on Nagios XI
Are all of the arguments correct when you run the command?
Have you verified that the data exists in the MYSQL database?
Have you verified that the data exists in the MYSQL database?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Adding services/plugins to exisitng hosts on Nagios XI
I figured it out!
Thank you for all your help
Thank you for all your help
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Adding services/plugins to exisitng hosts on Nagios XI
Great!majoradhd wrote:I figured it out!
Thank you for all your help
Locking thread