Saravanan666/pypi-org huggingface dataset:
Package: nagios-check-hddtemp
nagios-check-hddtemp is a Nagios-plugin that uses hddtemp (www.guzu.net/linux/hddtemp.php) to check disk temperature over the networkContentsInstallationConfigurationLicensingContactsInstallationObtain your copy of source code from the git repository:$ git clonehttps://github.com/vint21h/nagios-check-hddtemp.git. Or download the latest release fromhttps://github.com/vint21h/nagios-check-hddtemp/tags/.Run$ python ./setup.py installfrom the repository source tree or unpacked archive. Or use pip:$ pip installnagios-check-hddtemp.ConfigurationRead and understand Nagios documentation.Create Nagios command and service definitions like this:# "check_hddtemp" command
define command
{
    command_name check_hddtemp
    command_line $USER1$/check_hddtemp -s $ARG1$ -p $ARG2$ -d $ARG3$ -w $ARG4$ -c $ARG4$
}

# "check_hddtemp" service for /dev/sda
define service
{
    use                 local-service
    host_name           localhost
    service_description HDD Temperature /dev/sda
    check_command       check_hddtemp!127.0.0.1!7634!/dev/sda!40!50
}Without--devicesoption plugin checks all devices from hddtemp response and returns priority-based global status:criticalwarningunknownoksleepingAlso,--devicesoption can take comma-separated list of devices to check.If you want to receive devices performance data, add-Pargument to the command line.Licensingnagios-check-hddtemp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
For complete license text see COPYING file.ContactsProject website:https://github.com/vint21h/nagios-check-hddtemp/Author: Alexei Andrushievich <vint21h@vint21h.pp.ua>For other authors list see AUTHORS file.
Package: nagios-check-supervisord
nagios-check-supervisord is a Nagios-plugin that check supervisord (http://supervisord.org/) programs statusContentsInstallationConfigurationLicensingContactsInstallationObtain your copy of source code from the git repository:$ git clonehttps://github.com/vint21h/nagios-check-supervisord.git. Or download the latest release fromhttps://github.com/vint21h/nagios-check-supervisord/tags/.Run$ python ./setup.py installfrom the repository source tree or unpacked archive. Or use pip:$ pip installnagios-check-supervisord.ConfigurationRead and understand Nagios documentation.Create Nagios command and service definitions like this:# "check_supervisord" command
define command
{
    command_name check_supervisord
    command_line $USER1$/check_supervisord -s $ARG1$ -p $ARG2$ -P $ARG3$ -u $ARG4$ -S $ARG5$
}

# "check_supervisord" service for "myprog" program
define service
{
    use                 local-service
    host_name           localhost
    service_description My program state
    check_command       check_supervisord!127.0.0.1!9001!myprog!username!password
}Without--programsoption script check all programs from supervisord response and return priority-based global status:criticalwarningunknownokAlso,--programsoption can take a comma-separated list of programs to check.--stopped-state-exit-codeoption allows set Nagios status for stopped programs.--starting-state-exit-codeoption allows set Nagios status for starting programs.--network-errors-exit-codeoption allows set Nagios status for checks network errors.--no-programs-defined-exit-codeoption allows set Nagios status for not configured/found programs in supervisord response.nagios-check-supervisord support connection to supervisord XML-RPC interface through HTTP and Unix Domain Socket.
To install nagios-check-supervisord with Unix Domain Socket:$ pip installnagios-check-supervisord[unix-socket-support]Licensingnagios-check-supervisord is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
For complete license text see COPYING file.ContactsProject Website:https://github.com/vint21h/nagios-check-supervisord/Author: Alexei Andrushievich <vint21h@vint21h.pp.ua>For other authors list see AUTHORS file.
Package: nagios-config-to-csv
magiosconfigtocsvExtract Nagios Configs to CSVInstallationInstall nagios-to-csv via pip :https://pypi.org/project/nagios-config-to-csv/pipinstallnagios-config-to-csvAuthors@asirihewage@shriasiContributionsIssues and feature updates are welcome.LicenseMIT
Package: nagios-core-api
nagios-core-apiA python wrapper for querying nagios core monitoringNote:This module iswork-in-progress.Usage:fromnagiosimportNagioswithNagios(url="https://nagios.monitor.com/nagios",username="nagiosuser",password="nagiospassword",)asclient:response=client.status.service_list(hostname="machine1")print(response)
Package: nagios_graphite
# Nagios GraphiteA nagios check for graphite## Quick Start```shell$ pip install nagios_graphite$ nagios_graphite \-H http://example.com/render \-M 'com.example.*.cpu.load' \-N cpu_load_avg -w 4 -c 8 -F "5minutes" -A avgCRIT: cpu_load_avg (avg = 11)|avg=11;;;;$ echo $?2```## Documentation```Usage: nagios_graphite [options]Options:-U USERNAME, --username=USERNAMEUsername (HTTP Basic Auth)-N NAME, --name=NAME  Metric name-A FUNC, --algorithm=FUNCAlgorithm for combining metrics, options: nullpct,999th, 95th, min, max, sum, avg, median, 99th,nullcnt, (default: avg)-F FROM_, --from=FROM_Starting offset-P PASSWORD, --password=PASSWORDPassword (HTTP Basic Auth)-o HTTP_TIMEOUT, --http-timeout=HTTP_TIMEOUTHTTP request timeout-u UNTIL, --until=UNTILEnding offset-M TARGET, --target=TARGETGraphite target (series or query)-v, --verbose-H HOSTNAME, --hostname=HOSTNAME-w WARNING, --warning=WARNING-c CRITICAL, --critical=CRITICAL-t TIMEOUT, --timeout=TIMEOUT-h, --help            show this help message and exit```## ContributingWant to contribute? Great!1. Fork it.2. Create a branch (`git checkout -b my_markup`)3. Commit your changes (`git commit -am "Added Snarkdown"`)4. Push to the branch (`git push origin my_markup`)5. Open a [Pull Request][1]6. Enjoy a refreshing cup of coffee!## LicenseThe MIT License (MIT)Copyright (c) 2015 Michael-Keith BernardSee LICENSE for full license.[1]: http://github.com/segfaultax/nagios_graphite/pulls
Package: nagios-historian
Title1Checks historian tags and samples.VERSIONInstallLinux:sudo pip3 install nagios_historian --upgradeAlso is possible to use:sudo python3 -m pip install nagios_historian --upgradeOn windows with python3.5:pip install nagios_historian --upgradeFor proxies add:--proxy='http://user:passw@server:port'UsageUse the command line:> nagios_historian --help
  usage: nagios_historian [-h] [-u [URL]] [-e [EXTRA_ARGS]]

    optional arguments:
    -h, --help            show this help message and exit
    -u [URL], --url [URL]
                          url to check
            --client_id
                          oauth2 client_id example client id: user01
            --client_secret
                          oauth2 client_secret client password
            --auth_url
                          oauth2 auth_url example: https://login.microsoftonline.com/company.onmicrosoft.com/oauth2/v2.0/token
            --instance
                          instance name of historian
            --oauth2
                          Flag to use or not token for oauth2 before creating the request, used to check published services that uses azure oauth2
    -e [EXTRA_ARGS], --extra_args [EXTRA_ARGS]
                          extra argsExample usageExample use:> nagios_historian -u “https://xxx/yyy/currentvalue?tagNames=” –client_id “admin1234” –client_secret “pass1234” –auth_url “https://xxxx/oauth/token” –oauth2 –instance “instancename”Nagios configExample command:define command{
    command_name  check_nagios_historian
    command_line  /usr/local/bin/nagios_historian -u "$ARG1$" --client_id "$ARG2$" --client_secret "$ARG3$" --auth_url "$ARG4$" --oauth2 --instance "$ARG5$" --extra_args='$ARG6$'
}Example service:define service {
        host_name                       SERVERX
        service_description             service_name
        check_command                   check_nagios_historian!http://url/path!admin123!pass1234!http://authurl/oauth2!instancename
        use                                         generic-service
        notes                           some useful notes
}You can use ansible role that already has the installation and command:https://github.com/CoffeeITWorks/ansible_nagios4_server_pluginsTODOUse hash passwordsAdd Unit tests?
Package: nagios-load-per-core
InstallationInstallation is simple:pip install nagios-load-per-coreAlternatively:git clone https://github.com/carlf/nagios-load-per-core.git
python setup.py installUsageSimply call with warning and critical values. Please note that the
load average is normalized such that it is divided by the number of
cores on the host.check-load-by-core -w 1.3 -c 2.4
Package: nagios-notification-google-calendar
nagios-notification-google-calendar is a Nagios-plugin that send Nagios notifications via google calendar SMS reminderContentsAttentionInstallationConfigurationLicensingContactsAttentionGoogle disable SMS notifications for calendar events after June 27, 2015. Therefore after this date this plugin useless.InstallationObtain your copy of source code from git repository:git clonehttps://github.com/vint21h/nagios-notification-google-calendar.git. Or download latest release fromhttps://github.com/vint21h/nagios-notification-google-calendar/tags.Runpython ./setup.py installfrom repository source tree or unpacked archive under root user. Or use pip:pip installnagios-notification-google-calendar.ConfigurationRead and understand Nagios documentation.Create Nagios commands definitions like this:# "host-notify-by-sms" command
define command{
    command_name    notify-host-by-sms
    command_line    /usr/bin/notification_google_calendar.py -u $CONTACTNAME$ -m "Host '$HOSTALIAS$' is $HOSTSTATE$ - Info: $HOSTOUTPUT$" -C $CONTACTADDRESS1$ -t $CONTACTADDRESS2$
}

# "service-notify-by-sms" command
define command{
    command_name    notify-by-sms
    command_line    /usr/bin/notification_google_calendar.py -u $CONTACTNAME$ -m "$NOTIFICATIONTYPE$ $HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ $SERVICEOUTPUT$ $LONGDATETIME$" -C $CONTACTADDRESS1$ -t $CONTACTADDRESS2$
}Go tohttps://code.google.com/apis/console/and create new project.Enable calendar API for project.Create an OAuth 2.0 client ID for project withInstalled applicationtype and download JSON client secrets file.Copy/usr/share/doc/nagios-notification-google-calendar/notification_google_calendar.inito/etc/nagioswith your settings. Attention: nagios user must havenotification_google_calendar.iniread permissions, and credentials directory read/write permissions.Modify contacts definitions:AddaddressXoption to contact definition with contact google calendar ID.AddaddressXoption to contact definition with contact preferred timezone (in human readable format from TZ database). This is dirty hack, but i don’t know how do this better way.Get and save credentials by runnotification_google_calendar.py-g-uUSERNAMEwhereUSERNAME- nagios contact name.Add commands to the lists of service and host notifications commands for contact.Configure google calendar for mobile devices.Licensingnagios-notification-google-calendar is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
For complete license text see COPYING file.ContactsProject Website:https://github.com/vint21h/nagios-notification-google-calendarAuthor: Alexei Andrushievich <vint21h@vint21h.pp.ua>For other authors list see AUTHORS file.
Package: nagios-notification-jabber
nagios-notification-jabber is a Nagios-plugin that send Nagios notifications via jabberContentsInstallationConfigurationLicensingContactsInstallationObtain your copy of source code from the git repository:$ git clonehttps://github.com/vint21h/nagios-notification-jabber.git. Or download the latest release fromhttps://github.com/vint21h/nagios-notification-jabber/tags/.Run$ python ./setup.py installfrom the repository source tree or unpacked archive. Or use pip:$ pip installnagios-notification-jabber.ConfigurationRead and understand Nagios documentation.Create Nagios commands definitions like this:# "host-notify-by-jabber" command
define command
{
    command_name    host-notify-by-jabber
    command_line    /usr/bin/notification_jabber.py -r $CONTACTPAGER$ -m "Host '$HOSTALIAS$' is $HOSTSTATE$ - Info: $HOSTOUTPUT$"
}

# "service-notify-by-jabber" command
define command
{
    command_name    service-notify-by-jabber
    command_line    /usr/bin/notification_jabber.py -r $CONTACTPAGER$ -m "$NOTIFICATIONTYPE$ $HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ $SERVICEOUTPUT$ $LONGDATETIME$"
}Add to your contact definition optionpagerwith your Jabber ID value and add toservice_notification_commandsandhost_notification_commandscontact definition optionsservice-notify-by-jabberandhost-notify-by-jabbervalues respectively.Copy/usr/share/doc/nagios-notification-jabber/notification_jabber.inito/etc/nagioswith your nagios bot credentials. Attention: nagios user must havenotification_jabber.iniread permissions.nagios-notification-jabber is able to send message to MUC rooms without any additional configuration, just specify MUC room ID as a notification recipient.
Also yu can specify notification resource just by adding it to JID in the config file:jid = nagios@example.com/botLicensingnagios-notification-jabber is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
For complete license text see COPYING file.ContactsProject Website:https://github.com/vint21h/nagios-notification-jabber/Author: Alexei Andrushievich <vint21h@vint21h.pp.ua>For other authors list see AUTHORS file.
Package: nagios-nvidia-smi-plugin
This plugin for checks Nvidia GPU stats via the nvidia-smi executable provided
by nvidia-current.Setuppip install nagios-nvidia-smi-plugin/usr/local/bin/check_nvidiasmi.py -h:usage: check_nvidiasmi.py [-h] [-w RANGE] [-c RANGE] [-W RANGE] [-C RANGE]
                          [-t RANGE] [-T RANGE] [-d DEVICE] [-v]

Nagios plugin to check Nvidia GPU status using nvidia-smi

optional arguments:
  -h, --help            show this help message and exit
  -w RANGE, --gpu_warning RANGE
                        warning if threshold is outside RANGE
  -c RANGE, --gpu_critical RANGE
                        critical if threshold is outside RANGE
  -W RANGE, --mem_warning RANGE
                        warning if threshold is outside RANGE
  -C RANGE, --mem_critical RANGE
                        critical if threshold is outside RANGE
  -t RANGE, --gputemp_warning RANGE
                        warning if threshold is outside RANGE
  -T RANGE, --gputemp_critical RANGE
                        critical if threshold is outside RANGE
  -d DEVICE, --device DEVICE
                        Device ID (starting from 0)
  -v, --verbose         increase verbosity (use up to 3 times)Releases0.4.0 - May 06, 2015: Specify device to check, and added check for temperature; thanks @gslongo!
0.2.0 - Jan 16, 2013: Initial releaseDevelopFork me onGithub.
Package: nagios.responsetime
A Nagios plugin that collects response times from logs.Usage:check_responsetime--logfile/path/to/logfileThe plugin remembers the timestamp of the latest log entry it has seen on each
run, and on the next run only considers log entries that are more recent.Log formatThe supported log format is as follows:<timestamp> "<http-verb> <path> <http-version>" <responsetime>timestamp: %d/%b/%Y:%H:%M:%S %zhttp-verb: GET, POSTpath: the requested URL pathhttp-version: e.g. HTTP/1.1responsetime in seconds, e. g. 0.5Example:17/May/2011:14:11:18 +0200 "GET /index.html HTTP/1.1" 0.289An example configuration for the nginx server looks like this:http {
    log_format timing '$time_local "$request" $upstream_response_time';

    server {
        access_log /path/to/timing.log timing;
    }
}Future directionsOne obvious additional feature is the ability to define thresholds (e.g. “a
mean responsetime above 3 seconds is WARN, above 5 CRITICAL”)DevelopmentThe source code is available in the mercurial repository athttps://code.gocept.com/hg/public/nagios.responsetimePlease report any bugs you find toWolfgang Schnerring.ContentsLog formatFuture directionsDevelopmentChanges1.0.4 (2012-12-07)1.0.3 (2011-12-08)1.0.2 (2011-11-14)1.0.1 (2011-09-04)1.0 (2011-07-01)1.0rc1 (2011-06-10)Changes1.0.4 (2012-12-07)Explicitly declare our dependency on nagiosplugin < 0.5Fix API incompatibility in test suite.1.0.3 (2011-12-08)If no records are availble for this check period, return empty performance
values (all zero) to avoid UNKNOWN state that is only noise.1.0.2 (2011-11-14)Fixed divide by zero bug when there is only a single entry (#9332).1.0.1 (2011-09-04)Fixed bug when there are no log entries for the current interval (#9332).1.0 (2011-07-01)Fixed bug with incomplete log file lines (“invalid literal for float(): -“).1.0rc1 (2011-06-10)First release.
Package: nagios-sentry
Plugin for Nagios, which check a count of messages in Sentry.InstallationInstallnagios-sentryto Sentry venv:source /var/www/sentry/bin/activate
pip install nagios-sentryAdd toINSTALLED_APPSin config file/etc/sentry.conf:INSTALLED_APPS += ('nagios_sentry', )Copy the filecheck_sentry_messages.pyto the Nagios plugins directory.How to useGo to the Nagios plugins directory and run this example:./check_sentry_messages.py -w 10 -c 20 \
    --sentry /var/www/sentry/bin/sentry --config /etc/sentry.conf --seconds=300Where:-w10- Number of messages in Sentry for--secondsas WARNING;-c20- Number of messages in Sentry for--secondsas CRITICAL;--sentry/var/www/sentry/bin/sentry- Path to binary file of Sentry;--config/etc/sentry.conf- Path to config file of Sentry;--seconds=300- Number of seconds offset.Available additional options:--project- Number of project. Example--project=1;--level- Number of level. 10=DEBUG, 20=INFO, 25=SUCCESS, 30=WARNING, 40=ERROR;--logger- Name of logger. Example--logger=SocialAuth.
Package: nagisa
Nagisa is a python module for Japanese word segmentation/POS-tagging.
It is designed to be a simple and easy-to-use tool.This tool has the following features.Based on recurrent neural networks.The word segmentation model uses character- and word-level features[池田+].The POS-tagging model uses tag dictionary information[Inoue+].For more details refer to the following links.The stop words for nagisa are availablehere.The presentation slide at PyCon JP (2022) is availablehere.The article in Japanese is availablehere.The documentation is availablehere.InstallationPython 3.6 through 3.12 on Linux,
or Python 3.6 through 3.11 on macOS Intel is required.
This tool usesDyNet(the Dynamic Neural Network Toolkit) to calcucate neural networks.
You can install nagisa by using the following command.pipinstallnagisaFor Windows users, please run it with python 3.6, 3.7 or 3.8 (64bit).
It is also compatible with the Windows Subsystem for Linux (WSL).Basic usageSample of word segmentation and POS-tagging for Japanese.importnagisatext='Pythonで簡単に使えるツールです'words=nagisa.tagging(text)print(words)#=> Python/名詞 で/助詞 簡単/形状詞 に/助動詞 使える/動詞 ツール/名詞 です/助動詞# Get a list of wordsprint(words.words)#=> ['Python', 'で', '簡単', 'に', '使える', 'ツール', 'です']# Get a list of POS-tagsprint(words.postags)#=> ['名詞', '助詞', '形状詞', '助動詞', '動詞', '名詞', '助動詞']Post-processing functionsFilter and extarct words by the specific POS tags.# Filter the words of the specific POS tags.words=nagisa.filter(text,filter_postags=['助詞','助動詞'])print(words)#=> Python/名詞 簡単/形状詞 使える/動詞 ツール/名詞# Extarct only nouns.words=nagisa.extract(text,extract_postags=['名詞'])print(words)#=> Python/名詞 ツール/名詞# This is a list of available POS-tags in nagisa.print(nagisa.tagger.postags)#=> ['補助記号', '名詞', ... , 'URL']Add the user dictionary in easy way.# defaulttext="3月に見た「3月のライオン」"print(nagisa.tagging(text))#=> 3/名詞 月/名詞 に/助詞 見/動詞 た/助動詞 「/補助記号 3/名詞 月/名詞 の/助詞 ライオン/名詞 」/補助記号# If a word ("3月のライオン") is included in the single_word_list, it is recognized as a single word.new_tagger=nagisa.Tagger(single_word_list=['3月のライオン'])print(new_tagger.tagging(text))#=> 3/名詞 月/名詞 に/助詞 見/動詞 た/助動詞 「/補助記号 3月のライオン/名詞 」/補助記号Train a modelNagisa (v0.2.0+) provides a simple train method
for a joint word segmentation and sequence labeling (e.g, POS-tagging, NER) model.The format of the train/dev/test files is tsv.
Each line iswordandtagand one line is represented byword\t(tab)tag.
Note that you put EOS between sentences.
Refer tosample datasetsandtutorial (Train a model for Universal Dependencies).$ cat sample.train
唯一	NOUN
の	ADP
趣味	NOU
は	ADP
料理	NOUN
EOS
とても	ADV
おいしかっ	ADJ
た	AUX
です	AUX
。	PUNCT
EOS
ドル	NOUN
は	ADP
主要	ADJ
通貨	NOUN
EOS# After finish training, save the three model files (*.vocabs, *.params, *.hp).nagisa.fit(train_file="sample.train",dev_file="sample.dev",test_file="sample.test",model_name="sample")# Build the tagger by loading the trained model files.sample_tagger=nagisa.Tagger(vocabs='sample.vocabs',params='sample.params',hp='sample.hp')text="福岡・博多の観光情報"words=sample_tagger.tagging(text)print(words)#> 福岡/PROPN ・/SYM 博多/PROPN の/ADP 観光/NOUN 情報/NOUN
Package: nagonbot
nagonbotJapanese Chatbot.SummaryProject DescriptionProject Current StatusSetupRequired LibrariesProject Test PackageReferencesProject Descriptionnagonbot is a simple chatbot that "speaks" japanese. The name is a reference to a Heian period japanese writer.Project Current Status✅The bot is fully functional, but I'll still make some improvements to make it even better.SetupI recommend using a vitual environment (venv) for this project, since it's libraries are not fully optimized.
Steps:Create a virtual environment in a test folder.py -m venv ./myvenvActivate the virtual environment..\myvenv\Scripts\activateInstall the bot inside the virtual environment as a package for simpler usage (the package is not functional yet).pip install nagonbotRun the program inside the virtual enviroment.fromnagonbot.botimportMainMain()Exit the virtual environment when done.deactivateRequired LibrariesNotePlease, while the package does not install all the packages automatticallly, install the following libraries (inside a virtual environment).KerasInstall:pip install kerasgithub page:https://github.com/keras-team/kerasNumpyInstall:pip install numpygithub page:https://github.com/numpy/numpyplaysound (probably will be out)Install (version 1.2.2 certainly works with nagonbot):pip install playsound=1.2.2github page:https://github.com/TaylorSMarks/playsoundfugashiInstall:pip install fugashigithub page:https://github.com/polm/fugashibs4pip install bs4Doc:https://www.crummy.com/software/BeautifulSoup/bs4/doc/gttspip install gTTSgithub page:https://github.com/pndurette/gTTSunidic-litepip install unidic-litegithub page:https://github.com/polm/unidic-litemecab-python3pip install mecab-python3github page:https://github.com/SamuraiT/mecab-python3seleniumpip install seleniumgithub page:https://github.com/SeleniumHQ/seleniumwebdriver_managerpip install webdriver_managergithub page:https://github.com/SergeyPirogov/webdriver_managerProject Test PackageWarningNot working yet!!!Since it's the package is not working, it's tentatives are being uploaded in the test server of PyPi. It has a lot of versions, but none of them work properly:https://test.pypi.org/project/nagonbot/ReferencesTensor Flow model was inspired fromNeural Nine'svideoon how to make a chatbot.