Regarding plugin name changes
-
- Posts: 26
- Joined: Sat Jun 16, 2018 7:21 am
Regarding plugin name changes
Hello Folks,
-> I need some support for file name changes in nagios plugin v2.2.1 under the /usr/local/nagios/libexec directory check_nagios .where i need to modified the changes for this libexec under check_nagios naming convention . Is there any links also provide me and give for suggestion how to modify the check_nagios name changes. I am waitting for replyies.
-> I need some support for file name changes in nagios plugin v2.2.1 under the /usr/local/nagios/libexec directory check_nagios .where i need to modified the changes for this libexec under check_nagios naming convention . Is there any links also provide me and give for suggestion how to modify the check_nagios name changes. I am waitting for replyies.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Regarding plugin name changes
I'm a little inclear about what you are trying to change. Are you trying to change the filenames of the plugins?
-
- Posts: 26
- Joined: Sat Jun 16, 2018 7:21 am
Re: Regarding plugin name changes
@ scottwilkerson yes correct ,how to modify the file name.
-> Nagios plugin v2.2.1 under the /usr/local/nagios/libexec directory check_nagios file name changes.
-> Were and how to modify the file name of check_nagios i need suggestion .
-> Nagios plugin v2.2.1 under the /usr/local/nagios/libexec directory check_nagios file name changes.
-> Were and how to modify the file name of check_nagios i need suggestion .
Last edited by jagannathan on Sat Aug 18, 2018 4:52 am, edited 1 time in total.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Regarding plugin name changes
Code: Select all
cd /usr/local/nagios/libexec
mv check_nagios new_check_nagios
be aware you would need to do this after every plugin update
-
- Posts: 26
- Joined: Sat Jun 16, 2018 7:21 am
Re: Regarding plugin name changes
Hello Folks,
-> As per scottwilkerson suggestion i understand the check_nagios file name changes, thanks for your's support scottwilkerson .
-> I need some support, check_nagios plugin i configure the service detail in /usr/local/nagios/etc/objects/ localhost.cfg file and passing parameter same path i added in commands.cfg file . After adding the plugin service i am able to see the ui page for the check_nagios plugins , But Status Information ui fetching /usr/local/rtm/var under status.dat file how to modify the dat file, nagios ok status information .
-> check_nagios plugin name i configured as NAGIOS that is showing in ui page service NAGIOS : and Status Information name changes : NAGIOS OK : 1 process, status log updated 8 seconds ago
-> Below i pasted the Status Information NAGIOS OK name changes snap , Give me a suggestion for modify this Nagios Ok in ui page . I am waitting for replies.
-> As per scottwilkerson suggestion i understand the check_nagios file name changes, thanks for your's support scottwilkerson .
-> I need some support, check_nagios plugin i configure the service detail in /usr/local/nagios/etc/objects/ localhost.cfg file and passing parameter same path i added in commands.cfg file . After adding the plugin service i am able to see the ui page for the check_nagios plugins , But Status Information ui fetching /usr/local/rtm/var under status.dat file how to modify the dat file, nagios ok status information .
-> check_nagios plugin name i configured as NAGIOS that is showing in ui page service NAGIOS : and Status Information name changes : NAGIOS OK : 1 process, status log updated 8 seconds ago
-> Below i pasted the Status Information NAGIOS OK name changes snap , Give me a suggestion for modify this Nagios Ok in ui page . I am waitting for replies.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Regarding plugin name changes
I am really unclear about your question but here is the help for the plugin
Code: Select all
/usr/local/nagios/libexec/check_nagios -h
check_nagios v2.2.1 (nagios-plugins 2.2.1)
Copyright (c) 1999-2014 Nagios Plugin Development Team
<devel@nagios-plugins.org>
This plugin checks the status of the Nagios process on the local machine
The plugin will check to make sure the Nagios status log is no older than
the number of minutes specified by the expires option.
It also checks the process table for a process matching the command argument.
Usage:
check_nagios -F <status log file> -t <timeout_seconds> -e <expire_minutes> -C <process_string>
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.nagios-plugins.org/doc/extra-opts.html
for usage and examples.
-F, --filename=FILE
Name of the log file to check
-e, --expires=INTEGER
Minutes aging after which logfile is considered stale
-C, --command=STRING
Substring to search for in process arguments
-t, --timeout=INTEGER
Timeout for the plugin in seconds
-v, --verbose
Show details for command-line debugging (Nagios may truncate output)
Examples:
check_nagios -t 20 -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios
-
- Posts: 26
- Joined: Sat Jun 16, 2018 7:21 am
Re: Regarding plugin name changes
Hello scottwilkerson ,
-> /usr/local/nagios/libexec/check_nagios -h , yes this details are plugin help and parameter adding details , After add the plugin for configuration localhost.cfg ,command.cfg file and staus.dat file fetching the information for particular add the plugin detail and visible in ui that snap below i pasted Verify and give me a suggestion for changing status dat file .
-> https://support.nagios.com/forum/downlo ... &mode=view .
-> if i made any modification in localhost.cfg after nagios restart ,then /usr/local/nagios/var status.dat file fetching the modification information and visible in ui page ,is it possible to modify the dat file .
-> /usr/local/nagios/libexec/check_nagios -h , yes this details are plugin help and parameter adding details , After add the plugin for configuration localhost.cfg ,command.cfg file and staus.dat file fetching the information for particular add the plugin detail and visible in ui that snap below i pasted Verify and give me a suggestion for changing status dat file .
-> https://support.nagios.com/forum/downlo ... &mode=view .
-> if i made any modification in localhost.cfg after nagios restart ,then /usr/local/nagios/var status.dat file fetching the modification information and visible in ui page ,is it possible to modify the dat file .
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Regarding plugin name changes
After making changes to the localhost.cfg you need to restart nagios and it will update the status.dat file
-
- Posts: 26
- Joined: Sat Jun 16, 2018 7:21 am
Re: Regarding plugin name changes
Hello scottwilkerson,
-> Everytime i made changes with the configuration file, it will update the status.dat file automatically is it correct
-> Is it possible to change the status.dat file manually .
-> Everytime i made changes with the configuration file, it will update the status.dat file automatically is it correct
-> Is it possible to change the status.dat file manually .
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Regarding plugin name changes
Only after you restart the nagios servicejagannathan wrote: -> Everytime i made changes with the configuration file, it will update the status.dat file automatically is it correct
nojagannathan wrote:-> Is it possible to change the status.dat file manually .