Regarding plugin name changes

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Regarding plugin name changes

Postby jagannathan » Thu Aug 16, 2018 4:21 am

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.
jagannathan
 
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Re: Regarding plugin name changes

Postby scottwilkerson » Thu Aug 16, 2018 9:19 am

I'm a little inclear about what you are trying to change. Are you trying to change the filenames of the plugins?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12048
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Regarding plugin name changes

Postby jagannathan » Fri Aug 17, 2018 11:22 pm

@ 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.
jagannathan
 
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Re: Regarding plugin name changes

Postby scottwilkerson » Sat Aug 18, 2018 12:28 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12048
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Regarding plugin name changes

Postby jagannathan » Tue Aug 21, 2018 1:28 am

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.

Nagios_ok_status.png
Status Information nagios ok name changes
jagannathan
 
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Re: Regarding plugin name changes

Postby scottwilkerson » Tue Aug 21, 2018 7:46 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12048
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Regarding plugin name changes

Postby jagannathan » Tue Aug 21, 2018 11:42 pm

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 .

-> download/file.php?id=23323&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 .
jagannathan
 
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Re: Regarding plugin name changes

Postby scottwilkerson » Wed Aug 22, 2018 7:02 am

After making changes to the localhost.cfg you need to restart nagios and it will update the status.dat file
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12048
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Regarding plugin name changes

Postby jagannathan » Mon Aug 27, 2018 12:38 am

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 .
jagannathan
 
Posts: 26
Joined: Sat Jun 16, 2018 7:21 am

Re: Regarding plugin name changes

Postby scottwilkerson » Mon Aug 27, 2018 7:58 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12048
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 3 guests