Regarding plugin name changes

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jagannathan
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Regarding plugin name changes

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Regarding plugin name changes

Post by scottwilkerson »

I'm a little inclear about what you are trying to change. Are you trying to change the filenames of the plugins?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jagannathan
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Re: Regarding plugin name changes

Post 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 .
Last edited by jagannathan on Sat Aug 18, 2018 4:52 am, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Regarding plugin name changes

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jagannathan
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Re: Regarding plugin name changes

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Regarding plugin name changes

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jagannathan
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Re: Regarding plugin name changes

Post 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 .
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Regarding plugin name changes

Post by scottwilkerson »

After making changes to the localhost.cfg you need to restart nagios and it will update the status.dat file
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
jagannathan
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Re: Regarding plugin name changes

Post 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 .
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Regarding plugin name changes

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked