Page 1 of 1

Regarding plugin name changes

Posted: Thu Aug 16, 2018 4:21 am
by jagannathan
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.

Re: Regarding plugin name changes

Posted: Thu Aug 16, 2018 9:19 am
by scottwilkerson
I'm a little inclear about what you are trying to change. Are you trying to change the filenames of the plugins?

Re: Regarding plugin name changes

Posted: Fri Aug 17, 2018 11:22 pm
by jagannathan
@ 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 .

Re: Regarding plugin name changes

Posted: Sat Aug 18, 2018 12:28 pm
by scottwilkerson

Code: Select all

cd /usr/local/nagios/libexec
mv check_nagios new_check_nagios
now the file is called new_check_nagios

be aware you would need to do this after every plugin update

Re: Regarding plugin name changes

Posted: Tue Aug 21, 2018 1:28 am
by jagannathan
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.
Status Information nagios ok name changes
Status Information nagios ok name changes

Re: Regarding plugin name changes

Posted: Tue Aug 21, 2018 7:46 am
by scottwilkerson
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

Re: Regarding plugin name changes

Posted: Tue Aug 21, 2018 11:42 pm
by jagannathan
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 .

Re: Regarding plugin name changes

Posted: Wed Aug 22, 2018 7:02 am
by scottwilkerson
After making changes to the localhost.cfg you need to restart nagios and it will update the status.dat file

Re: Regarding plugin name changes

Posted: Mon Aug 27, 2018 12:38 am
by jagannathan
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 .

Re: Regarding plugin name changes

Posted: Mon Aug 27, 2018 7:58 am
by scottwilkerson
jagannathan wrote: -> Everytime i made changes with the configuration file, it will update the status.dat file automatically is it correct
Only after you restart the nagios service
jagannathan wrote:-> Is it possible to change the status.dat file manually .
no